Skip to content

Commit

Permalink
scitbx: combine ARM tolerance for LBFGS test
Browse files Browse the repository at this point in the history
  • Loading branch information
bkpoon committed Feb 21, 2025
1 parent e6a2a29 commit a4a4ec3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scitbx/tests/tst_minimizer_lbfgs_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,9 @@ def run():
tolerance = 1.e-16
if sys.platform == 'win32':
tolerance = 1.e-9
elif sys.platform == 'darwin' and platform.machine() == 'arm64':
tolerance = 1.e-6
elif sys.platform.startswith('linux') \
elif (sys.platform == 'darwin' or sys.platform.startswith('linux')) \
and ('arm64' in platform.machine() or 'arch64' in platform.machine()):
tolerance = 1.e-9
tolerance = 1.e-6

# Run L-BFGS (no boundaries)
calculator = rosenbrock(a = 20, b = 10, x = flex.double([0,0]),
Expand Down

0 comments on commit a4a4ec3

Please sign in to comment.