r5py 1.0.0.dev12__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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  """Python wrapper for the R5 routing analysis engine."""
4
4
 
5
- __version__ = "1.0.0.dev12"
5
+ __version__ = "1.0.2"
6
6
 
7
7
 
8
8
  from .r5 import (
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,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: r5py
3
- Version: 1.0.0.dev12
3
+ Version: 1.0.2
4
4
  Summary: Python wrapper for the R5 routing analysis engine
5
5
  Author: Christoph Fink, Willem Klumpenhouwer, Marcus Sairava, Rafael Pereira, Henrikki Tenkanen
6
6
  License: GPL-3.0-or-later or MIT
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3
13
13
  Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
14
14
  Classifier: License :: OSI Approved :: MIT License
15
15
  Classifier: Operating System :: OS Independent
16
- Requires-Python: >=3.9
16
+ Requires-Python: >=3.10
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
19
  Requires-Dist: ConfigArgParse
@@ -30,6 +30,7 @@ Requires-Dist: requests
30
30
  Requires-Dist: scikit-learn
31
31
  Requires-Dist: shapely>=2.0
32
32
  Requires-Dist: simplification
33
+ Requires-Dist: typing_extensions; python_version < "3.13"
33
34
  Provides-Extra: docs
34
35
  Requires-Dist: contextily; extra == "docs"
35
36
  Requires-Dist: folium; extra == "docs"
@@ -70,7 +71,7 @@ Requires-Dist: typing-extensions; extra == "tests"
70
71
  [![downloads (pypi)][downloads-pypi-badge]][downloads-pypi-link]
71
72
  [![downloads (conda-forge)][downloads-conda-forge-badge]][downloads-conda-forge-link]
72
73
  <br />
73
- [![Trunk build status][build-status-badge]][build-status-link]
74
+ [![Unit tests][test-status-badge]][test-status-link]
74
75
  [![Documentation Status][rtd-status-badge]][rtd-status-link]
75
76
  [![Coverage][coverage-badge]][coverage-link]
76
77
  <br />
@@ -137,9 +138,7 @@ your project better.
137
138
 
138
139
  <!-- (1) badges -->
139
140
  [binder-badge]: https://img.shields.io/badge/Try%20r5py%20with-binder-F5A252.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFkAAABZCAMAAABi1XidAAAB8lBMVEX///9XmsrmZYH1olJXmsr1olJXmsrmZYH1olJXmsr1olJXmsrmZYH1olL1olJXmsr1olJXmsrmZYH1olL1olJXmsrmZYH1olJXmsr1olL1olJXmsrmZYH1olL1olJXmsrmZYH1olL1olL0nFf1olJXmsrmZYH1olJXmsq8dZb1olJXmsrmZYH1olJXmspXmspXmsr1olL1olJXmsrmZYH1olJXmsr1olL1olJXmsrmZYH1olL1olLeaIVXmsrmZYH1olL1olL1olJXmsrmZYH1olLna31Xmsr1olJXmsr1olJXmsrmZYH1olLqoVr1olJXmsr1olJXmsrmZYH1olL1olKkfaPobXvviGabgadXmsqThKuofKHmZ4Dobnr1olJXmsr1olJXmspXmsr1olJXmsrfZ4TuhWn1olL1olJXmsqBi7X1olJXmspZmslbmMhbmsdemsVfl8ZgmsNim8Jpk8F0m7R4m7F5nLB6jbh7jbiDirOEibOGnKaMhq+PnaCVg6qWg6qegKaff6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s/sSRs2w7ovVHKtjrX2pd7ZMlTxAYfBAL9jiDwfLkq55Tm7ifhMlTGPyCAs7RFRhn47JnlcB9RM5T97ASuZXIcVNuUDIndpDbdsfrqsOppeXl5Y+XVKdjFCTh+zGaVuj0d9zy05PPK3QzBamxdwtTCrzyg/2Rvf2EstUjordGwa/kx9mSJLr8mLLtCW8HHGJc2R5hS219IiF6PnTusOqcMl57gm0Z8kanKMAQg0qSyuZfn7zItsbGyO9QlnxY0eCuD1XL2ys/MsrQhltE7Ug0uFOzufJFE2PxBo/YAx8XPPdDwWN0MrDRYIZF0mSMKCNHgaIVFoBbNoLJ7tEQDKxGF0kcLQimojCZopv0OkNOyWCCg9XMVAi7ARJzQdM2QUh0gmBozjc3Skg6dSBRqDGYSUOu66Zg+I2fNZs/M3/f/Grl/XnyF1Gw3VKCez0PN5IUfFLqvgUN4C0qNqYs5YhPL+aVZYDE4IpUk57oSFnJm4FyCqqOE0jhY2SMyLFoo56zyo6becOS5UVDdj7Vih0zp+tcMhwRpBeLyqtIjlJKAIZSbI8SGSF3k0pA3mR5tHuwPFoa7N7reoq2bqCsAk1HqCu5uvI1n6JuRXI+S1Mco54YmYTwcn6Aeic+kssXi8XpXC4V3t7/ADuTNKaQJdScAAAAAElFTkSuQmCC
140
- [binder-link]: https://notebooks.gesis.org/binder/v2/gh/r5py/r5py/stable?urlpath=tree/docs/user-guide/user-manual/quickstart.md
141
- [build-status-badge]: https://github.com/r5py/r5py/actions/workflows/build-merged-pull-requests.yml/badge.svg
142
- [build-status-link]: https://github.com/r5py/r5py/actions/workflows/build-merged-pull-requests.yml
141
+ [binder-link]: https://mybinder.org/v2/gh/r5py/r5py/stable?urlpath=tree/docs/user-guide/user-manual/quickstart.md
143
142
  [coverage-badge]: https://codecov.io/gh/r5py/r5py/branch/main/graph/badge.svg?token=WG8RBMZBK6
144
143
  [coverage-link]: https://codecov.io/gh/r5py/r5py
145
144
  [doi-badge]: https://zenodo.org/badge/DOI/10.5281/zenodo.7060437.svg
@@ -152,6 +151,8 @@ your project better.
152
151
  [rtd-status-link]: https://r5py.readthedocs.io/
153
152
  [stable-version-badge]: https://img.shields.io/pypi/v/r5py?label=Stable
154
153
  [stable-version-link]: https://github.com/r5py/r5py/releases
154
+ [test-status-badge]: https://github.com/r5py/r5py/actions/workflows/test.yml/badge.svg
155
+ [test-status-link]: https://github.com/r5py/r5py/actions/workflows/test.yml
155
156
 
156
157
  <!-- (2) other links -->
157
158
  [conda-create-env-from-yml]: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-from-an-environment-yml-file
@@ -1,14 +1,13 @@
1
- r5py/__init__.py,sha256=MV46XISYFXQYhHJIKvovjoTPa6M6ieXZ51n476ICD9o,552
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=6IQpvStxKeNxflizfRWh05USpdM18KBSB3UZ8Z_cGY4,1124
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=wTNx2NT3-GCEvDyz0e-_YYkVWtpE66dg2IlXTA1gI-4,23234
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.0.dev12.dist-info/LICENSE,sha256=VAnuGDX1TPylSN9G2xLa-urDpj_SQwn-qqs068dx4tk,51
44
- r5py-1.0.0.dev12.dist-info/METADATA,sha256=Cg9sdKWe_X9uWYictLSxarmK1QqNCDlhXJXhUoRAbv0,9971
45
- r5py-1.0.0.dev12.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
46
- r5py-1.0.0.dev12.dist-info/top_level.txt,sha256=fOH1R85dkNDOI7jkg-lIsl5CQIO4fE5X868K9dTqs9U,5
47
- r5py-1.0.0.dev12.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.2)
2
+ Generator: setuptools (76.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
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")