Skip to content

Commit

Permalink
fix mid present on day variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Oct 24, 2023
1 parent 7d3f0c1 commit cb4f765
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions matsim/scenariogen/data/formats/mid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit cb4f765

Please sign in to comment.