Skip to content

Commit

Permalink
Add main() entrypoint to um2nc.
Browse files Browse the repository at this point in the history
  • Loading branch information
truth-quark committed Aug 22, 2024
1 parent 14c5137 commit 2bd2009
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion umpost/um2netcdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,10 @@ def parse_args():
return parser.parse_args()


if __name__ == '__main__':
def main():
args = parse_args()
process(args.infile, args.outfile, args)


if __name__ == '__main__':
main()

0 comments on commit 2bd2009

Please sign in to comment.