Skip to content

Commit

Permalink
deprecate capacitated assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-sijia committed Aug 19, 2024
1 parent 172a183 commit ec9ba4e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tm2py/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,13 @@ class TransitConfig(ConfigItem):
default_factory=TransitVehicleConfig
)

@validator("use_ccr")
def deprecate_capacitated_assignment(cls, value, values):
"""Validate use_ccr is false."""
assert (
not value
), "capacitated transit assignment is deprecated, please set use_ccr to false"
return value

@dataclass(frozen=True)
class EmmeConfig(ConfigItem):
Expand Down

0 comments on commit ec9ba4e

Please sign in to comment.