Skip to content

Commit 897ca29

Browse files
committed
remove hardcoded humidity. closes #142
1 parent 1ee5414 commit 897ca29

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/env_state.F90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ subroutine f_env_state_from_json(ptr_c) bind(C)
3434
type(spec_file_t) :: file
3535
call c_f_pointer(ptr_c, ptr_f)
3636
call spec_file_read_env_state(file, ptr_f)
37-
ptr_f%rel_humid = .99 !TODO #142
3837
end subroutine
3938

4039
subroutine f_env_state_set_temperature(ptr_c, temperature) bind(C)
@@ -70,6 +69,8 @@ subroutine f_env_state_get_rel_humid(ptr_c, rel_humid) bind(C)
7069

7170
end subroutine
7271

72+
73+
7374
subroutine f_env_state_set_height(ptr_c, height) bind(C)
7475
type(env_state_t), pointer :: ptr_f => null()
7576
type(c_ptr), intent(in) :: ptr_c

tests/test_env_state.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,10 @@ def test_pressure():
6868
# assert
6969
assert value == sut.pressure
7070

71+
@staticmethod
72+
def test_humidity_ctor():
73+
# arrange and act
74+
sut = ppmc.EnvState(ENV_STATE_CTOR_ARG_MINIMAL)
75+
76+
# assert
77+
assert ENV_STATE_CTOR_ARG_MINIMAL['rel_humidity'] == sut.rh

0 commit comments

Comments
 (0)