Skip to content

Commit

Permalink
Fix concatenate preprocessor function (#2240)
Browse files Browse the repository at this point in the history
  • Loading branch information
bouweandela authored Oct 24, 2023
1 parent 5441a53 commit bdad237
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions esmvalcore/preprocessor/_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ def _check_time_overlaps(cubes):
overlapping_cubes[1],
)

start_point = isodate.date_isoformat(
new_dates[0], format=isodate.isostrf.DATE_BAS_COMPLETE)
end_point = isodate.date_isoformat(
new_dates[-1], format=isodate.isostrf.DATE_BAS_COMPLETE)
start_point = isodate.datetime_isoformat(
new_dates[0], format=isodate.isostrf.DT_BAS_COMPLETE)
end_point = isodate.datetime_isoformat(
new_dates[-1], format=isodate.isostrf.DT_BAS_COMPLETE)
new_cube = clip_timerange(overlapping_cubes[0],
f'{start_point}/{end_point}')

Expand Down

0 comments on commit bdad237

Please sign in to comment.