Skip to content

Commit

Permalink
style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitrasal committed Jun 10, 2024
1 parent 5661860 commit 39f557b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/hivpy/hiv_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def stp_HIV_transmission(self, person):

def ltp_transmission(self, population: Population):
"""
Sets population set for which HIV transmission occurs from a long term partner.
Sets population set for which HIV transmission occurs from a long term partner.
Considers monogamous and non-monogamous relationships.
"""
num_neg_women_with_infected_parter = len(population.get_sub_pop([(col.SEX, op.eq, SexType.Female),
Expand Down Expand Up @@ -443,7 +443,6 @@ def update_HIV_status(self, population: Population):
# TODO: Add ltp HIV transmission
# Determine HIV status after transmission
new_HIV_status = population.apply_function(self.stp_HIV_transmission, 1, HIV_neg_active_pop)

# Apply HIV status to sub-population
population.set_present_variable(col.HIV_STATUS,
new_HIV_status,
Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_hiv_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def test_no_infection_in_nonmonogamous_ltp():

def test_ltp_deterministic_variables():
"""
Check that for a specific group in the population the estimation is as expected
Check that for a specific group in the population the estimation is as expected
"""
N = 1000
pop = Population(size=N, start_date=date(1990, 1, 1))
Expand Down

0 comments on commit 39f557b

Please sign in to comment.