Skip to content

Commit

Permalink
Merge pull request #1863 from matteobachetti/patch-4
Browse files Browse the repository at this point in the history
Add an nbin option to photonphase
  • Loading branch information
abhisrkckl authored Nov 22, 2024
2 parents 96adf4b + f608d8b commit 3de943c
Show file tree
Hide file tree
Showing 2 changed files with 5 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 @@ -12,6 +12,7 @@ the released changes.
- Command line scripts now automatically do `allow_tcb` and `allow_T2` while reading par files.
- Updated the `plot_chains` function in `event_optimize` so that the subplots are a fixed size to prevent the subplots from being condensed in the case of many fit parameters.
### Added
- Added an option `nbin` to `photonphase` to decide how many phase bins to use for the phaseogram
- Added an option `linearize_model` to speed up the photon phases calculation within `event_optimize` through the designmatrix.
- Added AIC and BIC calculation to be written in the post fit parfile from `event_optimize`
- When TCB->TDB conversion info is missing, will print parameter name
Expand Down
5 changes: 4 additions & 1 deletion src/pint/scripts/photonphase.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ def main(argv=None):
help="Logging level",
dest="loglevel",
)
parser.add_argument(
"--nbin", help="Number of phase bins in the phaseogram", default=100, type=int
)
parser.add_argument(
"-v", "--verbosity", default=0, action="count", help="Increase output verbosity"
)
Expand Down Expand Up @@ -267,7 +270,7 @@ def main(argv=None):
print("Htest : {0:.2f} ({1:.2f} sigma)".format(h, h2sig(h)))

if args.plot:
phaseogram_binned(mjds, phases, bins=100, plotfile=args.plotfile)
phaseogram_binned(mjds, phases, bins=args.nbin, plotfile=args.plotfile)

# Compute orbital phases for each photon TOA
if args.addorbphase:
Expand Down

0 comments on commit 3de943c

Please sign in to comment.