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

No interchanges found #105

Open ue71603 opened 4 days ago

ue71603 commented 4 days ago

I used Swiss4.zip swiss4.zip

It contains interchangeRules and journeyMeetings

Using

 {
"block": "swiss4",
"scripts": [
    {"script": "clean_tmp", "args": ["d:/aux_test_processing"]},
    {"script": "swiss_to_db.py", "args": ["d:/swiss4.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/swiss3-netex.xml"]},
    {"script": "aux_assertions.py", "args": ["./aux_test_input/swiss-assertions.txt d:/aux_test_processing/swiss3-netex.xml"]},
    {"script": "aux_netex_stats.py", "args": ["d:/aux_test_processing/swiss3-netex.xml"]},
    {"script": "netex_to_db.py", "args": ["d:/aux_test_processing/swiss3-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/swiss3-gtfs.zip"]},
    {"script": "aux_gtfs_check.py", "args": ["d:/aux_test_processing/swiss3-gtfs.zip"]},
    {"script": "gtfs_show_map.py", "args": ["d:/aux_test_processing/swiss3-gtfs.zip d:/aux_test_processing/swiss3-map.html routes"]}
    ]

}

it lost the interchanges and stuff. already in the swiss3-netex.xml. I guess the epip-db-db.py omits them. Is this something that it should do?

I then moved directly from loading to writing to GTFS


     {
    "block": "swiss4short",
    "scripts": [
        {"script": "clean_tmp", "args": ["d:/aux_test_processing"]},
        {"script": "swiss_to_db.py", "args": ["d:/swiss4.zip d:/aux_test_processing/swiss-import.duckdb"]},
        {"script": "netex_db_to_gtfs.py", "args": ["d:/aux_test_processing/netex-database.duckdb d:/aux_test_processing/swiss4short-gtfs.zip"]},
        {"script": "aux_gtfs_check.py", "args": ["d:/aux_test_processing/swiss4short-gtfs-gtfs.zip"]},
        {"script": "gtfs_show_map.py", "args": ["d:/aux_test_processing/swiss4short-gtfs-gtfs.zip d:/aux_test_processing/swiss4short-gtfs-map.html routes"]}
        ]
    }
    ,

No, also no transfers

Pls inform me, when this works.

skinkie commented 4 days ago

Did you use the last version, pushed yesterday? That covers the export and import for GTFS. In all other cases I'll check at what part we lose them.

ue71603 commented 4 days ago

Update from master says, no updates needed on the branch I am working on :-(

skinkie commented 4 days ago

If you are using your own branch, you need to merge master into it.

ue71603 commented 4 days ago

That's what update from master is doing...I am up to date with master.

skinkie commented 4 days ago

Then leave it assigned to me. I was quite sure we had transparent interchanges now.

https://github.com/skinkie/reference/blob/master/gtfs-netex-test/epip_db_to_xml.py#L221

ue71603 commented 4 days ago

thanks