def to_netcdf(self, path): """ Save complete model data (inputs and, if available, results) to a NetCDF file at the given ``path``. """ io.save_netcdf(self._model_data, path, model=self)
def to_netcdf(self, path): """ Save complete model data (inputs and, if available, results) to a NetCDF file at the given ``path``. """ io.save_netcdf(self._model_data, path)
def _save_spore(backend_model, results, spore_num, model_data=None): _path = spores_config["save_per_spore_path"].format(spore_num) new_ds = _combine_spores_results_and_inputs(backend_model, results, spore_num, model_data) print(f"Saving SPORE {spore_num} to {_path}") io.save_netcdf(new_ds, _path)