Skip to content

Commit

Permalink
fdjumplog y
Browse files Browse the repository at this point in the history
  • Loading branch information
abhisrkckl committed Aug 9, 2024
1 parent 6c70174 commit 5f9a09c
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`
### 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
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 5f9a09c

Please sign in to comment.