From 13d30c604d078b0018ec00dacfd3be8e59f01896 Mon Sep 17 00:00:00 2001 From: Michael Levy Date: Fri, 1 Mar 2024 17:00:32 -0700 Subject: [PATCH] Another MARBL_settings_class constructor arg fix MARBL_generate_diagnostics_file.py also constructs a settings class object, and needs to specify argument names to avoid passing the wrong arguments --- MARBL_tools/MARBL_generate_diagnostics_file.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MARBL_tools/MARBL_generate_diagnostics_file.py b/MARBL_tools/MARBL_generate_diagnostics_file.py index 4b66b8a7..d9823b54 100755 --- a/MARBL_tools/MARBL_generate_diagnostics_file.py +++ b/MARBL_tools/MARBL_generate_diagnostics_file.py @@ -158,7 +158,11 @@ def _parse_args(marbl_root): from MARBL_tools import MARBL_settings_class from MARBL_tools import MARBL_diagnostics_class - DefaultSettings = MARBL_settings_class(args.default_settings_file, args.saved_state_vars_source, args.grid, args.settings_file_in, args.unit_system) + DefaultSettings = MARBL_settings_class(args.default_settings_file, + args.saved_state_vars_source, + grid=args.grid, + input_file=args.settings_file_in, + unit_system=args.unit_system) MARBL_diagnostics = MARBL_diagnostics_class(args.default_diagnostics_file, DefaultSettings, args.unit_system) # Write the diagnostic file