Skip to content

Commit

Permalink
update check for writing lite_restart in main
Browse files Browse the repository at this point in the history
  • Loading branch information
shorvath-noaa committed Nov 14, 2023
1 parent fed5b5f commit dafd616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/troute-nwm/src/nwm_routing/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def main_v04(argv):
data_assimilation.update_after_compute(run_results, dt*nts)

# TODO move the conditional call to write_lite_restart to nwm_output_generator.
if output_parameters['lite_restart'] is not None:
if output_parameters.get('lite_restart',{}).get('lite_restart_output_directory', None):
nhd_io.write_lite_restart(
network.q0,
network._waterbody_df,
Expand Down

0 comments on commit dafd616

Please sign in to comment.