File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -414,9 +414,6 @@ def SetBirthRate(self,
414414 'objects and passed to the Demographics object during the constructor call. They can be modified '
415415 'afterward, if needed.' ,
416416 DeprecationWarning , stacklevel = 2 )
417- # if type(birth_rate) is float or type(birth_rate) is int:
418- # birth_rate = CrudeRate(birth_rate)
419- # dtk_birthrate = birth_rate.get_dtk_rate()
420417 dtk_birthrate = birth_rate / 365 / 1000
421418
422419 if node_ids is None :
@@ -436,13 +433,6 @@ def SetMortalityRate(self,
436433 """
437434 warnings .warn ('SetMortalityRate() is deprecated. Please use the emodpy Demographics method: '
438435 'set_mortality_distribution()' , DeprecationWarning , stacklevel = 2 )
439-
440- # yearly_mortality_rate = YearlyRate(mortality_rate)
441- # if type(mortality_rate) is float or type(mortality_rate) is int:
442- # mortality_rate = CrudeRate(mortality_rate)
443- # mortality_rate = mortality_rate.get_dtk_rate()
444- mortality_rate = mortality_rate #/ 365 / 1000
445-
446436 if node_ids is None :
447437 # setting = {"MortalityDistribution": DT._ConstantMortality(yearly_mortality_rate).to_dict()}
448438 setting = {"MortalityDistribution" : DT ._ConstantMortality (mortality_rate ).to_dict ()}
You can’t perform that action at this time.
0 commit comments