Skip to content

Commit

Permalink
Merge pull request #27 from matsim-vsp/delimiter_fix
Browse files Browse the repository at this point in the history
handling of delimiters different from ";"
  • Loading branch information
simei94 authored Mar 10, 2024
2 parents 0e54a7d + 46f4e27 commit 04cf940
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matsim/calibration/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def read_trips_and_persons(run, transform_persons=None, transform_trips=None) ->
trips = glob.glob(run.rstrip("/") + "/*.output_trips.csv.gz")[0]
persons = glob.glob(run.rstrip("/") + "/*.output_persons.csv.gz")[0]

df = pd.read_csv(trips, sep=";", dtype={"person": "str"})
dfp = pd.read_csv(persons, sep=";", dtype={"person": "str"})
df = pd.read_csv(trips, dtype={"person": "str"})
dfp = pd.read_csv(persons, dtype={"person": "str"})

gdf = geopandas.GeoDataFrame(dfp,
geometry=geopandas.points_from_xy(dfp.first_act_x, dfp.first_act_y)
Expand Down

0 comments on commit 04cf940

Please sign in to comment.