Skip to content

Commit

Permalink
Add&fix: InputGuard now catches boolean values. Fixed typo in TestCon…
Browse files Browse the repository at this point in the history
…dense::test_equilib_particle
  • Loading branch information
Griger5 committed Jan 21, 2025
1 parent 9fcf0b2 commit 99d0acf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/spec_file_pypartmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ void c_spec_file_read_logical(
const char *name_data, const int *name_size, bool *var
) noexcept {
json_resource_ptr()->read_value(bpstd::string_view(name_data, *name_size), var);
json_resource_ptr()->get_input_guard_ptr()->mark_used_input(static_cast<std::string>(bpstd::string_view(name_data, *name_size)));
}

/*********************************************************************************/
Expand Down
2 changes: 1 addition & 1 deletion tests/test_condense.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_equilib_particles():
def test_equilib_particle(aero_data_params: dict):
# arrange
env_state_ctor_arg = ENV_STATE_CTOR_ARG_MINIMAL
env_state_ctor_arg["rel_humid"] = 0.99
env_state_ctor_arg["rel_humidity"] = 0.99
env_state = ppmc.EnvState(env_state_ctor_arg)
env_state.set_temperature(300)
aero_data = ppmc.AeroData(
Expand Down

0 comments on commit 99d0acf

Please sign in to comment.