-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to support MDS 0.4.x #87
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Pull JSON schema from openmobilityfoundation repo Since github.com/CityOfLosAngeles/mobility-data-specification redirects to this new repo. In addition, account for folder changes with the 0.4.0 tag.
* min MDS version goes to 0.3.0 * max MDS version goes to 0.5.0 (exclusive)
fortunately this wasn't a problem as the list is eventually converted to CSV string
* docs about use of old start_time (status_changes), min_end_time/max_end_time (trips) * docs about use of new event_time (status_changes), end_time (trips) * version-based date formatting: unix for < 0.4.0, iso8601 hours for > 0.4.0 * raise when required params not given
no longer supported for status_changes and trips
since events has the same structure as status_changes, introduce convenience methods for loading into status_changes table
* add required param checks * format to Unix millisecond timestamp for querystring
* adding config file * fix line lengths * fix spacing * fix unused imports * fix spelling
the /events schema uses status_changes as the item key
This PR will close #79. Waiting to merge until MDS 0.4.1 is an official release of the OMF. |
Closed
9 tasks
handle cases when a parsed Version instance is compared with an unparsed version str
technically 0.4.0 requests for status_changes and trips may still use paging, so make the distinction
mds.Schema instances may be useful on their own, without an underlying schema document from GitHub. This change introduces a delay to acquire the schema document from GitHub only when it is first needed (e.g. property access). Early acquisition can be forced with keyword arg on init.
a more descriptive name for what this key is
* allow seconds or timedelta params * randomize for missing param instead of 0 * correct new_date calc so that (date + min_td) <= new_date < (date + max_td)
* reusable (internal) class methods for 0.4.0 and 0.4.1 * fix a few checks for vehicles (valid for >= 0.4.1)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Work in progress PR for MDS 0.4.x updates