From 4cab923a4cfa81590b48188ae2af348c24afded5 Mon Sep 17 00:00:00 2001 From: Abhimanyu Susobhanan Date: Wed, 13 Nov 2024 10:39:30 +0100 Subject: [PATCH] test --- src/pint/models/chromatic_model.py | 1 - tests/test_cmx.py | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pint/models/chromatic_model.py b/src/pint/models/chromatic_model.py index 8f9dcb815..d745729ce 100644 --- a/src/pint/models/chromatic_model.py +++ b/src/pint/models/chromatic_model.py @@ -705,7 +705,6 @@ def print_par(self, format="pint"): CMX_mapping = self.get_prefix_mapping_component("CMX_") CMXR1_mapping = self.get_prefix_mapping_component("CMXR1_") CMXR2_mapping = self.get_prefix_mapping_component("CMXR2_") - result += getattr(self, "CMX").as_parfile_line(format=format) sorted_list = sorted(CMX_mapping.keys()) for ii in sorted_list: result += getattr(self, CMX_mapping[ii]).as_parfile_line(format=format) diff --git a/tests/test_cmx.py b/tests/test_cmx.py index b92b68dd8..f62563840 100644 --- a/tests/test_cmx.py +++ b/tests/test_cmx.py @@ -75,3 +75,5 @@ def test_cmx(model_and_toas): ) assert ftr.resids.chi2_reduced < 1.6 + + assert "CMX_0001" in str(ftr.model)