Skip to content

Commit

Permalink
set number of spectra per subint from your_writer
Browse files Browse the repository at this point in the history
  • Loading branch information
KshitijAggarwal committed Apr 8, 2021
1 parent 2504179 commit 57cfadd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bin/your_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,14 @@
type=int,
default=1,
)
parser.add_argument(
"-npsub",
"--nspectra_per_subint",
help="Number of spectra per subint (used only for writing psrfits)",
required=False,
type=int,
default=4032,
)
parser.add_argument(
"--replacement_policy",
type=str,
Expand Down Expand Up @@ -222,7 +230,7 @@
)

if values.type == "fits":
w.to_fits()
w.to_fits(npsub=values.npsub)
elif values.type == "fil":
w.to_fil()
else:
Expand Down

0 comments on commit 57cfadd

Please sign in to comment.