Skip to content
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 CHANGELOG-unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ the released changes.
- Make `get_prefix_timeranges` work for SWX.
- Some of the `gridutils` functions had improper logging behavior
- Fixed bug in changing epoch for ELL1k model
- Fixed `gridutils` behavior for 1 CPU
- Fixed bug in `GaussianRV_gen`, where the probability distribution function was not normalized correctly. Changed to use `scipy.stats.truncnorm` instead of the custom `GaussianRV_gen`.
### Removed
6 changes: 5 additions & 1 deletion src/pint/gridutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,11 @@ def tuple_chisq(

for i in indices:
for parnum, parname in enumerate(parnames):
getattr(ftr.model, parname).quantity = parvalues[i[0]][parnum]
if parvalues[i[0]][parnum] is not None:
getattr(ftr.model, parname).quantity = parvalues[i[0]][parnum]
getattr(ftr.model, parname).frozen = True
else:
getattr(ftr.model, parname).frozen = False
ftr.fit_toas(**fitargs)
chi2[i[0]] = ftr.resids.chi2
dof[i[0]] = ftr.resids.dof
Expand Down
Loading