Skip to content

Commit 55efcac

Browse files
committed
Change default of journey level config
1 parent 135123c commit 55efcac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tm2py/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,15 +1161,15 @@ class ManualJourneyLevelsConfig(ConfigItem):
11611161
@dataclass(frozen=True)
11621162
class TransitJourneyLevelsConfig(ConfigItem):
11631163
"""Transit manual journey levels structure."""
1164-
use_algorithm: bool = True
1164+
use_algorithm: bool = False
11651165
"""
11661166
The original translation from Cube to Emme used an algorithm to, as faithfully as possible, reflect transfer fares via journey levels.
11671167
The algorithm examines fare costs and proximity of transit services to create a set of journey levels that reflects transfer costs.
11681168
While this algorithm works well, the Bay Area's complex fare system results in numerous journey levels specific to operators with low ridership.
11691169
The resulting assignment compute therefore expends a lot of resources on these operators.
11701170
Set this parameter to `True` to use the algorithm. Exactly one of `use_algorithm` or `specify_manually` must be `True`.
11711171
"""
1172-
specify_manually: bool = False
1172+
specify_manually: bool = True
11731173
"""
11741174
An alternative to using an algorithm to specify the journey levels is to use specify them manually.
11751175
If this option is set to `True`, the `manual` parameter can be used to assign fare systems to faresystem groups (or journey levels).
@@ -1178,7 +1178,7 @@ class TransitJourneyLevelsConfig(ConfigItem):
11781178
The other faresystem group is automatically generated in the code with the rest of the faresystems which are not specified in any of the groups.
11791179
See the `manual` entry for an example.
11801180
"""
1181-
manual: Optional[Tuple[ManualJourneyLevelsConfig, ...]] = None
1181+
manual: Optional[Tuple[ManualJourneyLevelsConfig, ...]] = (ManualJourneyLevelsConfig(level_id=1, group_fare_systems=(25,)),)
11821182
"""
11831183
If 'specify_manually' is set to `True`, there should be at least one faresystem group specified here.
11841184
The format includes two entries: `level_id`, which is the serial number of the group specified,

0 commit comments

Comments
 (0)