You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/usr/local/lib/python2.6/dist-packages/pygrowup/pygrowup.py", line 302, in bmifa
sex=
sex, height=height)
File "/usr/local/lib/python2.6/dist-packages/pygrowup/pygrowup.py", line 351, in zscore_for_measurement
zscores = obs.get_zscores(self)
File "/usr/local/lib/python2.6/dist-packages/pygrowup/pygrowup.py", line 67, in get_zscores
table = getattr(growth, table_name)
AttributeError: 'Calculator' object has no attribute 'bmifa_girls_None'
you eval the age in weeks but if you have a value between 13 > 14 you get a error
File "/usr/local/lib/python2.6/dist-packages/pygrowup/pygrowup.py", line 302, in bmifa
sex=
sex, height=height)
File "/usr/local/lib/python2.6/dist-packages/pygrowup/pygrowup.py", line 351, in zscore_for_measurement
zscores = obs.get_zscores(self)
File "/usr/local/lib/python2.6/dist-packages/pygrowup/pygrowup.py", line 67, in get_zscores
table = getattr(growth, table_name)
AttributeError: 'Calculator' object has no attribute 'bmifa_girls_None'
you eval the age in weeks but if you have a value between 13 > 14 you get a error
the is the following:
imc = 32.0
age_in_moths = 3
sex = F
heigth = 50
I resolve the issue converting to integer in:
@Property
def age_in_weeks(self):
return int((self.age * D('30.4374')) / D(7))
i think a exception in line 133 may be a solution.
Regards
The text was updated successfully, but these errors were encountered: