Skip to content

Commit

Permalink
add method for results deserialize
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Oct 2, 2023
1 parent c7c9e01 commit fadf8f7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/core/dataset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,28 @@ function HDF5Dataset{2}(
)
end

function HDF5Dataset{2}(

Check warning on line 258 in src/core/dataset.jl

View check run for this annotation

Codecov / codecov/patch

src/core/dataset.jl#L258

Added line #L258 was not covered by tests
values::HDF5.Dataset,
column_dataset::HDF5.Dataset,
dims::NTuple{5, Int},
resolution::Dates.Period,
initial_time::Dates.DateTime,
)
col1 = column_dataset[1:dims[2]]
col2 = column_dataset[(dims[2] + 1):end]
HDF5Dataset{2}(

Check warning on line 267 in src/core/dataset.jl

View check run for this annotation

Codecov / codecov/patch

src/core/dataset.jl#L265-L267

Added lines #L265 - L267 were not covered by tests
values,
column_dataset,
1,
0,
resolution,
initial_time,
UNSET_INI_TIME,
(col1, col2),
)
end


function get_column_names(::OptimizationContainerKey, s::HDF5Dataset)
s.column_names
return s.column_names
Expand Down

0 comments on commit fadf8f7

Please sign in to comment.