.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_ac_ff.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_ac_ff.py: Example: Train from Amsterdam to Frankfurt ========================================== Here we investigate the routing specification for example from `train-ac-ff-v1.yml`. Given this infrastructure: .. uml:: ../uml/tom-04-example-ac-ff-infrastructure.puml This object diagramm shows a szenario for a train from AC to Frankfurt FF which is planned to operate in december 2021. On Fri-Sun handover is EMM. On Mon-Thu handover is Venlo. .. uml:: ../uml/tom-04-example-ac-ff.puml .. _Pandas DataFrame: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html .. GENERATED FROM PYTHON SOURCE LINES 19-23 .. 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 24-25 Load example 4 from yaml specification .. GENERATED FROM PYTHON SOURCE LINES 25-29 .. code-block:: default pattern = 'ac-ff-v1' train_specs, t_spec_file = example('../tests/data', pattern) print(t_spec_file.read_text()) .. rst-class:: sphx-glr-script-out Out: .. code-block:: none --- coreID: 12AB lead_ru: 1080 # DB FV # initial revision of RoutingInfo. # All sections have version 1 version: 1 sections: - id: 10 version: 1 departure_station: AC arrival_station: EMM travel_time: '02:10:00' succ: - 11 - id: 11 version: 1 departure_station: EMM arrival_station: FF departure_time: '02:00:00' # => Route Construction Start # Not stop_time => pass through travel_time: '03:00:00' calendar: # Start in Amsterdam is 1.12.2021 23:50 begin: '2021-12-02' end: '2021-12-31' mask: 'Tue Wed Thu Fri' color: green - id: 20 version: 1 departure_station: AC arrival_station: Venlo travel_time: '01:10:00' succ: - 21 - id: 21 version: 1 departure_station: Venlo arrival_station: FF departure_time: '02:00:00' # => Route Construction Start stop_time: '01:00:00' # => 1 hour stop in Venlo travel_time: '03:00:00' calendar: begin: '2021-12-02' end: '2022-01-01' mask: 'Sat Sun Mon' color: salmon .. GENERATED FROM PYTHON SOURCE LINES 30-31 Create train object and show its train id. .. GENERATED FROM PYTHON SOURCE LINES 31-34 .. 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/12AB/00/2021' .. GENERATED FROM PYTHON SOURCE LINES 35-40 Timetable ^^^^^^^^^ With :meth:`~tom.tom.Train.to_dataframe` you can create a `Pandas DataFrame`_ which you can export to excel. .. GENERATED FROM PYTHON SOURCE LINES 40-43 .. code-block:: default df = t.to_dataframe() df .. raw:: html
Departure AC Arrival Venlo Departure Venlo Arrival EMM Departure EMM Arrival FF
Daily Train ID
TR/8350/12AB/10/2021/2021-12-01 Mi 01.12.21 23:50 Do 02.12.21 02:00 Do 02.12.21 02:00 Do 02.12.21 05:00
TR/8350/12AB/10/2021/2021-12-02 Do 02.12.21 23:50 Fr 03.12.21 02:00 Fr 03.12.21 02:00 Fr 03.12.21 05:00
TR/8350/12AB/20/2021/2021-12-03 Fr 03.12.21 23:50 Sa 04.12.21 01:00 Sa 04.12.21 02:00 Sa 04.12.21 05:00
TR/8350/12AB/20/2021/2021-12-04 Sa 04.12.21 23:50 So 05.12.21 01:00 So 05.12.21 02:00 So 05.12.21 05:00
TR/8350/12AB/20/2021/2021-12-05 So 05.12.21 23:50 Mo 06.12.21 01:00 Mo 06.12.21 02:00 Mo 06.12.21 05:00
TR/8350/12AB/10/2021/2021-12-06 Mo 06.12.21 23:50 Di 07.12.21 02:00 Di 07.12.21 02:00 Di 07.12.21 05:00
TR/8350/12AB/10/2021/2021-12-07 Di 07.12.21 23:50 Mi 08.12.21 02:00 Mi 08.12.21 02:00 Mi 08.12.21 05:00
TR/8350/12AB/10/2021/2021-12-08 Mi 08.12.21 23:50 Do 09.12.21 02:00 Do 09.12.21 02:00 Do 09.12.21 05:00
TR/8350/12AB/10/2021/2021-12-09 Do 09.12.21 23:50 Fr 10.12.21 02:00 Fr 10.12.21 02:00 Fr 10.12.21 05:00
TR/8350/12AB/20/2021/2021-12-10 Fr 10.12.21 23:50 Sa 11.12.21 01:00 Sa 11.12.21 02:00 Sa 11.12.21 05:00
TR/8350/12AB/20/2021/2021-12-11 Sa 11.12.21 23:50 So 12.12.21 01:00 So 12.12.21 02:00 So 12.12.21 05:00
TR/8350/12AB/20/2021/2021-12-12 So 12.12.21 23:50 Mo 13.12.21 01:00 Mo 13.12.21 02:00 Mo 13.12.21 05:00
TR/8350/12AB/10/2021/2021-12-13 Mo 13.12.21 23:50 Di 14.12.21 02:00 Di 14.12.21 02:00 Di 14.12.21 05:00
TR/8350/12AB/10/2021/2021-12-14 Di 14.12.21 23:50 Mi 15.12.21 02:00 Mi 15.12.21 02:00 Mi 15.12.21 05:00
TR/8350/12AB/10/2021/2021-12-15 Mi 15.12.21 23:50 Do 16.12.21 02:00 Do 16.12.21 02:00 Do 16.12.21 05:00
TR/8350/12AB/10/2021/2021-12-16 Do 16.12.21 23:50 Fr 17.12.21 02:00 Fr 17.12.21 02:00 Fr 17.12.21 05:00
TR/8350/12AB/20/2021/2021-12-17 Fr 17.12.21 23:50 Sa 18.12.21 01:00 Sa 18.12.21 02:00 Sa 18.12.21 05:00
TR/8350/12AB/20/2021/2021-12-18 Sa 18.12.21 23:50 So 19.12.21 01:00 So 19.12.21 02:00 So 19.12.21 05:00
TR/8350/12AB/20/2021/2021-12-19 So 19.12.21 23:50 Mo 20.12.21 01:00 Mo 20.12.21 02:00 Mo 20.12.21 05:00
TR/8350/12AB/10/2021/2021-12-20 Mo 20.12.21 23:50 Di 21.12.21 02:00 Di 21.12.21 02:00 Di 21.12.21 05:00
TR/8350/12AB/10/2021/2021-12-21 Di 21.12.21 23:50 Mi 22.12.21 02:00 Mi 22.12.21 02:00 Mi 22.12.21 05:00
TR/8350/12AB/10/2021/2021-12-22 Mi 22.12.21 23:50 Do 23.12.21 02:00 Do 23.12.21 02:00 Do 23.12.21 05:00
TR/8350/12AB/10/2021/2021-12-23 Do 23.12.21 23:50 Fr 24.12.21 02:00 Fr 24.12.21 02:00 Fr 24.12.21 05:00
TR/8350/12AB/20/2021/2021-12-24 Fr 24.12.21 23:50 Sa 25.12.21 01:00 Sa 25.12.21 02:00 Sa 25.12.21 05:00
TR/8350/12AB/20/2021/2021-12-25 Sa 25.12.21 23:50 So 26.12.21 01:00 So 26.12.21 02:00 So 26.12.21 05:00
TR/8350/12AB/20/2021/2021-12-26 So 26.12.21 23:50 Mo 27.12.21 01:00 Mo 27.12.21 02:00 Mo 27.12.21 05:00
TR/8350/12AB/10/2021/2021-12-27 Mo 27.12.21 23:50 Di 28.12.21 02:00 Di 28.12.21 02:00 Di 28.12.21 05:00
TR/8350/12AB/10/2021/2021-12-28 Di 28.12.21 23:50 Mi 29.12.21 02:00 Mi 29.12.21 02:00 Mi 29.12.21 05:00
TR/8350/12AB/10/2021/2021-12-29 Mi 29.12.21 23:50 Do 30.12.21 02:00 Do 30.12.21 02:00 Do 30.12.21 05:00
TR/8350/12AB/10/2021/2021-12-30 Do 30.12.21 23:50 Fr 31.12.21 02:00 Fr 31.12.21 02:00 Fr 31.12.21 05:00
TR/8350/12AB/20/2021/2021-12-31 Fr 31.12.21 23:50 Sa 01.01.22 01:00 Sa 01.01.22 02:00 Sa 01.01.22 05:00


