skinkie / reference

Personal repository where I collect working examples to understand inner workings while building PyNeTExConv
GNU Affero General Public License v3.0
1 stars 1 forks source link

Problem with STA dataset #106

Open ue71603 opened 1 month ago

ue71603 commented 1 month ago

Link: I have updated the file, because two Refs in PathLinks were invalid (I just removed the two PathLinks). If you need the updated file, then pls send me, where I should put it.

Processing:


 {
    "block": "stav462",
    "url":"download from Roberto",
    "description":"STA file based on VDV 462 for testing",
    "scripts": [
        {"script": "clean_tmp", "args": ["d:/aux_test_processing"]},
        {"script": "netex_to_db.py", "args": ["D:/conversion/GE16614_01_DIVA_apb_ALL_1_20240919165008.xml.zip d:/aux_test_processing/swiss-import.duckdb"]},
        {"script": "epip_db_to_db.py", "args": ["d:/aux_test_processing/swiss-import.duckdb d:/aux_test_processing/netex-database.duckdb"]},
        {"script": "epip_db_to_xml.py", "args": ["d:/aux_test_processing/swiss-import.duckdb d:/aux_test_processing/netex-database.duckdb d:/aux_test_processing/stvdv462-netex.xml"]},
        {"script": "aux_assertions.py", "args": ["./aux_test_input/general-assertions.txt d:/aux_test_processing/stvdv462-netex.xml"]},
        {"script": "aux_netex_stats.py", "args": ["d:/aux_test_processing/stvdv462-netex.xml"]},
         {"script": "clean_tmp", "args": ["d:/aux_test_processing"]},
        {"script": "netex_to_db.py", "args": ["d:/aux_test_processing/stvdv462-netex.xml d:/aux_test_processing/netex-database.duckdb"]},
        {"script": "related_explorer.py", "args": ["d:/aux_test_processing/netex-database.duckdb ServiceJourney random d:/aux_test_processing/sj.xml"]},
        {"script": "netex_db_to_gtfs.py", "args": ["d:/aux_test_processing/netex-database.duckdb d:/aux_test_processing/stvdv462-gtfs.zip"]},
        {"script": "aux_gtfs_check.py", "args": ["d:/aux_test_processing/stvdv462-gtfs.zip"]},
        {"script": "gtfs_show_map.py", "args": ["d:/aux_test_processing/stvdv462-gtfs.zip d:/aux_test_processing/stvdv462-map.html routes"]}
        ]
  }

Runs into troubles in epip_db_to_db.py in callsprofile.py

l. 223 image

lis does not contain a valid lis.runtimes.journey_run_time

With a small change i printed the relevant information.

It happened with


                <ServiceLinkInJourneyPattern id="it:apb:ServiceLinkInJourneyPattern:01B06_.24a-1-0040602" version="1" order="2">
                  <ServiceLinkRef ref="it:apb:ServiceLink:01_it:22021:2132:1:5273_it:22021:2132:1:5272" version="any" />
                </ServiceLinkInJourneyPattern>

            <ServiceLink id="it:apb:ServiceLink:01_it:22021:2132:1:5273_it:22021:2132:1:5272" version="any">
              <Extensions>
                <contractualDistance>250</contractualDistance>
              </Extensions>
              <Distance>250</Distance>
              <gml:LineString gml:id="SLLS_922">
                <gml:posList>11.315148 46.48089 11.315031 46.480721 11.315013 46.48068 11.315023 46.480555 11.31505 46.480449 11.315139 46.480454 11.315196 46.480463 11.315218 46.480481 11.315233 46.4805 11.315228 46.480546 11.315183 46.48059 11.315084 46.480644 11.315013 46.48068 11.315031 46.480721 11.315305 46.481115 11.315494 46.481331 11.315598 46.481406 11.315728 46.481453 11.315846 46.481473 11.315895 46.481484 11.315967 46.481501 11.315999 46.481514 11.316051 46.481541 11.316079 46.48156 11.31616 46.481646 11.316213 46.481712</gml:posList>
              </gml:LineString>
              <FromPointRef ref="it:apb:ScheduledStopPoint:it:22021:2132:1:5273" version="any" />
              <ToPointRef ref="it:apb:ScheduledStopPoint:it:22021:2132:1:5272" version="any" />
              <OperationalContextRef ref="it:apb:OperationalContext:1" version="any" />
            </ServiceLink>
            <ServiceLink id="it:apb:ServiceLink:01_it:22021:2133:0:5207_it:22021:2134:0:5208" version="any">

VDV 462 thing? data error?

skinkie commented 1 month ago

VDV462 stores its Runtimes somewhere completely different. Did not implement that yet here.

ue71603 commented 1 month ago

es, VDV 462 isthe 3rd mechanism. Will this result in a vdv462-to-db.py. Probably we will also need a vdv462-db-to-xml.py. What will be the core storage of the stuff in db (architecture documents)..

skinkie commented 1 month ago

No, because everything is embedded. So the objects theirselves did not change.

ue71603 commented 1 month ago

ok.