Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
1kastner committed May 26, 2024
1 parent 200260d commit d8036a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions conflowgen/api/port_call_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import datetime
import typing
import uuid
import warnings

from conflowgen.data_summaries.data_summaries_cache import DataSummariesCache
from conflowgen.domain_models.factories.schedule_factory import ScheduleFactory
Expand Down Expand Up @@ -115,7 +114,7 @@ def add_vehicle(
vehicle_capacity: int,
inbound_container_volume: int,
next_destinations: typing.Optional[typing.List[typing.Tuple[str, float]]] = None,
service_name: typing.Optional[str] = None
service_name: typing.Optional[str] = None,
) -> None:
r"""
Add a service that frequently calls the terminal, both on the seaside and landside.
Expand All @@ -129,7 +128,8 @@ def add_vehicle(
:class:`ModeOfTransport.barge`, or
:class:`ModeOfTransport.train`
service_name:
The name of the service, i.e., the shipping line or rail freight line
The name of the service, i.e., the shipping line or rail freight line.
Defaults to a randomly generated id.
vehicle_arrives_at:
A date the service would arrive at the terminal. This can, e.g., point at the week day for weekly
services. In any case, this is combined with the parameter ``vehicle_arrives_every_k_days`` and only
Expand Down Expand Up @@ -162,6 +162,7 @@ def add_vehicle(
next_destinations:
Pairs of destination and frequency of the destination being chosen.
"""

return self.add_service_that_calls_terminal(
vehicle_type=vehicle_type,
service_name=service_name if service_name is not None else str(uuid.uuid4()),
Expand Down

0 comments on commit d8036a8

Please sign in to comment.