Skip to content

Commit

Permalink
Add references to COVID-19 repo
Browse files Browse the repository at this point in the history
  • Loading branch information
greenape committed Apr 16, 2020
1 parent 3b9ca2f commit 4e916a5
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### Added
- Added subscriber metrics, `ActiveAtReferenceLocation`, `Unmoving`, `UnmovingAtReferenceLocation` and `UniqueLocations`
- Added location metrics, `UniqueVisitorCounts`, `UnmovingAtReferenceLocationCounts`, `ActiveAtReferenceLocationCounts`, `UnmovingCount`, `TripsODMatrix`, `ConsecutiveTripsODMatrix` and their `Redacted*` equivalents
- Added location metrics and their `Redacted*` equivalents:
- `UniqueVisitorCounts`
- `UnmovingAtReferenceLocationCounts` ([COVID-19 equivalent](https://github.com/Flowminder/COVID-19/issues/8))
- `ActiveAtReferenceLocationCounts`
- `UnmovingCount` ([COVID-19 equivalent](https://github.com/Flowminder/COVID-19/issues/10))
- `TripsODMatrix`
- `ConsecutiveTripsODMatrix` ([COVID-19 equivalent](https://github.com/Flowminder/COVID-19/issues/9))

### Changed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class ConsecutiveTripsODMatrix(FlowLike, Query):
"""
An object which represents a count of subscriber who made consecutive visits between locations.
Originally added as the FlowKit implementation of COVID-19 aggregate[1]_.
Parameters
----------
subscriber_locations : SubscriberLocations
Expand All @@ -29,6 +31,10 @@ class ConsecutiveTripsODMatrix(FlowLike, Query):
3 0RIMKYtf wQ7i3Z8n 1
4 0RIMKYtf WET2L101 2
References
----------
.. [1] https://github.com/Flowminder/COVID-19/issues/9
"""

def __init__(self, subscriber_locations: SubscriberLocations):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ class UnmovingAtReferenceLocationCounts(GeoDataMixin, Query):
"""
Per location counts of subscribers who were only seen at that location and did not move.
Originally added as the FlowKit implementation of COVID-19 aggregate[1]_.
Parameters
----------
unmoving_at_reference_location : UnmovingAtReferenceLocation
Expand All @@ -29,6 +31,10 @@ class UnmovingAtReferenceLocationCounts(GeoDataMixin, Query):
2 524 2 04 20 1
3 524 2 05 29 1
4 524 3 07 37 1
References
----------
.. [1] https://github.com/Flowminder/COVID-19/issues/8
"""

def __init__(self, unmoving_at_reference_location: UnmovingAtReferenceLocation):
Expand Down
6 changes: 6 additions & 0 deletions flowmachine/flowmachine/features/location/unmoving_counts.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class UnmovingCounts(GeoDataMixin, Query):
"""
Per location counts of subscribers who were only seen at that location and did not move.
Originally added as the FlowKit implementation of COVID-19 aggregate[1]_.
Parameters
----------
unmoving : Unmoving
Expand All @@ -26,6 +28,10 @@ class UnmovingCounts(GeoDataMixin, Query):
2 524 2 04 20 1
3 524 2 05 29 1
4 524 3 07 37 1
References
----------
.. [1] https://github.com/Flowminder/COVID-19/issues/10
"""

def __init__(self, unmoving: Unmoving):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
class UniqueLocations(SubscriberFeature):
"""
The unique locations a subscriber has visited.
Added to support FlowKit implementation of COVID-19 aggregates[1]_.
Parameters
----------
Expand All @@ -28,6 +29,10 @@ class UniqueLocations(SubscriberFeature):
2 038OVABN11Ak4W5P 524 4 12 62
3 038OVABN11Ak4W5P 524 4 12 65
4 09NrjaNNvDanD8pk 524 2 04 20
References
----------
.. [1] https://github.com/Flowminder/COVID-19/issues/12
"""

def __init__(
Expand Down

0 comments on commit 4e916a5

Please sign in to comment.