.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_night_ac_zue.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plot_night_ac_zue.py: Example: Night Train from Amsterdam to Zürich ============================================= *Standard schedule* 2021/22 from Amsterdam over Emmerich, Basel to Zürich (a single route) on fridays, saturdays and sundays:: Route : XNAC-EEM-RXBA-XSZH Calendar : 12/12/2021 to 12/12/2022 Fri, Sat, Sun Start at: 20:00 in XNAC Arrival at: 21:30 in EEM Arrival at: 03:30 in RXBA Arrival at: 04:30 in XSZH *Update schedule* due to construction work between Amsterdam and Utrecht on sundays from 12/04/2022 on: The train on sundays starts in Utrecht with destination Basel and handover Venlo. Therefore we need to routes from April on: :: Route : XNAC-EEM-RXBA-XSZH Calendar : 12/04/2022 to 12/12/2022 Fri, Sat Start at: 20:00 in XNAC Arrival at: 21:30 in EEM Arrival at: 03:30 in RXBA Arrival at: 04:30 in XSZH Route : XNU-XNVL-RXBA Calendar : 12/04/2022 to 12/12/2022 Sun Start at: 20:30 in XNU Arrival at: 22:00 in XNVL Arrival at: 04:00 in RXBA .. GENERATED FROM PYTHON SOURCE LINES 34-38 .. code-block:: default from tom.plot import plot_train, plot_graph from tom.tom import make_train_from_yml, TrainRun, RouteSection, Route from tom.util import example, dump_routing_info_as_xml .. GENERATED FROM PYTHON SOURCE LINES 39-43 Standard schedule (version 1) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Load example night train 2021/22 standard schedule (version 1) from yaml specification .. GENERATED FROM PYTHON SOURCE LINES 43-46 .. code-block:: default _, t_spec_file = example('../tests/data', 'ac-zue-1') print(t_spec_file.read_text()) .. rst-class:: sphx-glr-script-out Out: .. code-block:: none --- # Nighttrain from Amsterdam to Zürich coreID: 402403 version: 1 sections: - departure_station: XNAC arrival_station: EEM id: 10 version: 1 departure_time: '20:00:00' travel_time: '01:30:00' calendar: begin: &b-begin '2021-12-12' end: &b-end '2021-12-31' mask: 'Fri Sat Sun' color: green succ: - 11 - departure_station: EEM arrival_station: RXBA # Basel Grenze id: 11 version: 1 travel_time: '06:00:00' succ: - 12 - departure_station: RXBA arrival_station: XSZH # Zürich HB id: 12 version: 1 travel_time: '01:00:00' .. GENERATED FROM PYTHON SOURCE LINES 47-48 Create train object and show its train id .. GENERATED FROM PYTHON SOURCE LINES 48-51 .. code-block:: default t = make_train_from_yml(t_spec_file) t.train_id() .. rst-class:: sphx-glr-script-out Out: .. code-block:: none 'TR/8350/402403/00/2021' .. GENERATED FROM PYTHON SOURCE LINES 52-55 Timetable V1 ^^^^^^^^^^^^ Show timetable as dataframe .. GENERATED FROM PYTHON SOURCE LINES 55-58 .. code-block:: default df = t.to_dataframe() df .. raw:: html
Departure XNAC Arrival EEM Departure EEM Arrival RXBA Departure RXBA Arrival XSZH
Daily Train ID
TR/8350/402403/10/2021/2021-12-12 So 12.12.21 20:00 So 12.12.21 21:30 So 12.12.21 21:30 Mo 13.12.21 03:30 Mo 13.12.21 03:30 Mo 13.12.21 04:30
TR/8350/402403/10/2021/2021-12-17 Fr 17.12.21 20:00 Fr 17.12.21 21:30 Fr 17.12.21 21:30 Sa 18.12.21 03:30 Sa 18.12.21 03:30 Sa 18.12.21 04:30
TR/8350/402403/10/2021/2021-12-18 Sa 18.12.21 20:00 Sa 18.12.21 21:30 Sa 18.12.21 21:30 So 19.12.21 03:30 So 19.12.21 03:30 So 19.12.21 04:30
TR/8350/402403/10/2021/2021-12-19 So 19.12.21 20:00 So 19.12.21 21:30 So 19.12.21 21:30 Mo 20.12.21 03:30 Mo 20.12.21 03:30 Mo 20.12.21 04:30
TR/8350/402403/10/2021/2021-12-24 Fr 24.12.21 20:00 Fr 24.12.21 21:30 Fr 24.12.21 21:30 Sa 25.12.21 03:30 Sa 25.12.21 03:30 Sa 25.12.21 04:30
TR/8350/402403/10/2021/2021-12-25 Sa 25.12.21 20:00 Sa 25.12.21 21:30 Sa 25.12.21 21:30 So 26.12.21 03:30 So 26.12.21 03:30 So 26.12.21 04:30
TR/8350/402403/10/2021/2021-12-26 So 26.12.21 20:00 So 26.12.21 21:30 So 26.12.21 21:30 Mo 27.12.21 03:30 Mo 27.12.21 03:30 Mo 27.12.21 04:30
TR/8350/402403/10/2021/2021-12-31 Fr 31.12.21 20:00 Fr 31.12.21 21:30 Fr 31.12.21 21:30 Sa 01.01.22 03:30 Sa 01.01.22 03:30 Sa 01.01.22 04:30


