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
Failure while writing Shapes(shape_id='149554', shape_pt_lat='38.742155', shape_pt_lon='-9.102203', shape_pt_sequence='1', shape_dist_traveled=None)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-3-44756ea8a7d9> in <module>
----> 1 pygtfs.append_feed(sched, "data")
...
~/.virtualenvs/thesis/lib/python3.7/site-packages/pygtfs/gtfs_entities.py in is_float_none(self, key, value)
85 def is_float_none(self, key, value):
86 try:
---> 87 return float(value)
88 except ValueError:
89 if value is None or value == "":
TypeError: float() argument must be a string or a number, not 'NoneType'
Looking at the is_float_none method, it seems you were expecting float(None) to raise a ValueError, but it is raising a TypeError instead.
The text was updated successfully, but these errors were encountered:
When pygtfs tries to parse the following line:
I get the following error:
Looking at the
is_float_none
method, it seems you were expectingfloat(None)
to raise aValueError
, but it is raising aTypeError
instead.The text was updated successfully, but these errors were encountered: