Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasia-popova committed Apr 8, 2024
1 parent bc50a43 commit bdc4224
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions artifacts/artifact_funcs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,14 @@ end

function artifact_data(datapath_full, name, datapath_trunc, date0, time_start, time_end, comms_ctx)
datafile = joinpath(datapath_full, string(name, ".nc"))
println(date0)
println(date0)
println(time_start)
println(time_end)
println(datafile)
println(datapath_trunc)
println(name)
println(time_end)
println(datafile)
println(datapath_trunc)
println(name)
println(comms_ctx)
datafile_truncated = Regridder.truncate_dataset(date0, time_start, time_end, datafile, datapath_trunc, name, comms_ctx)
datafile_truncated =
Regridder.truncate_dataset(date0, time_start, time_end, datafile, datapath_trunc, name, comms_ctx)
return datafile_truncated
end
2 changes: 1 addition & 1 deletion src/Regridder.jl
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ function truncate_dataset(
println("----------------------------")

ds_truncated = NCDataset(datafile_truncated, "c")
ds_truncated = write(truncated_ds, view(ds, time = start_id:end_id))
ds_truncated = write(ds_truncated, view(ds, time = start_id:end_id))
println("truncated")

close(ds)
Expand Down

0 comments on commit bdc4224

Please sign in to comment.