Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
1kastner committed Sep 9, 2023
1 parent dbb0807 commit 3a48daf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions conflowgen/previews/quay_side_throughput_preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,16 @@ def get_quay_side_throughput(self) -> InboundAndOutboundContainerVolume:

teu_factor = ContainerLengthDistributionRepository().get_teu_factor()

epsilon = 0.1

result = InboundAndOutboundContainerVolume(
inbound=ContainerVolume(
teu=quayside_inbound_container_volume_in_teu,
containers=int(quayside_inbound_container_volume_in_teu / teu_factor)
containers=int((quayside_inbound_container_volume_in_teu + epsilon)// teu_factor)
),
outbound=ContainerVolume(
teu=quayside_outbound_container_volume_in_teu,
containers=int(quayside_outbound_container_volume_in_teu / teu_factor)
containers=int((quayside_outbound_container_volume_in_teu + epsilon)/ teu_factor)
)
)

Expand Down

0 comments on commit 3a48daf

Please sign in to comment.