Skip to content

Commit

Permalink
ds_truncated
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasia-popova committed Apr 6, 2024
1 parent b169ab5 commit 017b907
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/regridder_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ end
for date in date0test
date0 = DateTime(date, dateformat"yyyymmdd")
sst_data = Regridder.truncate_dataset(date0, time_start, time_end, sst_data_all, REGRID_DIR, "test", comms_ctx)
nds = NCDataset(sst_data, "r")
new_dates = nds["time"][:]
ds_truncated = NCDataset(sst_data, "r")
new_dates = ds_truncated["time"][:]

date_start = date0 + Dates.Second(time_start)
date_end = date0 + Dates.Second(time_start + time_end)
Expand All @@ -380,7 +380,7 @@ end
#@test nds["time"][1] == ds["time"][start_id]
#@test last(nds["time"][:]) == ds["time"][end_id]

close(nds)
close(ds_truncated)
end

close(ds)
Expand Down

0 comments on commit 017b907

Please sign in to comment.