Skip to content
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 43 commits into from
May 21, 2020
Merged

Update to support MDS 0.4.x #87

merged 43 commits into from
May 21, 2020

Conversation

thekaveman
Copy link
Contributor

Work in progress PR for MDS 0.4.x updates

* 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.
@thekaveman thekaveman mentioned this pull request Jan 27, 2020
9 tasks
@thekaveman thekaveman added this to the MDS 0.4.0 milestone Jan 29, 2020
* 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
@thekaveman
Copy link
Contributor Author

thekaveman commented May 1, 2020

This PR will close #79. Waiting to merge until MDS 0.4.1 is an official release of the OMF.

@thekaveman thekaveman linked an issue May 1, 2020 that may be closed by this pull request
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changes for MDS 0.4.x
2 participants