From 55c6e9f44ba5bd9f1b9298bf9c2c752879e91c79 Mon Sep 17 00:00:00 2001 From: Steph Merritt Date: Mon, 25 Nov 2024 11:25:44 +0000 Subject: [PATCH] Tweak to pass unit tests --- pyproject.toml | 2 +- tests/adler/science/test_PhaseCurve.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5f79733..b5742c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ dependencies = [ "numpy", "lsst-rsp", "astropy", - "sbpy<=0.4.0", + "sbpy", "matplotlib", # for plotting "pandas", "scipy", diff --git a/tests/adler/science/test_PhaseCurve.py b/tests/adler/science/test_PhaseCurve.py index d67fc3c..b3d8fd7 100644 --- a/tests/adler/science/test_PhaseCurve.py +++ b/tests/adler/science/test_PhaseCurve.py @@ -117,7 +117,7 @@ def test_PhaseCurve_FitModel_HG_fixed(): pc2 = pc1.InitModelSbpy(pc_fit) # the new fitted model should have the same parameters as the input model, but G is fixed - assert pc_fit._fixed["G"] is True + assert pc_fit.fixed["G"] is True assert pc2.H == pc1.H assert pc2.phase_parameter_1 == pc1.phase_parameter_1 assert pc2.phase_parameter_1_err is None # the fitted model has no uncertainties when param is fixed