Skip to content

Commit

Permalink
change assert for error
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Dec 26, 2024
1 parent 9f56d05 commit 2ed22fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/simulation/simulation_state.jl
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ 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)
@assert isempty(symdiff(dm_cols, em_cols))
if !isempty(symdiff(dm_cols, em_cols))
error("Mismatch in column names for dataset $key: $(symdiff(dm_cols, em_cols))")

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
end
continue
end

Expand Down

0 comments on commit 2ed22fc

Please sign in to comment.