Skip to content

Commit

Permalink
no longer deleting the "*_initial.nc" file
Browse files Browse the repository at this point in the history
that way it can be used for plotting if the final output is parquet.
  • Loading branch information
kthyng committed Mar 7, 2025
1 parent 1a2a397 commit c8251ea
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions particle_tracking_manager/models/opendrift/opendrift.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,12 +1051,13 @@ def run_drifters(self):
self.o.outfile_name = self.output_file
self.output_file = self.output_file

try:
# remove initial file to save space
os.remove(self.output_file_initial)
except PermissionError:
# windows issue
pass
# don't remove the initial netcdf file since will use that for plots if needed
# try:
# # remove initial file to save space
# os.remove(self.output_file_initial)
# except PermissionError:
# # windows issue
# pass

@property
def _config(self):
Expand Down

0 comments on commit c8251ea

Please sign in to comment.