Skip to content

Commit

Permalink
Merge pull request #1821 from abhisrkckl/fdjumplog-y
Browse files Browse the repository at this point in the history
Change default of FDJUMPLOG to Y
  • Loading branch information
dlakaplan authored Aug 9, 2024
2 parents 3dd6f6c + 25852ea commit 8d00af9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
- Bumped `black` version to 24.x
### Added
- Type hints in `pint.derived_quantities` and `pint.residuals`
Expand Down
2 changes: 1 addition & 1 deletion src/pint/models/fdjump.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
)
)
Expand Down
2 changes: 2 additions & 0 deletions tests/test_fdjump.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d00af9

Please sign in to comment.