.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_ac_ff_without_timing.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_without_timing.py: Example: Train AC - FF without timing ===================================== .. GENERATED FROM PYTHON SOURCE LINES 6-10 .. code-block:: default from tom.util import example, dump_routing_info_as_xml from tom.tom import make_train_from_yml, TrainRun, RouteSection, Route from tom.plot import plot_train, plot_graph .. GENERATED FROM PYTHON SOURCE LINES 11-12 Load example 4 from yaml specification .. GENERATED FROM PYTHON SOURCE LINES 12-15 .. code-block:: default _, t_spec_file = example('../tests/data', 'without-timing') print(t_spec_file.read_text()) .. rst-class:: sphx-glr-script-out Out: .. code-block:: none --- # This example demonstrates, how to use ECM without the need to specify # exact departure and travel times. # Just always use as departure time 12:00 and travel time 24h if the train # should have a night shift. coreID: 00AB lead_ru: 1080 # DB FV # initial revision of RoutingInfo. Alle sections # also have version 1 version: 1 sections: - id: 10 version: 1 departure_station: AC arrival_station: EMM travel_time: '24:00:00' color: yellowgreen succ: - 20 - id: 20 version: 1 departure_station: EMM arrival_station: FF departure_time: '12:00:00' # => Route Construction Start travel_time: '24:00:00' calendar: begin: '2021-12-02' end: '2021-12-31' mask: 'Tue Wed Thu Fri' color: green - id: 30 version: 1 departure_station: AC arrival_station: Venlo travel_time: '24:00:00' color: cyan succ: - 40 - id: 40 version: 1 departure_station: Venlo arrival_station: FF travel_time: '24:00:00' departure_time: '12:00:00' # => Route Construction Start calendar: begin: '2021-12-02' end: '2022-01-01' mask: 'Sat Sun Mon' color: salmon .. GENERATED FROM PYTHON SOURCE LINES 16-17 Create train object and show its train id. .. GENERATED FROM PYTHON SOURCE LINES 17-20 .. 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/00AB/00/2021' .. GENERATED FROM PYTHON SOURCE LINES 21-23 Timetable ^^^^^^^^^ .. GENERATED FROM PYTHON SOURCE LINES 23-26 .. 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/00AB/10/2021/2021-12-01 Mi 01.12.21 12:00 Do 02.12.21 12:00 Do 02.12.21 12:00 Fr 03.12.21 12:00
TR/8350/00AB/10/2021/2021-12-02 Do 02.12.21 12:00 Fr 03.12.21 12:00 Fr 03.12.21 12:00 Sa 04.12.21 12:00
TR/8350/00AB/30/2021/2021-12-03 Fr 03.12.21 12:00 Sa 04.12.21 12:00 Sa 04.12.21 12:00 So 05.12.21 12:00
TR/8350/00AB/30/2021/2021-12-04 Sa 04.12.21 12:00 So 05.12.21 12:00 So 05.12.21 12:00 Mo 06.12.21 12:00
TR/8350/00AB/30/2021/2021-12-05 So 05.12.21 12:00 Mo 06.12.21 12:00 Mo 06.12.21 12:00 Di 07.12.21 12:00
TR/8350/00AB/10/2021/2021-12-06 Mo 06.12.21 12:00 Di 07.12.21 12:00 Di 07.12.21 12:00 Mi 08.12.21 12:00
TR/8350/00AB/10/2021/2021-12-07 Di 07.12.21 12:00 Mi 08.12.21 12:00 Mi 08.12.21 12:00 Do 09.12.21 12:00
TR/8350/00AB/10/2021/2021-12-08 Mi 08.12.21 12:00 Do 09.12.21 12:00 Do 09.12.21 12:00 Fr 10.12.21 12:00
TR/8350/00AB/10/2021/2021-12-09 Do 09.12.21 12:00 Fr 10.12.21 12:00 Fr 10.12.21 12:00 Sa 11.12.21 12:00
TR/8350/00AB/30/2021/2021-12-10 Fr 10.12.21 12:00 Sa 11.12.21 12:00 Sa 11.12.21 12:00 So 12.12.21 12:00
TR/8350/00AB/30/2021/2021-12-11 Sa 11.12.21 12:00 So 12.12.21 12:00 So 12.12.21 12:00 Mo 13.12.21 12:00
TR/8350/00AB/30/2021/2021-12-12 So 12.12.21 12:00 Mo 13.12.21 12:00 Mo 13.12.21 12:00 Di 14.12.21 12:00
TR/8350/00AB/10/2021/2021-12-13 Mo 13.12.21 12:00 Di 14.12.21 12:00 Di 14.12.21 12:00 Mi 15.12.21 12:00
TR/8350/00AB/10/2021/2021-12-14 Di 14.12.21 12:00 Mi 15.12.21 12:00 Mi 15.12.21 12:00 Do 16.12.21 12:00
TR/8350/00AB/10/2021/2021-12-15 Mi 15.12.21 12:00 Do 16.12.21 12:00 Do 16.12.21 12:00 Fr 17.12.21 12:00
TR/8350/00AB/10/2021/2021-12-16 Do 16.12.21 12:00 Fr 17.12.21 12:00 Fr 17.12.21 12:00 Sa 18.12.21 12:00
TR/8350/00AB/30/2021/2021-12-17 Fr 17.12.21 12:00 Sa 18.12.21 12:00 Sa 18.12.21 12:00 So 19.12.21 12:00
TR/8350/00AB/30/2021/2021-12-18 Sa 18.12.21 12:00 So 19.12.21 12:00 So 19.12.21 12:00 Mo 20.12.21 12:00
TR/8350/00AB/30/2021/2021-12-19 So 19.12.21 12:00 Mo 20.12.21 12:00 Mo 20.12.21 12:00 Di 21.12.21 12:00
TR/8350/00AB/10/2021/2021-12-20 Mo 20.12.21 12:00 Di 21.12.21 12:00 Di 21.12.21 12:00 Mi 22.12.21 12:00
TR/8350/00AB/10/2021/2021-12-21 Di 21.12.21 12:00 Mi 22.12.21 12:00 Mi 22.12.21 12:00 Do 23.12.21 12:00
TR/8350/00AB/10/2021/2021-12-22 Mi 22.12.21 12:00 Do 23.12.21 12:00 Do 23.12.21 12:00 Fr 24.12.21 12:00
TR/8350/00AB/10/2021/2021-12-23 Do 23.12.21 12:00 Fr 24.12.21 12:00 Fr 24.12.21 12:00 Sa 25.12.21 12:00
TR/8350/00AB/30/2021/2021-12-24 Fr 24.12.21 12:00 Sa 25.12.21 12:00 Sa 25.12.21 12:00 So 26.12.21 12:00
TR/8350/00AB/30/2021/2021-12-25 Sa 25.12.21 12:00 So 26.12.21 12:00 So 26.12.21 12:00 Mo 27.12.21 12:00
TR/8350/00AB/30/2021/2021-12-26 So 26.12.21 12:00 Mo 27.12.21 12:00 Mo 27.12.21 12:00 Di 28.12.21 12:00
TR/8350/00AB/10/2021/2021-12-27 Mo 27.12.21 12:00 Di 28.12.21 12:00 Di 28.12.21 12:00 Mi 29.12.21 12:00
TR/8350/00AB/10/2021/2021-12-28 Di 28.12.21 12:00 Mi 29.12.21 12:00 Mi 29.12.21 12:00 Do 30.12.21 12:00
TR/8350/00AB/10/2021/2021-12-29 Mi 29.12.21 12:00 Do 30.12.21 12:00 Do 30.12.21 12:00 Fr 31.12.21 12:00
TR/8350/00AB/10/2021/2021-12-30 Do 30.12.21 12:00 Fr 31.12.21 12:00 Fr 31.12.21 12:00 Sa 01.01.22 12:00
TR/8350/00AB/30/2021/2021-12-31 Fr 31.12.21 12:00 Sa 01.01.22 12:00 Sa 01.01.22 12:00 So 02.01.22 12:00


