ME26 Baseline NetworkΒΆ

This page reviews the configuration of the ME26 network and runs a baseline simulation.

import ME26
import passengersim as pax

pax.versions()
passengersim 0.94
passengersim.core 0.94
cfg = ME26.load_config()
Loading network config file /Users/jpn/Git/pax/networks/ME26/configs/v26.8.1
cfg.plotly_route_map("Olive")
cfg.plotly_route_map("Date")
cfg.plotly_route_map("Kebab")
cfg.plotly_route_map("Pomegranate", zoom=1.5)
sim = pax.MultiSimulation(cfg)
out = sim.run()

---------------------------------------------------------------------------
KeyboardInterrupt                         Traceback (most recent call last)
Cell In[8], line 2
      1 sim = pax.MultiSimulation(cfg)
----> 2 out = sim.run()

File ~/Git/pax/packages/passengersim-public/src/passengersim/driver/_multiproc.py:873, in MultiSimulation.run(self, summarizer, output_dir, max_processes, fail_fast, rich_progress, cache_dir, run_id)
    863 future = self._run_asynchronously(
    864     summarizer=summarizer,
    865     output_dir=output_dir,
   (...)    870     jobber=jobber,
    871 )
    872 try:
--> 873     result = future.result()
    874     future._monitor_thread.join()
    875     return finalize_result(result)

File ~/.local/share/uv/python/cpython-3.12.13-macos-aarch64-none/lib/python3.12/concurrent/futures/_base.py:451, in Future.result(self, timeout)
    448 elif self._state == FINISHED:
    449     return self.__get_result()
--> 451 self._condition.wait(timeout)
    453 if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]:
    454     raise CancelledError()

File ~/.local/share/uv/python/cpython-3.12.13-macos-aarch64-none/lib/python3.12/threading.py:355, in Condition.wait(self, timeout)
    353 try:    # restore state no matter what (e.g., KeyboardInterrupt)
    354     if timeout is None:
--> 355         waiter.acquire()
    356         gotit = True
    357     else:

KeyboardInterrupt: 
out.fig_carrier_revenues()
out.fig_carrier_load_factors()
out.fig_carrier_local_share()
out.fig_fare_class_mix()