From 6f304e06a4b2fcdd736c0d0fb94f89e3a21cdd45 Mon Sep 17 00:00:00 2001 From: Jose Daniel Lara Date: Mon, 23 Oct 2023 12:38:30 -0600 Subject: [PATCH] add comment to the code about the use of dims --- src/core/dataset.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/dataset.jl b/src/core/dataset.jl index 457f601296..940159f61d 100644 --- a/src/core/dataset.jl +++ b/src/core/dataset.jl @@ -241,7 +241,12 @@ function HDF5Dataset{2}( resolution::Dates.Period, initial_time::Dates.DateTime, ) + # The indexing is done in this way because we save all the names in an + # adjacent column entry in the HDF5 Datatset. The indexes for each column + # are known because we know how many elements are in each dimension. + # the names for the first column are store in the 1:first_column_number_of_elements. col1 = column_dataset[1:dims[2]] + # the names for the second column are store in the first_column_number_of elements + 1:end of the column with the names. col2 = column_dataset[(dims[2] + 1):end] HDF5Dataset{2}( values,