Skip to content

Commit

Permalink
update to work and to fix a long-term bug
Browse files Browse the repository at this point in the history
  • Loading branch information
karllark committed Aug 13, 2024
1 parent f50c1ba commit 4b8fcf6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions megabeast/tools/simulate_obs.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ def simulate_obs(
vstack(simtable_list).write(output_catalog, overwrite=True)


if __name__ == "__main__": # pragma: no cover

def main():
# commandline parser
parser = argparse.ArgumentParser()

parser.add_argument(
"--physgrid_list",
"-p",
Expand Down Expand Up @@ -198,7 +198,7 @@ def simulate_obs(
# run observation simulator
simulate_obs(
args.physgrid_list,
args.noise_model_lists,
args.noise_model_list,
args.output_catalog,
beastinfo_list=args.beastinfo_list,
nsim=args.nsim,
Expand All @@ -208,3 +208,8 @@ def simulate_obs(
weight_to_use=args.weight_to_use,
ranseed=args.ranseed,
)


if __name__ == "__main__": # pragma: no cover

main()

0 comments on commit 4b8fcf6

Please sign in to comment.