Skip to content

Commit

Permalink
Merge pull request #19 from lsst/tickets/DM-33750
Browse files Browse the repository at this point in the history
DM-33750: Disable bad test in spectractor
  • Loading branch information
mfisherlevine committed Feb 18, 2022
2 parents 6763343 + 49adbc2 commit 4aa0643
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_fitter.py
Expand Up @@ -9,7 +9,8 @@
from spectractor import parameters # noqa: E402

import os # noqa: E402

import sys # noqa: E402
import unittest # noqa: E402


class LineFitWorkspace(FitWorkspace):
Expand All @@ -35,6 +36,8 @@ def simulate(self, a, b):
return self.x, self.model, self.model_err


@unittest.skipIf(sys.platform == "darwin", 'Skipping because macOS 11.0 passes but 10.15 fails '
'some np.all() asserts in this package. Attempt to turn back on as part of DM-33747.')
def test_fitworkspace():
# Create mock data
N = 100
Expand Down Expand Up @@ -84,6 +87,8 @@ def lnprob(p):
assert np.all([np.abs(w.p[i] - truth[i]) / np.sqrt(w.cov[i, i]) < 3 for i in range(w.ndim)])


@unittest.skipIf(sys.platform == "darwin", 'Skipping because macOS 11.0 passes but 10.15 fails '
'some np.all() asserts in this package. Attempt to turn back on as part of DM-33747.')
def test_minimisation_sigma_clipping():
# Create mock data
N = 100
Expand Down

0 comments on commit 4aa0643

Please sign in to comment.