Skip to content

Commit

Permalink
Add yield statement for feeder barge to position onsite
Browse files Browse the repository at this point in the history
  • Loading branch information
Shields committed Nov 21, 2023
1 parent 3baed36 commit eb9d8e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ORBIT/core/logic/vessel_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,15 @@ def shuttle_items_to_queue(vessel, port, queue, distance, items, **kwargs):
yield vessel.task_wrapper(
"Transit", transit_time, constraints=vessel.transit_limits
)
yield position_onsite(vessel, **kwargs)
yield stabilize(vessel, **kwargs)
vessel.at_site = True

if vessel.at_site:
vessel.submit_debug_log(message=f"{vessel} is at site.")



# Join queue to be active feeder at site
with queue.request() as req:
queue_start = vessel.env.now
Expand Down

0 comments on commit eb9d8e2

Please sign in to comment.