Skip to content

Commit

Permalink
Fixed the input args for the calc_max_nsb script
Browse files Browse the repository at this point in the history
  • Loading branch information
NickSwainston committed Feb 8, 2024
1 parent 37d5ef4 commit 6b95da4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions meerpipe/scripts/calc_max_nsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ def main():
parser.add_argument(
"--sn",
type=float,
required=True
required=True,
help="The signal-to-noise ratio of the archive",
)
parser.add_argument(
"--nchan",
type=int,
required=True
required=True,
help="The number of frequency channels in the decimated archive",
)
parser.add_argument(
"--duration",
type=float,
required=True
required=True,
help="The duration of the archive in seconds",
)
parser.add_argument(
"--input_nsub",
type=float,
required=True
required=True,
help="The number of subintegrations of the input archive",
)
parser.add_argument(
Expand All @@ -43,14 +43,14 @@ def main():
args = parser.parse_args()

nsub = calc_max_nsub(
sn,
nchan,
duration,
input_nsub,
sn_desired=12.,
minimum_duration=480,
args.sn,
args.nchan,
args.duration,
args.input_nsub,
sn_desired=args.sn_desired,
minimum_duration=args.minimum_duration,
)
if nsub = 1:
if nsub <= 1:
print("1")
else:
print(f"1 {nsub}")
Expand Down

0 comments on commit 6b95da4

Please sign in to comment.