From cb4f765191cfb288da4d6ffda5c4144032121960 Mon Sep 17 00:00:00 2001 From: rakow Date: Tue, 24 Oct 2023 12:35:00 +0200 Subject: [PATCH] fix mid present on day variable --- matsim/scenariogen/data/formats/mid.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/matsim/scenariogen/data/formats/mid.py b/matsim/scenariogen/data/formats/mid.py index e291dc4..8d159e6 100644 --- a/matsim/scenariogen/data/formats/mid.py +++ b/matsim/scenariogen/data/formats/mid.py @@ -236,11 +236,10 @@ def mobile(p): @staticmethod def present_on_day(p): x = int(p.P_STUM) - if x == 3: - return True - elif x == 1 or x == 2: + if x == 1 or x == 2: return False - return None + + return True @staticmethod def parse_time(x):