Skip to content

Commit

Permalink
Merge branch 'develop' into faster_drootdt_total
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl authored May 2, 2024
2 parents 26acf85 + 304c23a commit 1f64da1
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 103 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-patch", "version-update:semver-minor"]
91 changes: 0 additions & 91 deletions python/sdist/setup.cfg

This file was deleted.

13 changes: 4 additions & 9 deletions python/tests/splines_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import math
import os
import platform
import uuid
from tempfile import mkdtemp
from typing import Any
Expand Down Expand Up @@ -716,13 +717,7 @@ def param_by_name(id):
if sllh_atol is None:
sllh_atol = np.finfo(float).eps
sllh_err_abs = abs(sllh).max()
if (
sllh_err_abs > sllh_atol and debug is not True
) or debug == "print":
print(f"sllh_atol={sllh_atol}")
print(f"sllh_err_abs = {sllh_err_abs}")
if not debug:
assert sllh_err_abs <= sllh_atol
assert sllh_err_abs <= sllh_atol, f"{sllh_err_abs=} {sllh_atol=}"
else:
assert sllh is None

Expand Down Expand Up @@ -917,11 +912,11 @@ def example_spline_1(
extrapolate=extrapolate,
)

if os.name == "nt":
if os.name == "nt" or platform.system() == "Darwin":
tols = (
dict(llh_rtol=1e-15, x_rtol=1e-8, x_atol=1e-7),
dict(llh_rtol=1e-15, x_rtol=1e-8, x_atol=1e-7),
dict(llh_rtol=1e-15, sllh_atol=5e-8, x_rtol=1e-8, x_atol=1e-7),
dict(llh_rtol=1e-15, sllh_atol=5e-7, x_rtol=1e-8, x_atol=1e-7),
)
else:
tols = (
Expand Down
2 changes: 1 addition & 1 deletion python/tests/test_sbml_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ def test_constraints():
# in practice
assert np.any(rdata.x < 0)

amici_solver.setRelativeTolerance(1e-14)
amici_solver.setRelativeTolerance(1e-13)
amici_solver.setConstraints(
[Constraint.non_negative, Constraint.non_negative]
)
Expand Down
4 changes: 2 additions & 2 deletions tests/cpp/steadystate/tests1.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "testfunctions.h"

#include "wrapfunctions.h"
#include <cstring>

#include <gtest/gtest.h>

Expand Down Expand Up @@ -175,7 +174,8 @@ TEST(ExampleSteadystate, SensitivityForwardErrorNewt)

TEST(ExampleSteadystate, SensitivityForwardDense)
{
amici::simulateVerifyWrite("/model_steadystate/sensiforwarddense/");
amici::simulateVerifyWrite("/model_steadystate/sensiforwarddense/",
1e-9, TEST_RTOL);
}

TEST(ExampleSteadystate, SensiFwdNewtonPreeq)
Expand Down

0 comments on commit 1f64da1

Please sign in to comment.