Skip to content

Commit

Permalink
python script to create reference data
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Oct 9, 2023
1 parent ca82018 commit 50d35e5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/python/create_ref.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from matsim.scenariogen.data import run_create_ref_data


def person_filter(df):
""" Default person filter for reference data. """
return df[df.present_on_day & (df.reporting_day <= 4)]


if __name__ == "__main__":
person, trips, share = run_create_ref_data.create("../../../../shared-svn/projects/NaMAV/data/SrV_2018",
person_filter)

print(share)

0 comments on commit 50d35e5

Please sign in to comment.