Skip to content

Commit

Permalink
extract the col names from tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Jan 7, 2025
1 parent 5da4438 commit 53927a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulation/simulation_state.jl
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function _initialize_system_states!(
if has_dataset(emulator_states, key)
em_cols = get_column_names(key, get_dataset(emulator_states, key))
@assert_op length(dm_cols) == length(em_cols)
if !isempty(symdiff(dm_cols, em_cols))
if !isempty(symdiff(first(dm_cols), first(em_cols)))
error(

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

View check run for this annotation

Codecov / codecov/patch

src/simulation/simulation_state.jl#L161-L163

Added lines #L161 - L163 were not covered by tests
"Mismatch in column names for dataset $key: $(symdiff(dm_cols, em_cols))",
)
Expand Down

0 comments on commit 53927a0

Please sign in to comment.