Skip to content

Commit

Permalink
Fixing small bug where _set_calendar() function was not used in parti…
Browse files Browse the repository at this point in the history
…clefile
  • Loading branch information
erikvansebille committed Dec 22, 2023
1 parent 0f4c31d commit 07360a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parcels/particlefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def _create_variables_attribute_dict(self):

if self.time_origin.calendar is not None:
attrs['time']['units'] = "seconds since " + str(self.time_origin)
attrs['time']['calendar'] = 'standard' if self.time_origin.calendar == 'np_datetime64' else self.time_origin.calendar
attrs['time']['calendar'] = _set_calendar(self.time_origin.calendar)

for vname in self.vars_to_write:
if vname not in ['time', 'lat', 'lon', 'depth', 'id']:
Expand Down

0 comments on commit 07360a0

Please sign in to comment.