Skip to content

Commit b664f01

Browse files
committed
cleanup
1 parent 601eb99 commit b664f01

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

emod_api/demographics/demographics_base.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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()}

0 commit comments

Comments
 (0)