r5py 1.0.1__py3-none-any.whl → 1.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of r5py might be problematic. Click here for more details.
- r5py/__init__.py +1 -1
- r5py/r5/__init__.py +0 -2
- r5py/r5/regional_task.py +0 -31
- {r5py-1.0.1.dist-info → r5py-1.0.2.dist-info}/METADATA +1 -1
- {r5py-1.0.1.dist-info → r5py-1.0.2.dist-info}/RECORD +8 -9
- r5py/r5/breakdown_stat.py +0 -26
- {r5py-1.0.1.dist-info → r5py-1.0.2.dist-info}/LICENSE +0 -0
- {r5py-1.0.1.dist-info → r5py-1.0.2.dist-info}/WHEEL +0 -0
- {r5py-1.0.1.dist-info → r5py-1.0.2.dist-info}/top_level.txt +0 -0
r5py/__init__.py
CHANGED
r5py/r5/__init__.py
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
"""R5 classes."""
|
|
4
4
|
|
|
5
5
|
from .access_leg import AccessLeg
|
|
6
|
-
from .breakdown_stat import BreakdownStat
|
|
7
6
|
from .detailed_itineraries import DetailedItineraries, DetailedItinerariesComputer
|
|
8
7
|
from .direct_leg import DirectLeg
|
|
9
8
|
from .egress_leg import EgressLeg
|
|
@@ -21,7 +20,6 @@ from .trip_planner import TripPlanner
|
|
|
21
20
|
|
|
22
21
|
__all__ = [
|
|
23
22
|
"AccessLeg",
|
|
24
|
-
"BreakdownStat",
|
|
25
23
|
"DetailedItineraries",
|
|
26
24
|
"DetailedItinerariesComputer",
|
|
27
25
|
"DirectLeg",
|
r5py/r5/regional_task.py
CHANGED
|
@@ -45,7 +45,6 @@ class RegionalTask:
|
|
|
45
45
|
speed_cycling=12.0,
|
|
46
46
|
max_public_transport_rides=8,
|
|
47
47
|
max_bicycle_traffic_stress=3,
|
|
48
|
-
breakdown=False,
|
|
49
48
|
):
|
|
50
49
|
"""
|
|
51
50
|
Create a RegionalTask, a computing request for R5.
|
|
@@ -110,8 +109,6 @@ class RegionalTask:
|
|
|
110
109
|
max_bicycle_traffic_stress : int
|
|
111
110
|
Maximum stress level for cyclist routing, ranges from 1-4 see
|
|
112
111
|
https://docs.conveyal.com/learn-more/traffic-stress Default: 3
|
|
113
|
-
breakdown : bool
|
|
114
|
-
Compute a more detailed breakdown of the routes. Default: False
|
|
115
112
|
"""
|
|
116
113
|
self._regional_task = com.conveyal.r5.analyst.cluster.RegionalTask()
|
|
117
114
|
self.scenario = Scenario()
|
|
@@ -149,8 +146,6 @@ class RegionalTask:
|
|
|
149
146
|
|
|
150
147
|
# always record travel times
|
|
151
148
|
self._regional_task.recordTimes = True
|
|
152
|
-
# also report paths, if `breakdown`
|
|
153
|
-
self.breakdown = breakdown
|
|
154
149
|
|
|
155
150
|
# a few settings we don’t expose (yet?)
|
|
156
151
|
self._regional_task.makeTauiSite = False
|
|
@@ -185,32 +180,6 @@ class RegionalTask:
|
|
|
185
180
|
access_modes, com.conveyal.r5.api.util.LegMode
|
|
186
181
|
)
|
|
187
182
|
|
|
188
|
-
@property
|
|
189
|
-
def breakdown(self):
|
|
190
|
-
"""Compute a more detailed breakdown of the routes."""
|
|
191
|
-
return self._breakdown
|
|
192
|
-
|
|
193
|
-
@breakdown.setter
|
|
194
|
-
def breakdown(self, breakdown):
|
|
195
|
-
self._breakdown = breakdown
|
|
196
|
-
self._regional_task.includePathResults = breakdown
|
|
197
|
-
|
|
198
|
-
# R5 has a maximum number of destinations for which it returns detailed
|
|
199
|
-
# information, and it’s set to 5000 by default.
|
|
200
|
-
# The value is a static property of com.conveyal.r5.analyst.cluster.PathResult;
|
|
201
|
-
# static properites of Java classes can be modified in a singleton kind of way
|
|
202
|
-
try:
|
|
203
|
-
num_destinations = len(self.destinations)
|
|
204
|
-
except AttributeError:
|
|
205
|
-
num_destinations = 0
|
|
206
|
-
if (
|
|
207
|
-
num_destinations
|
|
208
|
-
> com.conveyal.r5.analyst.cluster.PathResult.MAX_PATH_DESTINATIONS
|
|
209
|
-
):
|
|
210
|
-
com.conveyal.r5.analyst.cluster.PathResult.MAX_PATH_DESTINATIONS = (
|
|
211
|
-
num_destinations + 1
|
|
212
|
-
)
|
|
213
|
-
|
|
214
183
|
@property
|
|
215
184
|
def departure(self):
|
|
216
185
|
"""Find public transport connections leaving within ``departure_time_window`` after ``departure`` (datetime.datetime)."""
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
r5py/__init__.py,sha256=
|
|
1
|
+
r5py/__init__.py,sha256=weod_rATJoxiJHVbp-3NUPqhLH9TG7PgN85tKfzgv-g,546
|
|
2
2
|
r5py/__main__.py,sha256=Wvn0ChD7E-dCSZ8b8k_HhHG0KMOk0qMNFkijGuSH3-0,81
|
|
3
|
-
r5py/r5/__init__.py,sha256=
|
|
3
|
+
r5py/r5/__init__.py,sha256=BVEeEVc-uUHLPLYBq1LN4exiQIHDw4YyANxNrprb8jQ,1061
|
|
4
4
|
r5py/r5/access_leg.py,sha256=W3GfPEpqmWD1c4xipd6UcVIaBC-yb6srGCZV30E2dPY,293
|
|
5
5
|
r5py/r5/base_travel_time_matrix.py,sha256=Vl82Wkk2iANNy6L3r937yXNnQ9lmMOErGT_-fQnb1Ms,6978
|
|
6
|
-
r5py/r5/breakdown_stat.py,sha256=ZQkWA0hXlcRH3KVgtxPSNHP0FUDri8MWqdFk8EUdDMU,533
|
|
7
6
|
r5py/r5/detailed_itineraries.py,sha256=Oo8JnF5jM2FsYFR1ma9r4y3evOmU7itDYs5M4vbqrZo,11245
|
|
8
7
|
r5py/r5/direct_leg.py,sha256=T7wX8puhOVIssCpflXthYs-G9OA8pasFbdz9p8k8teg,1054
|
|
9
8
|
r5py/r5/egress_leg.py,sha256=9rsCIcwlZUzoZE6q4imNY3VWpjJepO1IJvheVrlPi90,297
|
|
10
9
|
r5py/r5/isochrones.py,sha256=NNpV3Df4NeLdDksGERkb2Eos33ziMBGEeaWyCKPt5P8,12974
|
|
11
|
-
r5py/r5/regional_task.py,sha256=
|
|
10
|
+
r5py/r5/regional_task.py,sha256=EizNJCSQQ2fLDMTzDsq_pAVHBs1PPtwvSx8dt1t7pTo,22032
|
|
12
11
|
r5py/r5/scenario.py,sha256=nUNAlN3cO7E_b4sMpNqdL0FD7WQaQ49iIvh-k8l4YRM,763
|
|
13
12
|
r5py/r5/street_layer.py,sha256=2AWhIE0-aTNGQenX6bF1xv5bmhR_LV0CgqM4BKgVYfk,2329
|
|
14
13
|
r5py/r5/street_segment.py,sha256=0O0QV8Eyfss-xHJShKGSQV1IusZfTrrxzu_AWl3KACo,1109
|
|
@@ -40,8 +39,8 @@ r5py/util/spatially_clustered_geodataframe.py,sha256=FxG8V3SSeK-PuCep565p1b3TNcl
|
|
|
40
39
|
r5py/util/validating_requests_session.py,sha256=sH5FgpS9eGax5DG2qA2GrGuiwgTJgh8tKsZ9OiXKmvk,1807
|
|
41
40
|
r5py/util/warnings.py,sha256=CvxKWKlNO_p3riB4SkNqbU5AGPsaY_3-OzqaBObE3B8,139
|
|
42
41
|
r5py/util/working_copy.py,sha256=sbLbRCi39LtC-0tXxvh2y7ZN2D15chbhleCZXzHAFSc,1432
|
|
43
|
-
r5py-1.0.
|
|
44
|
-
r5py-1.0.
|
|
45
|
-
r5py-1.0.
|
|
46
|
-
r5py-1.0.
|
|
47
|
-
r5py-1.0.
|
|
42
|
+
r5py-1.0.2.dist-info/LICENSE,sha256=VAnuGDX1TPylSN9G2xLa-urDpj_SQwn-qqs068dx4tk,51
|
|
43
|
+
r5py-1.0.2.dist-info/METADATA,sha256=JDf3owvqgJStxW6jM_36mjJC8iqtapgfaiLvVFCxur8,9954
|
|
44
|
+
r5py-1.0.2.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
|
45
|
+
r5py-1.0.2.dist-info/top_level.txt,sha256=fOH1R85dkNDOI7jkg-lIsl5CQIO4fE5X868K9dTqs9U,5
|
|
46
|
+
r5py-1.0.2.dist-info/RECORD,,
|
r5py/r5/breakdown_stat.py
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
|
|
3
|
-
"""Wraps a com.conveyal.r5.analyst.cluster.PathResult.Stat enum set."""
|
|
4
|
-
|
|
5
|
-
import enum
|
|
6
|
-
|
|
7
|
-
from ..util import start_jvm
|
|
8
|
-
|
|
9
|
-
import com.conveyal.r5
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
__all__ = ["BreakdownStat"]
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
start_jvm()
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
class BreakdownStat(enum.Enum):
|
|
19
|
-
"""
|
|
20
|
-
Statistical functions to apply to detailed routing results summary.
|
|
21
|
-
|
|
22
|
-
BreakdownStat.MEAN, BreakdownStat.MINIMUM
|
|
23
|
-
"""
|
|
24
|
-
|
|
25
|
-
MEAN = com.conveyal.r5.analyst.cluster.PathResult.Stat.valueOf("MEAN")
|
|
26
|
-
MINIMUM = com.conveyal.r5.analyst.cluster.PathResult.Stat.valueOf("MINIMUM")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|