.. GENERATED FROM PYTHON SOURCE LINES 44-47 Bildfahrplan ^^^^^^^^^^^^ Show timetable as plot .. GENERATED FROM PYTHON SOURCE LINES 47-49 .. code-block:: default plot_train(t) .. image:: /auto_examples/images/sphx_glr_plot_ac_ff_001.png :alt: Timetable TR/8350/12AB/00/2021 v1 :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 50-51 Show only the first week .. GENERATED FROM PYTHON SOURCE LINES 51-53 .. code-block:: default plot_train(t, no_of_runs=7) .. image:: /auto_examples/images/sphx_glr_plot_ac_ff_002.png :alt: Timetable TR/8350/12AB/00/2021 v1 :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 54-57 Route Sections ^^^^^^^^^^^^^^ From which sections the train is composed? .. GENERATED FROM PYTHON SOURCE LINES 57-61 .. 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 : 01/12 to 30/12 110001111000111100011110001111 Start at: 23:50 in AC Arrival at: 02:00 in EMM Successors: [11] ID : 11.v1 Calender : 02/12 to 31/12 110001111000111100011110001111 Start at: 02:00 in EMM Arrival at: 05:00 in FF Successors: [] ID : 20.v1 Calender : 03/12 to 31/12 11100001110000111000011100001 Start at: 23:50 in AC Arrival at: 01:00 in Venlo Successors: [21] ID : 21.v1 Calender : 04/12 to 01/01 11100001110000111000011100001 Start at: 02:00 in Venlo Arrival at: 05:00 in FF Successors: [] .. GENERATED FROM PYTHON SOURCE LINES 62-65 Section graph ^^^^^^^^^^^^^ The section graph is computed using the successor relation: .. GENERATED FROM PYTHON SOURCE LINES 65-69 .. code-block:: default sg = t.section_graph() plot_graph(sg) .. image:: /auto_examples/images/sphx_glr_plot_ac_ff_003.png :alt: plot ac ff :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 70-74 Routes ^^^^^^ Print all possible routes. Routes are calculated from all possible paths in the section graph. .. GENERATED FROM PYTHON SOURCE LINES 74-78 .. 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 : AC-EMM-FF Key : 10-11 Calendar : 01/12 to 30/12 110001111000111100011110001111 Start at: 23:50 in AC Arrival at: 02:00 in EMM Arrival at: 05:00 in FF Route : AC-Venlo-FF Key : 20-21 Calendar : 03/12 to 31/12 11100001110000111000011100001 Start at: 23:50 in AC Arrival at: 01:00 in Venlo Arrival at: 05:00 in FF .. GENERATED FROM PYTHON SOURCE LINES 79-83 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: .. GENERATED FROM PYTHON SOURCE LINES 83-87 .. 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: AC-EMM ID AC EMM 2021-12-01 10 2021-12-01 23:50:00 2021-12-02 02:00:00 2021-12-02 10 2021-12-02 23:50:00 2021-12-03 02:00:00 2021-12-06 10 2021-12-06 23:50:00 2021-12-07 02:00:00 2021-12-07 10 2021-12-07 23:50:00 2021-12-08 02:00:00 2021-12-08 10 2021-12-08 23:50:00 2021-12-09 02:00:00 2021-12-09 10 2021-12-09 23:50:00 2021-12-10 02:00:00 2021-12-13 10 2021-12-13 23:50:00 2021-12-14 02:00:00 2021-12-14 10 2021-12-14 23:50:00 2021-12-15 02:00:00 2021-12-15 10 2021-12-15 23:50:00 2021-12-16 02:00:00 2021-12-16 10 2021-12-16 23:50:00 2021-12-17 02:00:00 2021-12-20 10 2021-12-20 23:50:00 2021-12-21 02:00:00 2021-12-21 10 2021-12-21 23:50:00 2021-12-22 02:00:00 2021-12-22 10 2021-12-22 23:50:00 2021-12-23 02:00:00 2021-12-23 10 2021-12-23 23:50:00 2021-12-24 02:00:00 2021-12-27 10 2021-12-27 23:50:00 2021-12-28 02:00:00 2021-12-28 10 2021-12-28 23:50:00 2021-12-29 02:00:00 2021-12-29 10 2021-12-29 23:50:00 2021-12-30 02:00:00 2021-12-30 10 2021-12-30 23:50:00 2021-12-31 02:00:00 11: EMM-FF ID EMM FF 2021-12-02 11 2021-12-02 02:00:00 2021-12-02 05:00:00 2021-12-03 11 2021-12-03 02:00:00 2021-12-03 05:00:00 2021-12-07 11 2021-12-07 02:00:00 2021-12-07 05:00:00 2021-12-08 11 2021-12-08 02:00:00 2021-12-08 05:00:00 2021-12-09 11 2021-12-09 02:00:00 2021-12-09 05:00:00 2021-12-10 11 2021-12-10 02:00:00 2021-12-10 05:00:00 2021-12-14 11 2021-12-14 02:00:00 2021-12-14 05:00:00 2021-12-15 11 2021-12-15 02:00:00 2021-12-15 05:00:00 2021-12-16 11 2021-12-16 02:00:00 2021-12-16 05:00:00 2021-12-17 11 2021-12-17 02:00:00 2021-12-17 05:00:00 2021-12-21 11 2021-12-21 02:00:00 2021-12-21 05:00:00 2021-12-22 11 2021-12-22 02:00:00 2021-12-22 05:00:00 2021-12-23 11 2021-12-23 02:00:00 2021-12-23 05:00:00 2021-12-24 11 2021-12-24 02:00:00 2021-12-24 05:00:00 2021-12-28 11 2021-12-28 02:00:00 2021-12-28 05:00:00 2021-12-29 11 2021-12-29 02:00:00 2021-12-29 05:00:00 2021-12-30 11 2021-12-30 02:00:00 2021-12-30 05:00:00 2021-12-31 11 2021-12-31 02:00:00 2021-12-31 05:00:00 20: AC-Venlo ID AC Venlo 2021-12-03 20 2021-12-03 23:50:00 2021-12-04 01:00:00 2021-12-04 20 2021-12-04 23:50:00 2021-12-05 01:00:00 2021-12-05 20 2021-12-05 23:50:00 2021-12-06 01:00:00 2021-12-10 20 2021-12-10 23:50:00 2021-12-11 01:00:00 2021-12-11 20 2021-12-11 23:50:00 2021-12-12 01:00:00 2021-12-12 20 2021-12-12 23:50:00 2021-12-13 01:00:00 2021-12-17 20 2021-12-17 23:50:00 2021-12-18 01:00:00 2021-12-18 20 2021-12-18 23:50:00 2021-12-19 01:00:00 2021-12-19 20 2021-12-19 23:50:00 2021-12-20 01:00:00 2021-12-24 20 2021-12-24 23:50:00 2021-12-25 01:00:00 2021-12-25 20 2021-12-25 23:50:00 2021-12-26 01:00:00 2021-12-26 20 2021-12-26 23:50:00 2021-12-27 01:00:00 2021-12-31 20 2021-12-31 23:50:00 2022-01-01 01:00:00 21: Venlo-FF ID Venlo FF 2021-12-04 21 2021-12-04 02:00:00 2021-12-04 05:00:00 2021-12-05 21 2021-12-05 02:00:00 2021-12-05 05:00:00 2021-12-06 21 2021-12-06 02:00:00 2021-12-06 05:00:00 2021-12-11 21 2021-12-11 02:00:00 2021-12-11 05:00:00 2021-12-12 21 2021-12-12 02:00:00 2021-12-12 05:00:00 2021-12-13 21 2021-12-13 02:00:00 2021-12-13 05:00:00 2021-12-18 21 2021-12-18 02:00:00 2021-12-18 05:00:00 2021-12-19 21 2021-12-19 02:00:00 2021-12-19 05:00:00 2021-12-20 21 2021-12-20 02:00:00 2021-12-20 05:00:00 2021-12-25 21 2021-12-25 02:00:00 2021-12-25 05:00:00 2021-12-26 21 2021-12-26 02:00:00 2021-12-26 05:00:00 2021-12-27 21 2021-12-27 02:00:00 2021-12-27 05:00:00 2022-01-01 21 2022-01-01 02:00:00 2022-01-01 05:00:00 .. GENERATED FROM PYTHON SOURCE LINES 88-91 TrainRuns ^^^^^^^^^ Each `TrainRun` defines a row in the timetable of the train above .. GENERATED FROM PYTHON SOURCE LINES 91-98 .. 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/12AB/10/2021/2021-12-01 10.v1:2021-12-01 23:50 OTR=-1 AC-EMM 2021-12-02 02:00 OTR=0 11.v1:2021-12-02 02:00 OTR=0 EMM-FF 2021-12-02 05:00 OTR=0 TR/8350/12AB/10/2021/2021-12-02 10.v1:2021-12-02 23:50 OTR=-1 AC-EMM 2021-12-03 02:00 OTR=0 11.v1:2021-12-03 02:00 OTR=0 EMM-FF 2021-12-03 05:00 OTR=0 TR/8350/12AB/10/2021/2021-12-06 10.v1:2021-12-06 23:50 OTR=-1 AC-EMM 2021-12-07 02:00 OTR=0 11.v1:2021-12-07 02:00 OTR=0 EMM-FF 2021-12-07 05:00 OTR=0 TR/8350/12AB/10/2021/2021-12-07 10.v1:2021-12-07 23:50 OTR=-1 AC-EMM 2021-12-08 02:00 OTR=0 11.v1:2021-12-08 02:00 OTR=0 EMM-FF 2021-12-08 05:00 OTR=0 TR/8350/12AB/10/2021/2021-12-08 10.v1:2021-12-08 23:50 OTR=-1 AC-EMM 2021-12-09 02:00 OTR=0 11.v1:2021-12-09 02:00 OTR=0 EMM-FF 2021-12-09 05:00 OTR=0 TR/8350/12AB/10/2021/2021-12-09 10.v1:2021-12-09 23:50 OTR=-1 AC-EMM 2021-12-10 02:00 OTR=0 11.v1:2021-12-10 02:00 OTR=0 EMM-FF 2021-12-10 05:00 OTR=0 TR/8350/12AB/10/2021/2021-12-13 10.v1:2021-12-13 23:50 OTR=-1 AC-EMM 2021-12-14 02:00 OTR=0 11.v1:2021-12-14 02:00 OTR=0 EMM-FF 2021-12-14 05:00 OTR=0 TR/8350/12AB/10/2021/2021-12-14 10.v1:2021-12-14 23:50 OTR=-1 AC-EMM 2021-12-15 02:00 OTR=0 11.v1:2021-12-15 02:00 OTR=0 EMM-FF 2021-12-15 05:00 OTR=0 TR/8350/12AB/10/2021/2021-12-15 10.v1:2021-12-15 23:50 OTR=-1 AC-EMM 2021-12-16 02:00 OTR=0 11.v1:2021-12-16 02:00 OTR=0 EMM-FF 2021-12-16 05:00 OTR=0 TR/8350/12AB/10/2021/2021-12-16 10.v1:2021-12-16 23:50 OTR=-1 AC-EMM 2021-12-17 02:00 OTR=0 11.v1:2021-12-17 02:00 OTR=0 EMM-FF 2021-12-17 05:00 OTR=0 TR/8350/12AB/10/2021/2021-12-20 10.v1:2021-12-20 23:50 OTR=-1 AC-EMM 2021-12-21 02:00 OTR=0 11.v1:2021-12-21 02:00 OTR=0 EMM-FF 2021-12-21 05:00 OTR=0 TR/8350/12AB/10/2021/2021-12-21 10.v1:2021-12-21 23:50 OTR=-1 AC-EMM 2021-12-22 02:00 OTR=0 11.v1:2021-12-22 02:00 OTR=0 EMM-FF 2021-12-22 05:00 OTR=0 TR/8350/12AB/10/2021/2021-12-22 10.v1:2021-12-22 23:50 OTR=-1 AC-EMM 2021-12-23 02:00 OTR=0 11.v1:2021-12-23 02:00 OTR=0 EMM-FF 2021-12-23 05:00 OTR=0 TR/8350/12AB/10/2021/2021-12-23 10.v1:2021-12-23 23:50 OTR=-1 AC-EMM 2021-12-24 02:00 OTR=0 11.v1:2021-12-24 02:00 OTR=0 EMM-FF 2021-12-24 05:00 OTR=0 TR/8350/12AB/10/2021/2021-12-27 10.v1:2021-12-27 23:50 OTR=-1 AC-EMM 2021-12-28 02:00 OTR=0 11.v1:2021-12-28 02:00 OTR=0 EMM-FF 2021-12-28 05:00 OTR=0 TR/8350/12AB/10/2021/2021-12-28 10.v1:2021-12-28 23:50 OTR=-1 AC-EMM 2021-12-29 02:00 OTR=0 11.v1:2021-12-29 02:00 OTR=0 EMM-FF 2021-12-29 05:00 OTR=0 TR/8350/12AB/10/2021/2021-12-29 10.v1:2021-12-29 23:50 OTR=-1 AC-EMM 2021-12-30 02:00 OTR=0 11.v1:2021-12-30 02:00 OTR=0 EMM-FF 2021-12-30 05:00 OTR=0 TR/8350/12AB/10/2021/2021-12-30 10.v1:2021-12-30 23:50 OTR=-1 AC-EMM 2021-12-31 02:00 OTR=0 11.v1:2021-12-31 02:00 OTR=0 EMM-FF 2021-12-31 05:00 OTR=0 TR/8350/12AB/20/2021/2021-12-03 20.v1:2021-12-03 23:50 OTR=-1 AC-Venlo 2021-12-04 01:00 OTR=0 21.v1:2021-12-04 02:00 OTR=0 Venlo-FF 2021-12-04 05:00 OTR=0 TR/8350/12AB/20/2021/2021-12-04 20.v1:2021-12-04 23:50 OTR=-1 AC-Venlo 2021-12-05 01:00 OTR=0 21.v1:2021-12-05 02:00 OTR=0 Venlo-FF 2021-12-05 05:00 OTR=0 TR/8350/12AB/20/2021/2021-12-05 20.v1:2021-12-05 23:50 OTR=-1 AC-Venlo 2021-12-06 01:00 OTR=0 21.v1:2021-12-06 02:00 OTR=0 Venlo-FF 2021-12-06 05:00 OTR=0 TR/8350/12AB/20/2021/2021-12-10 20.v1:2021-12-10 23:50 OTR=-1 AC-Venlo 2021-12-11 01:00 OTR=0 21.v1:2021-12-11 02:00 OTR=0 Venlo-FF 2021-12-11 05:00 OTR=0 TR/8350/12AB/20/2021/2021-12-11 20.v1:2021-12-11 23:50 OTR=-1 AC-Venlo 2021-12-12 01:00 OTR=0 21.v1:2021-12-12 02:00 OTR=0 Venlo-FF 2021-12-12 05:00 OTR=0 TR/8350/12AB/20/2021/2021-12-12 20.v1:2021-12-12 23:50 OTR=-1 AC-Venlo 2021-12-13 01:00 OTR=0 21.v1:2021-12-13 02:00 OTR=0 Venlo-FF 2021-12-13 05:00 OTR=0 TR/8350/12AB/20/2021/2021-12-17 20.v1:2021-12-17 23:50 OTR=-1 AC-Venlo 2021-12-18 01:00 OTR=0 21.v1:2021-12-18 02:00 OTR=0 Venlo-FF 2021-12-18 05:00 OTR=0 TR/8350/12AB/20/2021/2021-12-18 20.v1:2021-12-18 23:50 OTR=-1 AC-Venlo 2021-12-19 01:00 OTR=0 21.v1:2021-12-19 02:00 OTR=0 Venlo-FF 2021-12-19 05:00 OTR=0 TR/8350/12AB/20/2021/2021-12-19 20.v1:2021-12-19 23:50 OTR=-1 AC-Venlo 2021-12-20 01:00 OTR=0 21.v1:2021-12-20 02:00 OTR=0 Venlo-FF 2021-12-20 05:00 OTR=0 TR/8350/12AB/20/2021/2021-12-24 20.v1:2021-12-24 23:50 OTR=-1 AC-Venlo 2021-12-25 01:00 OTR=0 21.v1:2021-12-25 02:00 OTR=0 Venlo-FF 2021-12-25 05:00 OTR=0 TR/8350/12AB/20/2021/2021-12-25 20.v1:2021-12-25 23:50 OTR=-1 AC-Venlo 2021-12-26 01:00 OTR=0 21.v1:2021-12-26 02:00 OTR=0 Venlo-FF 2021-12-26 05:00 OTR=0 TR/8350/12AB/20/2021/2021-12-26 20.v1:2021-12-26 23:50 OTR=-1 AC-Venlo 2021-12-27 01:00 OTR=0 21.v1:2021-12-27 02:00 OTR=0 Venlo-FF 2021-12-27 05:00 OTR=0 TR/8350/12AB/20/2021/2021-12-31 20.v1:2021-12-31 23:50 OTR=-30 AC-Venlo 2022-01-01 01:00 OTR=0 21.v1:2022-01-01 02:00 OTR=0 Venlo-FF 2022-01-01 05:00 OTR=0 .. GENERATED FROM PYTHON SOURCE LINES 99-105 RoutingInformation as TrainInformation ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ An XML Dump of the routing information of this example according a new version of the TSI XSD. See `Routing planning <../routing-planning-process.html#routininformation-as-traininformation>`_ for more details. .. GENERATED FROM PYTHON SOURCE LINES 105-106 .. code-block:: default print(dump_routing_info_as_xml(t)) .. rst-class:: sphx-glr-script-out Out: .. code-block:: none RS 8350 --------12AB 10 2021 DE 10007 AC 0 DE 10008 EMM 1 110001111000111100011110001111 2021-12-01T00:00:00 2021-12-30T00:00:00 RS 8350 --------12AB 11 2021 RS 8350 --------12AB 11 2021 DE 10008 EMM 0 DE 10009 FF 0 110001111000111100011110001111 2021-12-02T00:00:00 2021-12-31T00:00:00 RS 8350 --------12AB 20 2021 DE 10007 AC 0 DE 10010 Venlo 1 11100001110000111000011100001 2021-12-03T00:00:00 2021-12-31T00:00:00 RS 8350 --------12AB 21 2021 RS 8350 --------12AB 21 2021 DE 10010 Venlo 0 DE 10009 FF 0 11100001110000111000011100001 2021-12-04T00:00:00 2022-01-01T00:00:00 110001111000111100011110001111 2021-12-01T00:00:00 2021-12-30T00:00:00 DE 10007 AC 0 DE 10008 EMM 1 DE 10009 FF 0 11100001110000111000011100001 2021-12-03T00:00:00 2021-12-31T00:00:00 DE 10007 AC 0 DE 10010 Venlo 1 DE 10009 FF 0 .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 1.551 seconds) .. _sphx_glr_download_auto_examples_plot_ac_ff.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_ac_ff.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_ac_ff.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_