Commit bbebb211 authored by tchervec's avatar tchervec
Browse files

Merge branch '62-divide-by-zero-encountered-2' into 'develop'

Resolve "divide by zero encountered"

See merge request ivt-vpl/populations/ch-zh-synpop!95
parents a042b728 629be346
...@@ -53,7 +53,7 @@ def execute(context): ...@@ -53,7 +53,7 @@ def execute(context):
trips_frames.append(pd.DataFrame(columns=["origin_id", "destination_id", "vehicle_type"], trips_frames.append(pd.DataFrame(columns=["origin_id", "destination_id", "vehicle_type"],
data=trips)) data=trips))
progress.update(number_of_trips) progress.update(number_of_trips)
# concatenate into single data frame # concatenate into single data frame
df_trips = pd.concat(trips_frames) df_trips = pd.concat(trips_frames)
......
...@@ -53,7 +53,7 @@ def execute(context): ...@@ -53,7 +53,7 @@ def execute(context):
trips_frames.append(pd.DataFrame(columns=["origin_id", "destination_id", "vehicle_type"], trips_frames.append(pd.DataFrame(columns=["origin_id", "destination_id", "vehicle_type"],
data=trips)) data=trips))
progress.update(number_of_trips) progress.update(number_of_trips)
# concatenate into single data frame # concatenate into single data frame
df_trips = pd.concat(trips_frames) df_trips = pd.concat(trips_frames)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment