Giter Club home page Giter Club logo

Comments (3)

sablanchard avatar sablanchard commented on July 29, 2024

Hi @MartijnVerhoeven ,
No problem, you can use the script we use for the full integration tests for San Diego for your case so see the file: https://github.com/UDST/urbanaccess/blob/dev/urbanaccess/tests/integration/integration_sandiego.py

Note:

  1. until a future update removes the calendar.txt requirement, you should create a dummy file to bypass this issue by doing the following: https://github.com/UDST/urbanaccess/blob/dev/urbanaccess/tests/integration/integration_sandiego.py#L22-L33

  2. then you should examine your calendar_dates.txt file and see what columns and values you want to use to select trips from that match your desired operational schedule.

    • For instance see this example for San Diego in the same file above: https://github.com/UDST/urbanaccess/blob/dev/urbanaccess/tests/integration/integration_sandiego.py#L49-L54
    • Note the parameter:
      calendar_dates_lookup={'exception_note': ['FINAL', 'WD'], 'schedule_type': 'WD'}
      What this is doing is using the column exception_note and its getting all the service ids that have the values in the list: 'FINAL', 'WD' (in the case of San Diego this indicates final schedule version and weekday) and also get service ids that that have column schedule_type value of WD (in the case of San Diego this indicates weekday).

You should be all set after this. We have a more elegant solution for this planned in the pipeline for a future version but have not yet had time to implement it properly yet but this should suffice.

Ill keep this open until you can report back that you successfully got it to work for you.

from urbanaccess.

MartijnVerhoeven avatar MartijnVerhoeven commented on July 29, 2024

from urbanaccess.

sablanchard avatar sablanchard commented on July 29, 2024

Great to hear @MartijnVerhoeven ! Will close this issue then.

Yes you could export your nodes to a shapefile using something like this:

import geopandas as gpd
import shapely

point_gdf = gpd.GeoDataFrame(nodes_df, crs={'init': 'epsg:4326'},
                             geometry=[shapely.geometry.Point(xy) for xy in zip(nodes_df.x, nodes_df.y)])
point_gdf.to_file('net_nodes.shp')

from urbanaccess.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.