Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/safety.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.13"]
python-version: ["3.10", "3.14"]
timeout-minutes: 360

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.13"]
python-version: ["3.14"]
runs-on: ${{ matrix.os }}
timeout-minutes: 60

Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.13"]
python-version: ["3.10", "3.14"]
timeout-minutes: 360

steps:
Expand Down
3 changes: 2 additions & 1 deletion release-notes/next-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

## Fixes

## Other

## Other

## Deprecated features


## Backwards incompatible changes
29 changes: 1 addition & 28 deletions src/cobra/core/reaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import hashlib
import re
from collections import defaultdict
from copy import copy, deepcopy
from copy import deepcopy
from functools import partial
from math import isclose, isinf
from operator import attrgetter
Expand Down Expand Up @@ -246,33 +246,6 @@ def objective_coefficient(self, value: float) -> None:
if self.flux_expression is not None:
set_objective(self.model, {self: value}, additive=True)

def __copy__(self) -> "Reaction":
"""Copy the Reaction.

Returns
-------
Reaction
A new reaction that is a copy of the original reaction.
"""
cop = copy(super(Reaction, self))
return cop

def __deepcopy__(self, memo: dict) -> "Reaction":
"""Copy the reaction with memo.

Parameters
----------
memo: dict
Automatically passed parameter.

Returns
-------
Reaction
A new reaction that is a deep copy of the original reaction with memo.
"""
cop = deepcopy(super(Reaction, self), memo)
return cop

@staticmethod
def _check_bounds(lb: float, ub: float) -> None:
"""Check if the lower and upper bounds are valid.
Expand Down
Loading