Skip to content

Commit

Permalink
Another MARBL_settings_class constructor arg fix
Browse files Browse the repository at this point in the history
MARBL_generate_diagnostics_file.py also constructs a settings class object, and
needs to specify argument names to avoid passing the wrong arguments
  • Loading branch information
mnlevy1981 committed Mar 2, 2024
1 parent 777d6cf commit 13d30c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion MARBL_tools/MARBL_generate_diagnostics_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13d30c6

Please sign in to comment.