Skip to content

Commit

Permalink
Fix save_model() function following the recent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyPechnikov committed Sep 4, 2023
1 parent d6033ef commit 871c3e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygmtsar/pygmtsar/IO.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def save_model(self, model, name=None, caption='Saving 3D datacube', chunksize=N
raise ValueError('Specify name for the output NetCDF file')

# save to NetCDF file
model_filename = self.get_filenames(None, name, add_subswath=False)
model_filename = self.get_filename(name, add_subswath=False)
if os.path.exists(model_filename):
os.remove(model_filename)
if isinstance(model, xr.DataArray):
Expand Down

0 comments on commit 871c3e0

Please sign in to comment.