From 172ef2e5ae3937fac50d74da80357a93e4b64250 Mon Sep 17 00:00:00 2001 From: rakow Date: Tue, 24 Oct 2023 12:42:55 +0200 Subject: [PATCH] fix is_mobile column in mid --- matsim/scenariogen/data/formats/mid.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matsim/scenariogen/data/formats/mid.py b/matsim/scenariogen/data/formats/mid.py index 8d159e6..8f0b372 100644 --- a/matsim/scenariogen/data/formats/mid.py +++ b/matsim/scenariogen/data/formats/mid.py @@ -229,9 +229,9 @@ def mobile(p): x = int(p.mobil) if x == 0: return False - elif x == 1: - return True - return None + + # potential null values are ignored, and true returned + return True @staticmethod def present_on_day(p):