From 98f445ec197fcc3c582bf5012070b7b8ecf8ed47 Mon Sep 17 00:00:00 2001 From: Ben Davies Date: Thu, 22 Aug 2024 10:30:04 +1000 Subject: [PATCH] Add main() entrypoint to um2nc. --- umpost/um2netcdf.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/umpost/um2netcdf.py b/umpost/um2netcdf.py index d6df59b..1db101a 100644 --- a/umpost/um2netcdf.py +++ b/umpost/um2netcdf.py @@ -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()