Skip to content

Commit

Permalink
fix columns call
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Sep 29, 2023
1 parent ba4e377 commit 5e83cfb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/simulation/simulation_state.jl
Original file line number Diff line number Diff line change
Expand Up @@ -148,27 +148,27 @@ function _initialize_system_states!(
make_system_state(
simulation_initial_time,
min_res,
cols,
column_names,
),
)
end
end

for key in get_dataset_keys(decision_states)
dm_cols = get_column_names(key, get_dataset(decision_states, key))

Check warning on line 158 in src/simulation/simulation_state.jl

View check run for this annotation

Codecov / codecov/patch

src/simulation/simulation_state.jl#L158

Added line #L158 was not covered by tests
if has_dataset(emulator_states, key)
dm_cols = get_column_names(key, get_dataset(decision_states, key))
em_cols = get_column_names(key, get_dataset(emulator_states, key))
@assert_op dm_cols == em_cols
continue
end
cols = get_column_names(key, get_dataset(decision_states, key))

set_dataset!(
emulator_states,
key,
make_system_state(
simulation_initial_time,
min_res,
cols,
dm_cols,
),
)
end
Expand Down

0 comments on commit 5e83cfb

Please sign in to comment.