Skip to content

Commit 35f9bae

Browse files
fixing inf issues
1 parent 77ba1d7 commit 35f9bae

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

setup.cfg

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ classifiers =
2828
Intended Audience :: Science/Research
2929
License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
3030
Operating System :: OS Independent
31-
Programming Language :: Python :: 3.8
32-
Programming Language :: Python :: 3.9
31+
Programming Language :: Python :: 3.11
32+
Programming Language :: Python :: 3.12
33+
3334
Programming Language :: Python :: Implementation :: CPython
3435
Topic :: Scientific/Engineering
3536
Topic :: Scientific/Engineering :: Bio-Informatics
@@ -49,8 +50,8 @@ zip_safe = True
4950
python_requires = >=3.11
5051
install_requires =
5152
sbmlutils>=0.8.7
52-
numpy>=1.26.4
53-
libroadrunner>=2.7.0
53+
numpy>=2.2
54+
libroadrunner>=2.8.0
5455
scipy>=1.12.0
5556
pint>=0.23
5657

src/sbmlsim/fit/helpers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,11 @@ def f_fitexp(
108108

109109
return fit_experiments
110110

111+
111112
def filter_empty(fit_mapping_key: str, fit_mapping: FitMapping) -> bool:
112113
"""Return all experiments/mappings."""
113114
return True
114115

115-
116+
def filter_outlier(fit_mapping_key: str, fit_mapping: FitMapping) -> bool:
117+
"""Return non outlier experiments."""
118+
return not fit_mapping.metadata.outlier

src/sbmlsim/fit/objects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ def __init__(
224224
self,
225225
pid: str,
226226
start_value: float = None,
227-
lower_bound: float = -np.Inf,
228-
upper_bound: float = np.Inf,
227+
lower_bound: float = -np.inf,
228+
upper_bound: float = np.inf,
229229
unit: str = None,
230230
):
231231
"""Initialize FitParameter.

src/sbmlsim/fit/optimization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ class RuntimeErrorOptimizeResult:
4343
status: str = "-1"
4444
success: bool = False
4545
duration: float = -1.0
46-
cost: float = np.Inf
47-
optimality: float = np.Inf
46+
cost: float = np.inf
47+
optimality: float = np.inf
4848

4949

5050
class OptimizationProblem(ObjectJSONEncoder):

0 commit comments

Comments
 (0)