Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TCB->TDB flag for EQUAD created from TNEQUAD #1857

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/pint/models/noise_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def setup(self):
index=tneq_par.index,
aliases=["T2EQUAD"],
description="An error term added in quadrature to the scaled (by EFAC) TOA uncertainty.",
convert_tcb2tdb=False,
)
)
EQUAD_par = getattr(self, EQUAD_name)
Expand Down
8 changes: 4 additions & 4 deletions src/pint/models/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ def __init__(

assert (
not convert_tcb2tdb or tcb2tdb_scale_factor is not None
), "Please specify the tcb2tdb_scale_factor explicitly."
), f"Please specify the tcb2tdb_scale_factor explicitly for {name}."
self.convert_tcb2tdb = convert_tcb2tdb
self.tcb2tdb_scale_factor = tcb2tdb_scale_factor

Expand Down Expand Up @@ -1133,7 +1133,7 @@ def __init__(

assert (
not convert_tcb2tdb or tcb2tdb_scale_factor is not None
), "Please specify the tcb2tdb_scale_factor explicitly."
), f"Please specify the tcb2tdb_scale_factor explicitly for {name}."
self.convert_tcb2tdb = convert_tcb2tdb
self.tcb2tdb_scale_factor = tcb2tdb_scale_factor

Expand Down Expand Up @@ -1334,7 +1334,7 @@ def __init__(

assert (
not convert_tcb2tdb or tcb2tdb_scale_factor is not None
), "Please specify the tcb2tdb_scale_factor explicitly."
), f"Please specify the tcb2tdb_scale_factor explicitly for {name}."
self.convert_tcb2tdb = convert_tcb2tdb
self.tcb2tdb_scale_factor = tcb2tdb_scale_factor

Expand Down Expand Up @@ -1554,7 +1554,7 @@ def __init__(
# a function of the prefix.
assert (
not convert_tcb2tdb or tcb2tdb_scale_factor is not None
), "Please specify the tcb2tdb_scale_factor explicitly."
), f"Please specify the tcb2tdb_scale_factor explicitly for {name}."
tcb2tdb_scale_factor_val = (
tcb2tdb_scale_factor(self.prefix)
if hasattr(tcb2tdb_scale_factor, "__call__")
Expand Down
Loading