Skip to content

Commit e736e3c

Browse files
authored
Merge pull request #14 from TransitApp/better_default_value_for_duration_modifierx
set duration modifiers to a better default
2 parents ca9db45 + 9553e3e commit e736e3c

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

gtfs_loader/schema.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,10 @@ class StopTime(Entity):
231231
end_pickup_drop_off_window: GTFSTime = GTFSTime('')
232232
pickup_type: PickupType = PickupType.REGULARLY_SCHEDULED
233233
drop_off_type: DropOffType = DropOffType.REGULARLY_SCHEDULED
234-
mean_duration_factor: float = -1
235-
mean_duration_offset: float = -1
236-
safe_duration_factor: float = -1
237-
safe_duration_offset: float = -1
234+
mean_duration_factor: Optional[float] = None
235+
mean_duration_offset: Optional[float] = None
236+
safe_duration_factor: Optional[float] = None
237+
safe_duration_offset: Optional[float] = None
238238

239239
@property
240240
def stop(self):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup, find_packages
22

33
setup(name='py-gtfs-loader',
4-
version='0.1.7',
4+
version='0.1.8',
55
description='Load GTFS',
66
url='https://github.com/TransitApp/py-gtfs-loader',
77
author='Nicholas Paun, Jonathan Milot',
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
trip_id,stop_sequence,stop_id,arrival_time,departure_time,start_pickup_drop_off_window,end_pickup_drop_off_window,pickup_type,drop_off_type,mean_duration_factor,mean_duration_offset,safe_duration_factor,safe_duration_offset
2-
trip_1,0,junction,22:00:00,22:00:00,,,0,0,-1,-1,-1,-1
3-
trip_1,1,slocan-park,22:01:00,22:01:00,,,0,0,-1,-1,-1,-1
4-
trip_1,2,slocan-city,22:02:00,22:02:00,,,0,0,-1,-1,-1,-1
5-
trip_1,3,nelson-tc,22:03:00,22:03:00,,,0,0,-1,-1,-1,-1
6-
trip_1,4,junction,22:04:00,22:04:00,,,0,0,-1,-1,-1,-1
7-
trip_2,0,junction,22:04:00,22:04:00,,,0,0,-1,-1,-1,-1
8-
trip_2,1,slocan-park,22:05:00,22:05:00,,,0,0,-1,-1,-1,-1
9-
trip_2,2,slocan-city,22:06:00,22:06:00,,,0,0,-1,-1,-1,-1
10-
trip_2,3,nelson-tc,22:07:00,22:07:00,,,0,0,-1,-1,-1,-1
11-
trip_2,4,junction,22:08:00,22:08:00,,,0,0,-1,-1,-1,-1
12-
trip_3,0,junction,22:08:00,22:08:00,,,0,0,-1,-1,-1,-1
13-
trip_3,1,slocan-park,22:09:00,22:09:00,,,0,0,-1,-1,-1,-1
14-
trip_3,2,slocan-city,22:10:00,22:10:00,,,0,0,-1,-1,-1,-1
15-
trip_3,3,nelson-tc,22:11:00,22:11:00,,,0,0,-1,-1,-1,-1
16-
trip_3,4,junction,22:12:00,22:12:00,,,0,0,-1,-1,-1,-1
2+
trip_1,0,junction,22:00:00,22:00:00,,,0,0,,,,
3+
trip_1,1,slocan-park,22:01:00,22:01:00,,,0,0,,,,
4+
trip_1,2,slocan-city,22:02:00,22:02:00,,,0,0,,,,
5+
trip_1,3,nelson-tc,22:03:00,22:03:00,,,0,0,,,,
6+
trip_1,4,junction,22:04:00,22:04:00,,,0,0,,,,
7+
trip_2,0,junction,22:04:00,22:04:00,,,0,0,,,,
8+
trip_2,1,slocan-park,22:05:00,22:05:00,,,0,0,,,,
9+
trip_2,2,slocan-city,22:06:00,22:06:00,,,0,0,,,,
10+
trip_2,3,nelson-tc,22:07:00,22:07:00,,,0,0,,,,
11+
trip_2,4,junction,22:08:00,22:08:00,,,0,0,,,,
12+
trip_3,0,junction,22:08:00,22:08:00,,,0,0,,,,
13+
trip_3,1,slocan-park,22:09:00,22:09:00,,,0,0,,,,
14+
trip_3,2,slocan-city,22:10:00,22:10:00,,,0,0,,,,
15+
trip_3,3,nelson-tc,22:11:00,22:11:00,,,0,0,,,,
16+
trip_3,4,junction,22:12:00,22:12:00,,,0,0,,,,

0 commit comments

Comments
 (0)