Skip to content

Commit

Permalink
healthsystem: correct argument name arg_service_availability
Browse files Browse the repository at this point in the history
  • Loading branch information
EvaJanouskova committed Sep 29, 2023
1 parent c0cdf8c commit 34c3014
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tlo/methods/healthsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ def __init__(
self.list_fasttrack = [] # provided so that there is a default even before simulation is run

# Store the argument provided for service_availability
self.arg_service_availabily = service_availability
self.arg_service_availability = service_availability
self.service_availability = ['*'] # provided so that there is a default even before simulation is run

# Check that the capabilities coefficient is correct
Expand Down Expand Up @@ -1157,10 +1157,10 @@ def get_service_availability(self) -> List[str]:
"""Returns service availability. (Should be equal to what is specified by the parameter, but overwrite with what
was provided in argument if an argument was specified -- provided for backward compatibility/debugging.)"""

if self.arg_service_availabily is None:
if self.arg_service_availability is None:
service_availability = self.parameters['Service_Availability']
else:
service_availability = self.arg_service_availabily
service_availability = self.arg_service_availability

assert isinstance(service_availability, list)

Expand Down

0 comments on commit 34c3014

Please sign in to comment.