def test_update_once(self, tmp_path): filename = 'user_parameters.yaml' p, f = create_temporary_file(tmp_path, filename) write_parameter_to_file(f, 'model_output__out_dir', tmp_path / 'out_dir') f.close() delta = BmiDelta() delta.initialize(p) delta.update() assert delta._delta._time == 25000.0
import matplotlib.pyplot as plt from BMI_pyDeltaRCM import BmiDelta delta = BmiDelta() delta.initialize('input_configuration.yaml') for _t in range(0, 50): delta.update() delta.finalize() fig, ax = plt.subplots() ax.imshow(delta.get_value('sea_bottom_surface__elevation') plt.show()