From 5f9a09c4f3a3f3af047479ebc27726d1fafcc303 Mon Sep 17 00:00:00 2001 From: Abhimanyu Susobhanan Date: Fri, 9 Aug 2024 09:31:31 +0200 Subject: [PATCH] fdjumplog y --- CHANGELOG-unreleased.md | 1 + src/pint/models/fdjump.py | 2 +- tests/test_fdjump.py | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG-unreleased.md b/CHANGELOG-unreleased.md index c52a59440..a0a08ccff 100644 --- a/CHANGELOG-unreleased.md +++ b/CHANGELOG-unreleased.md @@ -11,6 +11,7 @@ the released changes. ### Changed - Moved the events -> TOAs and photon weights code into the function `load_events_weights` within `event_optimize`. - Updated the `maxMJD` argument in `event_optimize` to default to the current mjd +- Changed default value of `FDJUMPLOG` to `Y` ### Added - Type hints in `pint.derived_quantities` - Doing `model.par = something` will try to assign to `par.quantity` or `par.value` but will give warning diff --git a/src/pint/models/fdjump.py b/src/pint/models/fdjump.py index a5258defe..d79caed3b 100644 --- a/src/pint/models/fdjump.py +++ b/src/pint/models/fdjump.py @@ -69,7 +69,7 @@ def __init__(self): self.add_param( boolParameter( name="FDJUMPLOG", - value=False, + value=True, description="Whether to use log-frequency (Y) or linear-frequency (N) for computing FDJUMPs.", ) ) diff --git a/tests/test_fdjump.py b/tests/test_fdjump.py index 13924bd12..73548c88b 100644 --- a/tests/test_fdjump.py +++ b/tests/test_fdjump.py @@ -41,6 +41,8 @@ def test_params(model_and_toas): and hasattr(model, "FDJUMPDM2") ) + assert model.FDJUMPLOG.value + def test_residuals(model_and_toas): model, toas = model_and_toas