.. GENERATED FROM PYTHON SOURCE LINES 59-63 Bildfahrplan ^^^^^^^^^^^^ Show timetable as plot. No sections from Utrecht over Venlo here. .. GENERATED FROM PYTHON SOURCE LINES 63-66 .. code-block:: default stations = ['XNAC', 'XNU', 'EEM', 'XNVL', 'RXBA', 'XSZH'] plot_train(t, all_stations=stations) .. image:: /auto_examples/images/sphx_glr_plot_night_ac_zue_001.png :alt: Timetable TR/8350/402403/00/2021 v1 :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 67-70 Route Sections ^^^^^^^^^^^^^^ From which sections the train is composed? .. GENERATED FROM PYTHON SOURCE LINES 70-74 .. code-block:: default section: RouteSection for section in t.sections: print(section.description(), "\n") .. rst-class:: sphx-glr-script-out Out: .. code-block:: none ID : 10.v1 Calender : 12/12 to 31/12 10000111000011100001 Start at: 20:00 in XNAC Arrival at: 21:30 in EEM Successors: [11] ID : 11.v1 Calender : 12/12 to 31/12 10000111000011100001 Start at: 21:30 in EEM Arrival at: 03:30 in RXBA Successors: [12] ID : 12.v1 Calender : 13/12 to 01/01 10000111000011100001 Start at: 03:30 in RXBA Arrival at: 04:30 in XSZH Successors: [] .. GENERATED FROM PYTHON SOURCE LINES 75-78 Section graph ^^^^^^^^^^^^^ The section graph is computed using the successor relation: .. GENERATED FROM PYTHON SOURCE LINES 78-82 .. code-block:: default sg = t.section_graph() plot_graph(sg) .. image:: /auto_examples/images/sphx_glr_plot_night_ac_zue_002.png :alt: plot night ac zue :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 83-88 Routes ^^^^^^ Print all possible routes. Routes are calculated from all possible paths in the section graph. Version 1 has only one route with three sections. .. GENERATED FROM PYTHON SOURCE LINES 88-92 .. code-block:: default route: Route for route in t.routes(): print(route.description(), "\n") .. rst-class:: sphx-glr-script-out Out: .. code-block:: none Route : XNAC-EEM-RXBA-XSZH Key : 10-11-12 Calendar : 12/12 to 31/12 10000111000011100001 Start at: 20:00 in XNAC Arrival at: 21:30 in EEM Arrival at: 03:30 in RXBA Arrival at: 04:30 in XSZH .. GENERATED FROM PYTHON SOURCE LINES 93-98 Section runs ^^^^^^^^^^^^ For each day of the calendar of a section a `SectionRun` is created. The section runs are the rows of RouteSection.to_dataframe. We only show the section run in december here. .. GENERATED FROM PYTHON SOURCE LINES 98-102 .. code-block:: default for section in t.sections: print(f"{section.section_id}: {section}") print(section.to_dataframe(), "\n") .. rst-class:: sphx-glr-script-out Out: .. code-block:: none 10: XNAC-EEM ID XNAC EEM 2021-12-12 10 2021-12-12 20:00:00 2021-12-12 21:30:00 2021-12-17 10 2021-12-17 20:00:00 2021-12-17 21:30:00 2021-12-18 10 2021-12-18 20:00:00 2021-12-18 21:30:00 2021-12-19 10 2021-12-19 20:00:00 2021-12-19 21:30:00 2021-12-24 10 2021-12-24 20:00:00 2021-12-24 21:30:00 2021-12-25 10 2021-12-25 20:00:00 2021-12-25 21:30:00 2021-12-26 10 2021-12-26 20:00:00 2021-12-26 21:30:00 2021-12-31 10 2021-12-31 20:00:00 2021-12-31 21:30:00 11: EEM-RXBA ID EEM RXBA 2021-12-12 11 2021-12-12 21:30:00 2021-12-13 03:30:00 2021-12-17 11 2021-12-17 21:30:00 2021-12-18 03:30:00 2021-12-18 11 2021-12-18 21:30:00 2021-12-19 03:30:00 2021-12-19 11 2021-12-19 21:30:00 2021-12-20 03:30:00 2021-12-24 11 2021-12-24 21:30:00 2021-12-25 03:30:00 2021-12-25 11 2021-12-25 21:30:00 2021-12-26 03:30:00 2021-12-26 11 2021-12-26 21:30:00 2021-12-27 03:30:00 2021-12-31 11 2021-12-31 21:30:00 2022-01-01 03:30:00 12: RXBA-XSZH ID RXBA XSZH 2021-12-13 12 2021-12-13 03:30:00 2021-12-13 04:30:00 2021-12-18 12 2021-12-18 03:30:00 2021-12-18 04:30:00 2021-12-19 12 2021-12-19 03:30:00 2021-12-19 04:30:00 2021-12-20 12 2021-12-20 03:30:00 2021-12-20 04:30:00 2021-12-25 12 2021-12-25 03:30:00 2021-12-25 04:30:00 2021-12-26 12 2021-12-26 03:30:00 2021-12-26 04:30:00 2021-12-27 12 2021-12-27 03:30:00 2021-12-27 04:30:00 2022-01-01 12 2022-01-01 03:30:00 2022-01-01 04:30:00 .. GENERATED FROM PYTHON SOURCE LINES 103-106 TrainRuns ^^^^^^^^^ Each `TrainRun` defines a row in the timetable of the train above. .. GENERATED FROM PYTHON SOURCE LINES 106-113 .. code-block:: default tr: TrainRun for tr in t.train_run_iterator(): print(tr) for sr in tr.sections_runs: print(sr) print("\n") .. rst-class:: sphx-glr-script-out Out: .. code-block:: none TR/8350/402403/10/2021/2021-12-12 10.v1:2021-12-12 20:00 OTR=0 XNAC-EEM 2021-12-12 21:30 OTR=0 11.v1:2021-12-12 21:30 OTR=0 EEM-RXBA 2021-12-13 03:30 OTR=1 12.v1:2021-12-13 03:30 OTR=1 RXBA-XSZH 2021-12-13 04:30 OTR=1 TR/8350/402403/10/2021/2021-12-17 10.v1:2021-12-17 20:00 OTR=0 XNAC-EEM 2021-12-17 21:30 OTR=0 11.v1:2021-12-17 21:30 OTR=0 EEM-RXBA 2021-12-18 03:30 OTR=1 12.v1:2021-12-18 03:30 OTR=1 RXBA-XSZH 2021-12-18 04:30 OTR=1 TR/8350/402403/10/2021/2021-12-18 10.v1:2021-12-18 20:00 OTR=0 XNAC-EEM 2021-12-18 21:30 OTR=0 11.v1:2021-12-18 21:30 OTR=0 EEM-RXBA 2021-12-19 03:30 OTR=1 12.v1:2021-12-19 03:30 OTR=1 RXBA-XSZH 2021-12-19 04:30 OTR=1 TR/8350/402403/10/2021/2021-12-19 10.v1:2021-12-19 20:00 OTR=0 XNAC-EEM 2021-12-19 21:30 OTR=0 11.v1:2021-12-19 21:30 OTR=0 EEM-RXBA 2021-12-20 03:30 OTR=1 12.v1:2021-12-20 03:30 OTR=1 RXBA-XSZH 2021-12-20 04:30 OTR=1 TR/8350/402403/10/2021/2021-12-24 10.v1:2021-12-24 20:00 OTR=0 XNAC-EEM 2021-12-24 21:30 OTR=0 11.v1:2021-12-24 21:30 OTR=0 EEM-RXBA 2021-12-25 03:30 OTR=1 12.v1:2021-12-25 03:30 OTR=1 RXBA-XSZH 2021-12-25 04:30 OTR=1 TR/8350/402403/10/2021/2021-12-25 10.v1:2021-12-25 20:00 OTR=0 XNAC-EEM 2021-12-25 21:30 OTR=0 11.v1:2021-12-25 21:30 OTR=0 EEM-RXBA 2021-12-26 03:30 OTR=1 12.v1:2021-12-26 03:30 OTR=1 RXBA-XSZH 2021-12-26 04:30 OTR=1 TR/8350/402403/10/2021/2021-12-26 10.v1:2021-12-26 20:00 OTR=0 XNAC-EEM 2021-12-26 21:30 OTR=0 11.v1:2021-12-26 21:30 OTR=0 EEM-RXBA 2021-12-27 03:30 OTR=1 12.v1:2021-12-27 03:30 OTR=1 RXBA-XSZH 2021-12-27 04:30 OTR=1 TR/8350/402403/10/2021/2021-12-31 10.v1:2021-12-31 20:00 OTR=0 XNAC-EEM 2021-12-31 21:30 OTR=0 11.v1:2021-12-31 21:30 OTR=0 EEM-RXBA 2022-01-01 03:30 OTR=30 12.v1:2022-01-01 03:30 OTR=30 RXBA-XSZH 2022-01-01 04:30 OTR=30 .. GENERATED FROM PYTHON SOURCE LINES 114-117 RoutingInformation as TrainInformation ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ An XML Dump of the routing information of version 1 .. GENERATED FROM PYTHON SOURCE LINES 117-119 .. code-block:: default print(dump_routing_info_as_xml(t)) .. rst-class:: sphx-glr-script-out Out: .. code-block:: none RS 8350 ------402403 10 2021 DE 10014 XNAC 0 DE 10015 EEM 0 10000111000011100001 2021-12-12T00:00:00 2021-12-31T00:00:00 RS 8350 ------402403 11 2021 RS 8350 ------402403 11 2021 DE 10015 EEM 0 DE 10016 RXBA 1 10000111000011100001 2021-12-12T00:00:00 2021-12-31T00:00:00 RS 8350 ------402403 12 2021 RS 8350 ------402403 12 2021 DE 10016 RXBA 0 DE 10017 XSZH 0 10000111000011100001 2021-12-13T00:00:00 2022-01-01T00:00:00 10000111000011100001 2021-12-12T00:00:00 2021-12-31T00:00:00 DE 10014 XNAC 0 DE 10015 EEM 0 DE 10016 RXBA 1 DE 10017 XSZH 0 .. GENERATED FROM PYTHON SOURCE LINES 120-124 Update schedule (version 2) ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Version 2 of the train contains the update from april on. .. GENERATED FROM PYTHON SOURCE LINES 124-128 .. code-block:: default _, t_spec_file = example('../tests/data', 'ac-zue-2') print(t_spec_file.read_text()) t = make_train_from_yml(t_spec_file) .. rst-class:: sphx-glr-script-out Out: .. code-block:: none --- # Nighttrain from Amsterdam to Zürich coreID: 402403 version: 2 sections: # Route Amsterdam-Emm-Basel-Zürich - departure_station: XNAC arrival_station: EEM id: 10 version: 2 departure_time: '20:00:00' travel_time: '01:30:00' calendar: begin: &b-begin '2022-04-12' end: &b-end '2022-05-12' mask: 'Fri Sat' color: green succ: - 11 - departure_station: EEM arrival_station: RXBA # Basel Grenze id: 11 version: 1 travel_time: '06:00:00' succ: - 12 - departure_station: RXBA arrival_station: XSZH # Zürich HB id: 12 version: 1 travel_time: '01:00:00' # Route Utrecht-Venlo-Basel - departure_station: XNU # Utrecht arrival_station: XNVL # Venlo id: 20 version: 1 departure_time: '20:30:00' travel_time: '01:30:00' calendar: begin: *b-begin end: *b-end mask: 'Sun' color: red succ: - 21 - departure_station: XNVL arrival_station: RXBA id: 21 version: 1 travel_time: '06:00:00' succ: - 12 .. GENERATED FROM PYTHON SOURCE LINES 129-132 Timetable V2 ^^^^^^^^^^^^ Version 2 has train runs on sundays from Utrecht to Basel. .. GENERATED FROM PYTHON SOURCE LINES 132-135 .. code-block:: default df = t.to_dataframe() df .. raw:: html
Departure XNU Arrival XNVL Departure XNVL Departure XNAC Arrival EEM Departure EEM Arrival RXBA Departure RXBA Arrival XSZH
Daily Train ID
TR/8350/402403/10/2022/2022-04-15 Fr 15.04.22 20:00 Fr 15.04.22 21:30 Fr 15.04.22 21:30 Sa 16.04.22 03:30 Sa 16.04.22 03:30 Sa 16.04.22 04:30
TR/8350/402403/10/2022/2022-04-16 Sa 16.04.22 20:00 Sa 16.04.22 21:30 Sa 16.04.22 21:30 So 17.04.22 03:30 So 17.04.22 03:30 So 17.04.22 04:30
TR/8350/402403/20/2022/2022-04-17 So 17.04.22 20:30 So 17.04.22 22:00 So 17.04.22 22:00 Mo 18.04.22 04:00
TR/8350/402403/10/2022/2022-04-22 Fr 22.04.22 20:00 Fr 22.04.22 21:30 Fr 22.04.22 21:30 Sa 23.04.22 03:30 Sa 23.04.22 03:30 Sa 23.04.22 04:30
TR/8350/402403/10/2022/2022-04-23 Sa 23.04.22 20:00 Sa 23.04.22 21:30 Sa 23.04.22 21:30 So 24.04.22 03:30 So 24.04.22 03:30 So 24.04.22 04:30
TR/8350/402403/20/2022/2022-04-24 So 24.04.22 20:30 So 24.04.22 22:00 So 24.04.22 22:00 Mo 25.04.22 04:00
TR/8350/402403/10/2022/2022-04-29 Fr 29.04.22 20:00 Fr 29.04.22 21:30 Fr 29.04.22 21:30 Sa 30.04.22 03:30 Sa 30.04.22 03:30 Sa 30.04.22 04:30
TR/8350/402403/10/2022/2022-04-30 Sa 30.04.22 20:00 Sa 30.04.22 21:30 Sa 30.04.22 21:30 So 01.05.22 03:30 So 01.05.22 03:30 So 01.05.22 04:30
TR/8350/402403/20/2022/2022-05-01 So 01.05.22 20:30 So 01.05.22 22:00 So 01.05.22 22:00 Mo 02.05.22 04:00
TR/8350/402403/10/2022/2022-05-06 Fr 06.05.22 20:00 Fr 06.05.22 21:30 Fr 06.05.22 21:30 Sa 07.05.22 03:30 Sa 07.05.22 03:30 Sa 07.05.22 04:30
TR/8350/402403/10/2022/2022-05-07 Sa 07.05.22 20:00 Sa 07.05.22 21:30 Sa 07.05.22 21:30 So 08.05.22 03:30 So 08.05.22 03:30 So 08.05.22 04:30
TR/8350/402403/20/2022/2022-05-08 So 08.05.22 20:30 So 08.05.22 22:00 So 08.05.22 22:00 Mo 09.05.22 04:00


