Skip to content

Commit c1a3000

Browse files
authored
Merge pull request #45 from axiom-data-science/fix_plots_parquet
no longer deleting the "*_initial.nc" file
2 parents d8e4084 + c8251ea commit c1a3000

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

particle_tracking_manager/models/opendrift/opendrift.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,12 +1051,13 @@ def run_drifters(self):
10511051
self.o.outfile_name = self.output_file
10521052
self.output_file = self.output_file
10531053

1054-
try:
1055-
# remove initial file to save space
1056-
os.remove(self.output_file_initial)
1057-
except PermissionError:
1058-
# windows issue
1059-
pass
1054+
# don't remove the initial netcdf file since will use that for plots if needed
1055+
# try:
1056+
# # remove initial file to save space
1057+
# os.remove(self.output_file_initial)
1058+
# except PermissionError:
1059+
# # windows issue
1060+
# pass
10601061

10611062
@property
10621063
def _config(self):

0 commit comments

Comments
 (0)