Skip to content

Commit

Permalink
corrected typo in getProbableHospitalByMSOAIZ
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparrow0hawk committed Mar 18, 2021
1 parent 8d687d5 commit e19856d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions microsim/quant_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def getProbableRetailByMSOAIZ(dfRetailPointsPopulation,dfRetailPointsZones,retai


@staticmethod
def getProbableHospitalByMSOAIZ(dfHospitalPopulation,dfHospitalZones,hospital_probHijmsoa_iz,threshold):
def getProbableHospitalByMSOAIZ(dfHospitalPopulation,dfHospitalZones,hospital_probHij,msoa_iz,threshold):
"""getProbableHospitalByMSOAIZ
Given an MSOA area code (England and Wales) or an Intermediate Zone (IZ) 2001 code (Scotland), return
a list of all the surrounding hospitals whose probabilty of being visited by the MSOA_IZ is
Expand All @@ -202,7 +202,9 @@ def getProbableHospitalByMSOAIZ(dfHospitalPopulation,dfHospitalZones,hospital_pr
:type dfHospitalPopulation: pandas.DataFrame
:param dfHospitalZones: # needs clarification
:type dfHospitalZones: pandas.DataFrame
:param hospital_probHijmsoa_iz: An MSOA code (England/Wales e.g. E02000001) or an IZ2001 code (Scotland e.g. S02000001)
:param hospital_probHij: matrix of probability scores of a hospital being visited
:type hospital_probHij: numpy.matrix
:param msoa_iz: An MSOA code (England/Wales e.g. E02000001) or an IZ2001 code (Scotland e.g. S02000001)
:type hospital_probHijmsoa_iz: str
:param threshold: Probability threshold e.g. 0.5 means return all possible hospital points with probability>=0.5
:type threshold: float
Expand Down

0 comments on commit e19856d

Please sign in to comment.