Skip to content

Commit

Permalink
add comment to the code about the use of dims
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Oct 23, 2023
1 parent 7da3309 commit 6f304e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/dataset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6f304e0

Please sign in to comment.