diff --git a/matsim/Network.py b/matsim/Network.py index 3d3d3a2..5f4d032 100644 --- a/matsim/Network.py +++ b/matsim/Network.py @@ -126,6 +126,8 @@ def read_network(filename, skip_attributes=False): if 'class' in elem.attrib: if elem.attrib['class'] == 'java.lang.Long': atts['value'] = float(elem.text) + if elem.attrib['class'] == 'java.lang.Double': + atts['value'] = float(elem.text) if elem.attrib['class'] == 'java.lang.Integer': atts['value'] = int(elem.text)