@@ -424,7 +424,7 @@ def test_tx_recovery_to_MAM_severe_acute_malnutrition_without_complications(tmpd
424424 # Get person to use:
425425 df = sim .population .props
426426 under5s = df .loc [df .is_alive & (df ['age_years' ] < 5 )]
427- person_id = under5s .index [1 ]
427+ person_id = under5s .index [0 ]
428428 # Manually set this individual properties to be well
429429 df .at [person_id , 'un_WHZ_category' ] = 'WHZ>=-2'
430430 df .at [person_id , 'un_am_MUAC_category' ] = '>=125mm'
@@ -558,7 +558,7 @@ def test_tx_complications_recovery_severe_acute_malnutrition_with_complications(
558558 # Get person to use:
559559 df = sim .population .props
560560 under5s = df .loc [df .is_alive & (df ['age_years' ] < 5 )]
561- person_id = under5s .index [1 ]
561+ person_id = under5s .index [0 ]
562562 # Manually set this individual properties to have SAM
563563 df .at [person_id , 'un_WHZ_category' ] = 'WHZ<-3'
564564 df .at [person_id , 'un_last_wasting_date_of_onset' ] = sim .date
@@ -676,7 +676,7 @@ def test_nat_death_overwritten_by_tx_death(tmpdir):
676676 # Get person to use:
677677 df = sim .population .props
678678 under5s = df .loc [df .is_alive & (df ['age_years' ] < 5 )]
679- person_id = under5s .index [1 ]
679+ person_id = under5s .index [0 ]
680680 # Manually set this individual properties to have SAM due to severe wasting, hence natural death should be applied
681681 df .at [person_id , 'un_WHZ_category' ] = 'WHZ<-3'
682682 df .at [person_id , 'un_last_wasting_date_of_onset' ] = sim .date
@@ -915,7 +915,7 @@ def test_recovery_before_death_scheduled(tmpdir):
915915 # Get person to use
916916 df = sim .population .props
917917 under5s = df .loc [df .is_alive & (df ['age_years' ] < 5 )]
918- person_id = under5s .index [1 ]
918+ person_id = under5s .index [0 ]
919919 # Manually set this individual properties to be well
920920 df .at [person_id , 'un_WHZ_category' ] = 'WHZ>=-2'
921921 df .at [person_id , 'un_am_MUAC_category' ] = '>=125mm'
0 commit comments