.. GENERATED FROM PYTHON SOURCE LINES 136-139 Bildfahrplan ^^^^^^^^^^^^ On sundays the trains only go to Basel from Utrecht over Venlo. .. GENERATED FROM PYTHON SOURCE LINES 139-141 .. code-block:: default plot_train(t, all_stations=stations) .. image:: /auto_examples/images/sphx_glr_plot_night_ac_zue_003.png :alt: Timetable TR/8350/402403/00/2022 v2 :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 142-147 Route Sections ^^^^^^^^^^^^^^ To realize the schedule we need two new section (with ID 20 and 40) All oteher section have a new version 2, because the calender had to shortened by sunday. .. GENERATED FROM PYTHON SOURCE LINES 147-151 .. code-block:: default section: RouteSection for section in t.sections: print(section.description(), "\n") .. rst-class:: sphx-glr-script-out Out: .. code-block:: none ID : 10.v2 Calender : 15/04 to 07/05 11000001100000110000011 Start at: 20:00 in XNAC Arrival at: 21:30 in EEM Successors: [11] ID : 11.v1 Calender : 15/04 to 07/05 11000001100000110000011 Start at: 21:30 in EEM Arrival at: 03:30 in RXBA Successors: [12] ID : 12.v1 Calender : 16/04 to 08/05 11000001100000110000011 Start at: 03:30 in RXBA Arrival at: 04:30 in XSZH Successors: [] ID : 20.v1 Calender : 17/04 to 08/05 1000000100000010000001 Start at: 20:30 in XNU Arrival at: 22:00 in XNVL Successors: [21] ID : 21.v1 Calender : 17/04 to 08/05 1000000100000010000001 Start at: 22:00 in XNVL Arrival at: 04:00 in RXBA Successors: [12] .. GENERATED FROM PYTHON SOURCE LINES 152-155 Section graph ^^^^^^^^^^^^^ The section graph now has two new sections, which define the second route. .. GENERATED FROM PYTHON SOURCE LINES 155-158 .. code-block:: default sg = t.section_graph() plot_graph(sg) .. image:: /auto_examples/images/sphx_glr_plot_night_ac_zue_004.png :alt: plot night ac zue :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 159-162 Routes ^^^^^^ From april on we have one new route: .. GENERATED FROM PYTHON SOURCE LINES 162-166 .. code-block:: default route: Route for route in t.routes(): print(route.description(), "\n") .. rst-class:: sphx-glr-script-out Out: .. code-block:: none Route : XNAC-EEM-RXBA-XSZH Key : 10-11-12 Calendar : 15/04 to 07/05 11000001100000110000011 Start at: 20:00 in XNAC Arrival at: 21:30 in EEM Arrival at: 03:30 in RXBA Arrival at: 04:30 in XSZH Route : XNU-XNVL-RXBA Key : 20-21 Calendar : 17/04 to 08/05 1000000100000010000001 Start at: 20:30 in XNU Arrival at: 22:00 in XNVL Arrival at: 04:00 in RXBA .. GENERATED FROM PYTHON SOURCE LINES 167-169 Section runs ^^^^^^^^^^^^ .. GENERATED FROM PYTHON SOURCE LINES 169-173 .. code-block:: default for section in t.sections: print(f"{section.section_id}: {section}") print(section.to_dataframe(), "\n") .. rst-class:: sphx-glr-script-out Out: .. code-block:: none 10: XNAC-EEM ID XNAC EEM 2022-04-15 10 2022-04-15 20:00:00 2022-04-15 21:30:00 2022-04-16 10 2022-04-16 20:00:00 2022-04-16 21:30:00 2022-04-22 10 2022-04-22 20:00:00 2022-04-22 21:30:00 2022-04-23 10 2022-04-23 20:00:00 2022-04-23 21:30:00 2022-04-29 10 2022-04-29 20:00:00 2022-04-29 21:30:00 2022-04-30 10 2022-04-30 20:00:00 2022-04-30 21:30:00 2022-05-06 10 2022-05-06 20:00:00 2022-05-06 21:30:00 2022-05-07 10 2022-05-07 20:00:00 2022-05-07 21:30:00 11: EEM-RXBA ID EEM RXBA 2022-04-15 11 2022-04-15 21:30:00 2022-04-16 03:30:00 2022-04-16 11 2022-04-16 21:30:00 2022-04-17 03:30:00 2022-04-22 11 2022-04-22 21:30:00 2022-04-23 03:30:00 2022-04-23 11 2022-04-23 21:30:00 2022-04-24 03:30:00 2022-04-29 11 2022-04-29 21:30:00 2022-04-30 03:30:00 2022-04-30 11 2022-04-30 21:30:00 2022-05-01 03:30:00 2022-05-06 11 2022-05-06 21:30:00 2022-05-07 03:30:00 2022-05-07 11 2022-05-07 21:30:00 2022-05-08 03:30:00 12: RXBA-XSZH ID RXBA XSZH 2022-04-16 12 2022-04-16 03:30:00 2022-04-16 04:30:00 2022-04-17 12 2022-04-17 03:30:00 2022-04-17 04:30:00 2022-04-23 12 2022-04-23 03:30:00 2022-04-23 04:30:00 2022-04-24 12 2022-04-24 03:30:00 2022-04-24 04:30:00 2022-04-30 12 2022-04-30 03:30:00 2022-04-30 04:30:00 2022-05-01 12 2022-05-01 03:30:00 2022-05-01 04:30:00 2022-05-07 12 2022-05-07 03:30:00 2022-05-07 04:30:00 2022-05-08 12 2022-05-08 03:30:00 2022-05-08 04:30:00 20: XNU-XNVL ID XNU XNVL 2022-04-17 20 2022-04-17 20:30:00 2022-04-17 22:00:00 2022-04-24 20 2022-04-24 20:30:00 2022-04-24 22:00:00 2022-05-01 20 2022-05-01 20:30:00 2022-05-01 22:00:00 2022-05-08 20 2022-05-08 20:30:00 2022-05-08 22:00:00 21: XNVL-RXBA ID XNVL RXBA 2022-04-17 21 2022-04-17 22:00:00 2022-04-18 04:00:00 2022-04-24 21 2022-04-24 22:00:00 2022-04-25 04:00:00 2022-05-01 21 2022-05-01 22:00:00 2022-05-02 04:00:00 2022-05-08 21 2022-05-08 22:00:00 2022-05-09 04:00:00 .. GENERATED FROM PYTHON SOURCE LINES 174-176 TrainRuns ^^^^^^^^^ .. GENERATED FROM PYTHON SOURCE LINES 176-183 .. code-block:: default tr: TrainRun for tr in t.train_run_iterator(): print(tr) for sr in tr.sections_runs: print(sr) print("\n") .. rst-class:: sphx-glr-script-out Out: .. code-block:: none TR/8350/402403/10/2022/2022-04-15 10.v2:2022-04-15 20:00 OTR=0 XNAC-EEM 2022-04-15 21:30 OTR=0 11.v1:2022-04-15 21:30 OTR=0 EEM-RXBA 2022-04-16 03:30 OTR=1 12.v1:2022-04-16 03:30 OTR=1 RXBA-XSZH 2022-04-16 04:30 OTR=1 TR/8350/402403/10/2022/2022-04-16 10.v2:2022-04-16 20:00 OTR=0 XNAC-EEM 2022-04-16 21:30 OTR=0 11.v1:2022-04-16 21:30 OTR=0 EEM-RXBA 2022-04-17 03:30 OTR=1 12.v1:2022-04-17 03:30 OTR=1 RXBA-XSZH 2022-04-17 04:30 OTR=1 TR/8350/402403/10/2022/2022-04-22 10.v2:2022-04-22 20:00 OTR=0 XNAC-EEM 2022-04-22 21:30 OTR=0 11.v1:2022-04-22 21:30 OTR=0 EEM-RXBA 2022-04-23 03:30 OTR=1 12.v1:2022-04-23 03:30 OTR=1 RXBA-XSZH 2022-04-23 04:30 OTR=1 TR/8350/402403/10/2022/2022-04-23 10.v2:2022-04-23 20:00 OTR=0 XNAC-EEM 2022-04-23 21:30 OTR=0 11.v1:2022-04-23 21:30 OTR=0 EEM-RXBA 2022-04-24 03:30 OTR=1 12.v1:2022-04-24 03:30 OTR=1 RXBA-XSZH 2022-04-24 04:30 OTR=1 TR/8350/402403/10/2022/2022-04-29 10.v2:2022-04-29 20:00 OTR=0 XNAC-EEM 2022-04-29 21:30 OTR=0 11.v1:2022-04-29 21:30 OTR=0 EEM-RXBA 2022-04-30 03:30 OTR=1 12.v1:2022-04-30 03:30 OTR=1 RXBA-XSZH 2022-04-30 04:30 OTR=1 TR/8350/402403/10/2022/2022-04-30 10.v2:2022-04-30 20:00 OTR=0 XNAC-EEM 2022-04-30 21:30 OTR=0 11.v1:2022-04-30 21:30 OTR=0 EEM-RXBA 2022-05-01 03:30 OTR=29 12.v1:2022-05-01 03:30 OTR=29 RXBA-XSZH 2022-05-01 04:30 OTR=29 TR/8350/402403/10/2022/2022-05-06 10.v2:2022-05-06 20:00 OTR=0 XNAC-EEM 2022-05-06 21:30 OTR=0 11.v1:2022-05-06 21:30 OTR=0 EEM-RXBA 2022-05-07 03:30 OTR=1 12.v1:2022-05-07 03:30 OTR=1 RXBA-XSZH 2022-05-07 04:30 OTR=1 TR/8350/402403/10/2022/2022-05-07 10.v2:2022-05-07 20:00 OTR=0 XNAC-EEM 2022-05-07 21:30 OTR=0 11.v1:2022-05-07 21:30 OTR=0 EEM-RXBA 2022-05-08 03:30 OTR=1 12.v1:2022-05-08 03:30 OTR=1 RXBA-XSZH 2022-05-08 04:30 OTR=1 TR/8350/402403/20/2022/2022-04-17 20.v1:2022-04-17 20:30 OTR=0 XNU-XNVL 2022-04-17 22:00 OTR=0 21.v1:2022-04-17 22:00 OTR=0 XNVL-RXBA 2022-04-18 04:00 OTR=1 TR/8350/402403/20/2022/2022-04-24 20.v1:2022-04-24 20:30 OTR=0 XNU-XNVL 2022-04-24 22:00 OTR=0 21.v1:2022-04-24 22:00 OTR=0 XNVL-RXBA 2022-04-25 04:00 OTR=1 TR/8350/402403/20/2022/2022-05-01 20.v1:2022-05-01 20:30 OTR=0 XNU-XNVL 2022-05-01 22:00 OTR=0 21.v1:2022-05-01 22:00 OTR=0 XNVL-RXBA 2022-05-02 04:00 OTR=1 TR/8350/402403/20/2022/2022-05-08 20.v1:2022-05-08 20:30 OTR=0 XNU-XNVL 2022-05-08 22:00 OTR=0 21.v1:2022-05-08 22:00 OTR=0 XNVL-RXBA 2022-05-09 04:00 OTR=1 .. GENERATED FROM PYTHON SOURCE LINES 184-187 RoutingInformation as TrainInformation ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ An XML Dump of the routing information of version 1 .. GENERATED FROM PYTHON SOURCE LINES 187-189 .. code-block:: default print(dump_routing_info_as_xml(t)) .. rst-class:: sphx-glr-script-out Out: .. code-block:: none RS 8350 ------402403 10 2022 DE 10014 XNAC 0 DE 10015 EEM 0 11000001100000110000011 2022-04-15T00:00:00 2022-05-07T00:00:00 RS 8350 ------402403 11 2022 RS 8350 ------402403 11 2022 DE 10015 EEM 0 DE 10016 RXBA 1 11000001100000110000011 2022-04-15T00:00:00 2022-05-07T00:00:00 RS 8350 ------402403 12 2022 RS 8350 ------402403 12 2022 DE 10016 RXBA 0 DE 10017 XSZH 0 11000001100000110000011 2022-04-16T00:00:00 2022-05-08T00:00:00 RS 8350 ------402403 20 2022 DE 10018 XNU 0 DE 10019 XNVL 0 1000000100000010000001 2022-04-17T00:00:00 2022-05-08T00:00:00 RS 8350 ------402403 21 2022 RS 8350 ------402403 21 2022 DE 10019 XNVL 0 DE 10016 RXBA 1 1000000100000010000001 2022-04-17T00:00:00 2022-05-08T00:00:00 RS 8350 ------402403 12 2022 11000001100000110000011 2022-04-15T00:00:00 2022-05-07T00:00:00 DE 10014 XNAC 0 DE 10015 EEM 0 DE 10016 RXBA 1 DE 10017 XSZH 0 1000000100000010000001 2022-04-17T00:00:00 2022-05-08T00:00:00 DE 10018 XNU 0 DE 10019 XNVL 0 DE 10016 RXBA 1 .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 1.581 seconds) .. _sphx_glr_download_auto_examples_plot_night_ac_zue.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_night_ac_zue.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_night_ac_zue.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_