.. GENERATED FROM PYTHON SOURCE LINES 27-30 Bildfahrplan ^^^^^^^^^^^^ Show timetable as plot .. GENERATED FROM PYTHON SOURCE LINES 30-32 .. code-block:: default plot_train(t) .. image:: /auto_examples/images/sphx_glr_plot_ac_ff_without_timing_001.png :alt: Timetable TR/8350/00AB/00/2021 v1 :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 33-34 Show only the first week .. GENERATED FROM PYTHON SOURCE LINES 34-36 .. code-block:: default plot_train(t, no_of_runs=7) .. image:: /auto_examples/images/sphx_glr_plot_ac_ff_without_timing_002.png :alt: Timetable TR/8350/00AB/00/2021 v1 :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 37-40 Route Sections ^^^^^^^^^^^^^^ From which sections the train is composed? .. GENERATED FROM PYTHON SOURCE LINES 40-44 .. 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: 12:00 in AC Arrival at: 12:00 in EMM Successors: [20] ID : 20.v1 Calender : 02/12 to 31/12 110001111000111100011110001111 Start at: 12:00 in EMM Arrival at: 12:00 in FF Successors: [] ID : 30.v1 Calender : 03/12 to 31/12 11100001110000111000011100001 Start at: 12:00 in AC Arrival at: 12:00 in Venlo Successors: [40] ID : 40.v1 Calender : 04/12 to 01/01 11100001110000111000011100001 Start at: 12:00 in Venlo Arrival at: 12:00 in FF Successors: [] .. GENERATED FROM PYTHON SOURCE LINES 45-48 Section graph ^^^^^^^^^^^^^ The section graph is computed using the successor relation: .. GENERATED FROM PYTHON SOURCE LINES 48-52 .. code-block:: default sg = t.section_graph() plot_graph(sg) .. image:: /auto_examples/images/sphx_glr_plot_ac_ff_without_timing_003.png :alt: plot ac ff without timing :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 53-57 Routes ^^^^^^ Print all possible routes. Routes are calculated from all possible paths in the section graph. .. GENERATED FROM PYTHON SOURCE LINES 57-61 .. 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-20 Calendar : 01/12 to 30/12 110001111000111100011110001111 Start at: 12:00 in AC Arrival at: 12:00 in EMM Arrival at: 12:00 in FF Route : AC-Venlo-FF Key : 30-40 Calendar : 03/12 to 31/12 11100001110000111000011100001 Start at: 12:00 in AC Arrival at: 12:00 in Venlo Arrival at: 12:00 in FF .. GENERATED FROM PYTHON SOURCE LINES 62-66 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 66-70 .. 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 12:00:00 2021-12-02 12:00:00 2021-12-02 10 2021-12-02 12:00:00 2021-12-03 12:00:00 2021-12-06 10 2021-12-06 12:00:00 2021-12-07 12:00:00 2021-12-07 10 2021-12-07 12:00:00 2021-12-08 12:00:00 2021-12-08 10 2021-12-08 12:00:00 2021-12-09 12:00:00 2021-12-09 10 2021-12-09 12:00:00 2021-12-10 12:00:00 2021-12-13 10 2021-12-13 12:00:00 2021-12-14 12:00:00 2021-12-14 10 2021-12-14 12:00:00 2021-12-15 12:00:00 2021-12-15 10 2021-12-15 12:00:00 2021-12-16 12:00:00 2021-12-16 10 2021-12-16 12:00:00 2021-12-17 12:00:00 2021-12-20 10 2021-12-20 12:00:00 2021-12-21 12:00:00 2021-12-21 10 2021-12-21 12:00:00 2021-12-22 12:00:00 2021-12-22 10 2021-12-22 12:00:00 2021-12-23 12:00:00 2021-12-23 10 2021-12-23 12:00:00 2021-12-24 12:00:00 2021-12-27 10 2021-12-27 12:00:00 2021-12-28 12:00:00 2021-12-28 10 2021-12-28 12:00:00 2021-12-29 12:00:00 2021-12-29 10 2021-12-29 12:00:00 2021-12-30 12:00:00 2021-12-30 10 2021-12-30 12:00:00 2021-12-31 12:00:00 20: EMM-FF ID EMM FF 2021-12-02 20 2021-12-02 12:00:00 2021-12-03 12:00:00 2021-12-03 20 2021-12-03 12:00:00 2021-12-04 12:00:00 2021-12-07 20 2021-12-07 12:00:00 2021-12-08 12:00:00 2021-12-08 20 2021-12-08 12:00:00 2021-12-09 12:00:00 2021-12-09 20 2021-12-09 12:00:00 2021-12-10 12:00:00 2021-12-10 20 2021-12-10 12:00:00 2021-12-11 12:00:00 2021-12-14 20 2021-12-14 12:00:00 2021-12-15 12:00:00 2021-12-15 20 2021-12-15 12:00:00 2021-12-16 12:00:00 2021-12-16 20 2021-12-16 12:00:00 2021-12-17 12:00:00 2021-12-17 20 2021-12-17 12:00:00 2021-12-18 12:00:00 2021-12-21 20 2021-12-21 12:00:00 2021-12-22 12:00:00 2021-12-22 20 2021-12-22 12:00:00 2021-12-23 12:00:00 2021-12-23 20 2021-12-23 12:00:00 2021-12-24 12:00:00 2021-12-24 20 2021-12-24 12:00:00 2021-12-25 12:00:00 2021-12-28 20 2021-12-28 12:00:00 2021-12-29 12:00:00 2021-12-29 20 2021-12-29 12:00:00 2021-12-30 12:00:00 2021-12-30 20 2021-12-30 12:00:00 2021-12-31 12:00:00 2021-12-31 20 2021-12-31 12:00:00 2022-01-01 12:00:00 30: AC-Venlo ID AC Venlo 2021-12-03 30 2021-12-03 12:00:00 2021-12-04 12:00:00 2021-12-04 30 2021-12-04 12:00:00 2021-12-05 12:00:00 2021-12-05 30 2021-12-05 12:00:00 2021-12-06 12:00:00 2021-12-10 30 2021-12-10 12:00:00 2021-12-11 12:00:00 2021-12-11 30 2021-12-11 12:00:00 2021-12-12 12:00:00 2021-12-12 30 2021-12-12 12:00:00 2021-12-13 12:00:00 2021-12-17 30 2021-12-17 12:00:00 2021-12-18 12:00:00 2021-12-18 30 2021-12-18 12:00:00 2021-12-19 12:00:00 2021-12-19 30 2021-12-19 12:00:00 2021-12-20 12:00:00 2021-12-24 30 2021-12-24 12:00:00 2021-12-25 12:00:00 2021-12-25 30 2021-12-25 12:00:00 2021-12-26 12:00:00 2021-12-26 30 2021-12-26 12:00:00 2021-12-27 12:00:00 2021-12-31 30 2021-12-31 12:00:00 2022-01-01 12:00:00 40: Venlo-FF ID Venlo FF 2021-12-04 40 2021-12-04 12:00:00 2021-12-05 12:00:00 2021-12-05 40 2021-12-05 12:00:00 2021-12-06 12:00:00 2021-12-06 40 2021-12-06 12:00:00 2021-12-07 12:00:00 2021-12-11 40 2021-12-11 12:00:00 2021-12-12 12:00:00 2021-12-12 40 2021-12-12 12:00:00 2021-12-13 12:00:00 2021-12-13 40 2021-12-13 12:00:00 2021-12-14 12:00:00 2021-12-18 40 2021-12-18 12:00:00 2021-12-19 12:00:00 2021-12-19 40 2021-12-19 12:00:00 2021-12-20 12:00:00 2021-12-20 40 2021-12-20 12:00:00 2021-12-21 12:00:00 2021-12-25 40 2021-12-25 12:00:00 2021-12-26 12:00:00 2021-12-26 40 2021-12-26 12:00:00 2021-12-27 12:00:00 2021-12-27 40 2021-12-27 12:00:00 2021-12-28 12:00:00 2022-01-01 40 2022-01-01 12:00:00 2022-01-02 12:00:00 .. GENERATED FROM PYTHON SOURCE LINES 71-74 TrainRuns ^^^^^^^^^ Each `TrainRun` defines a row in the timetable of the train above .. GENERATED FROM PYTHON SOURCE LINES 74-81 .. 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/00AB/10/2021/2021-12-01 10.v1:2021-12-01 12:00 OTR=-1 AC-EMM 2021-12-02 12:00 OTR=0 20.v1:2021-12-02 12:00 OTR=0 EMM-FF 2021-12-03 12:00 OTR=1 TR/8350/00AB/10/2021/2021-12-02 10.v1:2021-12-02 12:00 OTR=-1 AC-EMM 2021-12-03 12:00 OTR=0 20.v1:2021-12-03 12:00 OTR=0 EMM-FF 2021-12-04 12:00 OTR=1 TR/8350/00AB/10/2021/2021-12-06 10.v1:2021-12-06 12:00 OTR=-1 AC-EMM 2021-12-07 12:00 OTR=0 20.v1:2021-12-07 12:00 OTR=0 EMM-FF 2021-12-08 12:00 OTR=1 TR/8350/00AB/10/2021/2021-12-07 10.v1:2021-12-07 12:00 OTR=-1 AC-EMM 2021-12-08 12:00 OTR=0 20.v1:2021-12-08 12:00 OTR=0 EMM-FF 2021-12-09 12:00 OTR=1 TR/8350/00AB/10/2021/2021-12-08 10.v1:2021-12-08 12:00 OTR=-1 AC-EMM 2021-12-09 12:00 OTR=0 20.v1:2021-12-09 12:00 OTR=0 EMM-FF 2021-12-10 12:00 OTR=1 TR/8350/00AB/10/2021/2021-12-09 10.v1:2021-12-09 12:00 OTR=-1 AC-EMM 2021-12-10 12:00 OTR=0 20.v1:2021-12-10 12:00 OTR=0 EMM-FF 2021-12-11 12:00 OTR=1 TR/8350/00AB/10/2021/2021-12-13 10.v1:2021-12-13 12:00 OTR=-1 AC-EMM 2021-12-14 12:00 OTR=0 20.v1:2021-12-14 12:00 OTR=0 EMM-FF 2021-12-15 12:00 OTR=1 TR/8350/00AB/10/2021/2021-12-14 10.v1:2021-12-14 12:00 OTR=-1 AC-EMM 2021-12-15 12:00 OTR=0 20.v1:2021-12-15 12:00 OTR=0 EMM-FF 2021-12-16 12:00 OTR=1 TR/8350/00AB/10/2021/2021-12-15 10.v1:2021-12-15 12:00 OTR=-1 AC-EMM 2021-12-16 12:00 OTR=0 20.v1:2021-12-16 12:00 OTR=0 EMM-FF 2021-12-17 12:00 OTR=1 TR/8350/00AB/10/2021/2021-12-16 10.v1:2021-12-16 12:00 OTR=-1 AC-EMM 2021-12-17 12:00 OTR=0 20.v1:2021-12-17 12:00 OTR=0 EMM-FF 2021-12-18 12:00 OTR=1 TR/8350/00AB/10/2021/2021-12-20 10.v1:2021-12-20 12:00 OTR=-1 AC-EMM 2021-12-21 12:00 OTR=0 20.v1:2021-12-21 12:00 OTR=0 EMM-FF 2021-12-22 12:00 OTR=1 TR/8350/00AB/10/2021/2021-12-21 10.v1:2021-12-21 12:00 OTR=-1 AC-EMM 2021-12-22 12:00 OTR=0 20.v1:2021-12-22 12:00 OTR=0 EMM-FF 2021-12-23 12:00 OTR=1 TR/8350/00AB/10/2021/2021-12-22 10.v1:2021-12-22 12:00 OTR=-1 AC-EMM 2021-12-23 12:00 OTR=0 20.v1:2021-12-23 12:00 OTR=0 EMM-FF 2021-12-24 12:00 OTR=1 TR/8350/00AB/10/2021/2021-12-23 10.v1:2021-12-23 12:00 OTR=-1 AC-EMM 2021-12-24 12:00 OTR=0 20.v1:2021-12-24 12:00 OTR=0 EMM-FF 2021-12-25 12:00 OTR=1 TR/8350/00AB/10/2021/2021-12-27 10.v1:2021-12-27 12:00 OTR=-1 AC-EMM 2021-12-28 12:00 OTR=0 20.v1:2021-12-28 12:00 OTR=0 EMM-FF 2021-12-29 12:00 OTR=1 TR/8350/00AB/10/2021/2021-12-28 10.v1:2021-12-28 12:00 OTR=-1 AC-EMM 2021-12-29 12:00 OTR=0 20.v1:2021-12-29 12:00 OTR=0 EMM-FF 2021-12-30 12:00 OTR=1 TR/8350/00AB/10/2021/2021-12-29 10.v1:2021-12-29 12:00 OTR=-1 AC-EMM 2021-12-30 12:00 OTR=0 20.v1:2021-12-30 12:00 OTR=0 EMM-FF 2021-12-31 12:00 OTR=1 TR/8350/00AB/10/2021/2021-12-30 10.v1:2021-12-30 12:00 OTR=-1 AC-EMM 2021-12-31 12:00 OTR=0 20.v1:2021-12-31 12:00 OTR=0 EMM-FF 2022-01-01 12:00 OTR=30 TR/8350/00AB/30/2021/2021-12-03 30.v1:2021-12-03 12:00 OTR=-1 AC-Venlo 2021-12-04 12:00 OTR=0 40.v1:2021-12-04 12:00 OTR=0 Venlo-FF 2021-12-05 12:00 OTR=1 TR/8350/00AB/30/2021/2021-12-04 30.v1:2021-12-04 12:00 OTR=-1 AC-Venlo 2021-12-05 12:00 OTR=0 40.v1:2021-12-05 12:00 OTR=0 Venlo-FF 2021-12-06 12:00 OTR=1 TR/8350/00AB/30/2021/2021-12-05 30.v1:2021-12-05 12:00 OTR=-1 AC-Venlo 2021-12-06 12:00 OTR=0 40.v1:2021-12-06 12:00 OTR=0 Venlo-FF 2021-12-07 12:00 OTR=1 TR/8350/00AB/30/2021/2021-12-10 30.v1:2021-12-10 12:00 OTR=-1 AC-Venlo 2021-12-11 12:00 OTR=0 40.v1:2021-12-11 12:00 OTR=0 Venlo-FF 2021-12-12 12:00 OTR=1 TR/8350/00AB/30/2021/2021-12-11 30.v1:2021-12-11 12:00 OTR=-1 AC-Venlo 2021-12-12 12:00 OTR=0 40.v1:2021-12-12 12:00 OTR=0 Venlo-FF 2021-12-13 12:00 OTR=1 TR/8350/00AB/30/2021/2021-12-12 30.v1:2021-12-12 12:00 OTR=-1 AC-Venlo 2021-12-13 12:00 OTR=0 40.v1:2021-12-13 12:00 OTR=0 Venlo-FF 2021-12-14 12:00 OTR=1 TR/8350/00AB/30/2021/2021-12-17 30.v1:2021-12-17 12:00 OTR=-1 AC-Venlo 2021-12-18 12:00 OTR=0 40.v1:2021-12-18 12:00 OTR=0 Venlo-FF 2021-12-19 12:00 OTR=1 TR/8350/00AB/30/2021/2021-12-18 30.v1:2021-12-18 12:00 OTR=-1 AC-Venlo 2021-12-19 12:00 OTR=0 40.v1:2021-12-19 12:00 OTR=0 Venlo-FF 2021-12-20 12:00 OTR=1 TR/8350/00AB/30/2021/2021-12-19 30.v1:2021-12-19 12:00 OTR=-1 AC-Venlo 2021-12-20 12:00 OTR=0 40.v1:2021-12-20 12:00 OTR=0 Venlo-FF 2021-12-21 12:00 OTR=1 TR/8350/00AB/30/2021/2021-12-24 30.v1:2021-12-24 12:00 OTR=-1 AC-Venlo 2021-12-25 12:00 OTR=0 40.v1:2021-12-25 12:00 OTR=0 Venlo-FF 2021-12-26 12:00 OTR=1 TR/8350/00AB/30/2021/2021-12-25 30.v1:2021-12-25 12:00 OTR=-1 AC-Venlo 2021-12-26 12:00 OTR=0 40.v1:2021-12-26 12:00 OTR=0 Venlo-FF 2021-12-27 12:00 OTR=1 TR/8350/00AB/30/2021/2021-12-26 30.v1:2021-12-26 12:00 OTR=-1 AC-Venlo 2021-12-27 12:00 OTR=0 40.v1:2021-12-27 12:00 OTR=0 Venlo-FF 2021-12-28 12:00 OTR=1 TR/8350/00AB/30/2021/2021-12-31 30.v1:2021-12-31 12:00 OTR=-30 AC-Venlo 2022-01-01 12:00 OTR=0 40.v1:2022-01-01 12:00 OTR=0 Venlo-FF 2022-01-02 12:00 OTR=1 .. GENERATED FROM PYTHON SOURCE LINES 82-85 RoutingInformation as TrainInformation ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ An XML Dump of the routing information of this example according a new version of the TSI XSD. .. GENERATED FROM PYTHON SOURCE LINES 85-86 .. code-block:: default print(dump_routing_info_as_xml(t)) .. rst-class:: sphx-glr-script-out Out: .. code-block:: none RS 8350 --------00AB 10 2021 DE 10007 AC 0 DE 10008 EMM 1 110001111000111100011110001111 2021-12-01T00:00:00 2021-12-30T00:00:00 RS 8350 --------00AB 20 2021 RS 8350 --------00AB 20 2021 DE 10008 EMM 0 DE 10009 FF 1 110001111000111100011110001111 2021-12-02T00:00:00 2021-12-31T00:00:00 RS 8350 --------00AB 30 2021 DE 10007 AC 0 DE 10010 Venlo 1 11100001110000111000011100001 2021-12-03T00:00:00 2021-12-31T00:00:00 RS 8350 --------00AB 40 2021 RS 8350 --------00AB 40 2021 DE 10010 Venlo 0 DE 10009 FF 1 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 1 11100001110000111000011100001 2021-12-03T00:00:00 2021-12-31T00:00:00 DE 10007 AC 0 DE 10010 Venlo 1 DE 10009 FF 1 .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 1.339 seconds) .. _sphx_glr_download_auto_examples_plot_ac_ff_without_timing.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_without_timing.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_ac_ff_without_timing.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_