r5py 1.0.0.dev0__py3-none-any.whl → 1.0.0.dev1__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/travel_time_matrix.py +5 -6
- r5py/util/classpath.py +2 -2
- r5py/util/config.py +3 -3
- r5py/util/sample_data_set.py +4 -1
- {r5py-1.0.0.dev0.dist-info → r5py-1.0.0.dev1.dist-info}/METADATA +5 -7
- {r5py-1.0.0.dev0.dist-info → r5py-1.0.0.dev1.dist-info}/RECORD +10 -10
- {r5py-1.0.0.dev0.dist-info → r5py-1.0.0.dev1.dist-info}/WHEEL +1 -1
- {r5py-1.0.0.dev0.dist-info → r5py-1.0.0.dev1.dist-info}/LICENSE +0 -0
- {r5py-1.0.0.dev0.dist-info → r5py-1.0.0.dev1.dist-info}/top_level.txt +0 -0
r5py/__init__.py
CHANGED
r5py/r5/travel_time_matrix.py
CHANGED
|
@@ -134,17 +134,16 @@ class TravelTimeMatrix(BaseTravelTimeMatrix):
|
|
|
134
134
|
travel time.
|
|
135
135
|
"""
|
|
136
136
|
# First, create an empty DataFrame (this forces column types)
|
|
137
|
-
|
|
138
|
-
"from_id": pandas.Series(dtype=str),
|
|
139
|
-
"to_id": pandas.Series(dtype=str),
|
|
140
|
-
}
|
|
141
|
-
travel_time_columns.update(
|
|
137
|
+
od_matrix = pandas.DataFrame(
|
|
142
138
|
{
|
|
139
|
+
"from_id": pandas.Series(dtype=str),
|
|
140
|
+
"to_id": pandas.Series(dtype=str),
|
|
141
|
+
}
|
|
142
|
+
| {
|
|
143
143
|
f"travel_time_p{percentile:d}": pandas.Series(dtype=float)
|
|
144
144
|
for percentile in self.request.percentiles
|
|
145
145
|
}
|
|
146
146
|
)
|
|
147
|
-
od_matrix = pandas.DataFrame(travel_time_columns)
|
|
148
147
|
|
|
149
148
|
# first assign columns with correct length (`to_id`),
|
|
150
149
|
# only then fill `from_id` (it’s a scalar)
|
r5py/util/classpath.py
CHANGED
|
@@ -18,9 +18,9 @@ from .warnings import R5pyWarning
|
|
|
18
18
|
|
|
19
19
|
# update these to use a newer R5 version if no R5 available locally
|
|
20
20
|
R5_JAR_URL = (
|
|
21
|
-
"https://github.com/r5py/r5/releases/download/v7.
|
|
21
|
+
"https://github.com/r5py/r5/releases/download/v7.3-r5py/r5-v7.3-r5py-all.jar"
|
|
22
22
|
)
|
|
23
|
-
R5_JAR_SHA256 = "
|
|
23
|
+
R5_JAR_SHA256 = "cb1ccad370757ba229cf17f1bedc9549ff5d77fdbb44b7a3058104fe1f243f53"
|
|
24
24
|
# ---
|
|
25
25
|
|
|
26
26
|
|
r5py/util/config.py
CHANGED
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
"""Handle configuration options and command line options."""
|
|
4
4
|
|
|
5
5
|
import functools
|
|
6
|
+
import importlib.resources
|
|
6
7
|
import os
|
|
7
8
|
import pathlib
|
|
8
9
|
import sys
|
|
9
10
|
import tempfile
|
|
10
11
|
|
|
11
12
|
import configargparse
|
|
12
|
-
import importlib_resources
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
__all__ = ["Config"]
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
PACKAGE = __package__.split(".")[0]
|
|
19
|
-
CONFIG_FILE_TEMPLATE =
|
|
19
|
+
CONFIG_FILE_TEMPLATE = importlib.resources.files(f"{PACKAGE}.util").joinpath(
|
|
20
20
|
f"{PACKAGE}.yml.template"
|
|
21
21
|
)
|
|
22
22
|
|
|
@@ -116,7 +116,7 @@ class Config:
|
|
|
116
116
|
try:
|
|
117
117
|
destination_path.parent.mkdir(parents=True, exist_ok=True)
|
|
118
118
|
|
|
119
|
-
with
|
|
119
|
+
with importlib.resources.as_file(CONFIG_FILE_TEMPLATE) as template:
|
|
120
120
|
destination_path.write_text(template.read_text())
|
|
121
121
|
|
|
122
122
|
except (
|
r5py/util/sample_data_set.py
CHANGED
|
@@ -20,7 +20,10 @@ class SampleDataSet(pathlib.Path):
|
|
|
20
20
|
|
|
21
21
|
# decide which kind of pathlib.Path we are (Windows, Unix, ...)
|
|
22
22
|
# cf. https://stackoverflow.com/a/66613346/463864
|
|
23
|
-
|
|
23
|
+
try:
|
|
24
|
+
_flavour = type(pathlib.Path())._flavour
|
|
25
|
+
except AttributeError: # Python>=3.13
|
|
26
|
+
pass
|
|
24
27
|
|
|
25
28
|
_CACHE_DIR = pathlib.Path(config.CACHE_DIR) / "sampledata"
|
|
26
29
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: r5py
|
|
3
|
-
Version: 1.0.0.
|
|
3
|
+
Version: 1.0.0.dev1
|
|
4
4
|
Summary: Python wrapper for the R5 routing analysis engine
|
|
5
5
|
Author: Willem Klumpenhouwer, Marcus Sairava, Rafael Pereira, Henrikki Tenkanen
|
|
6
6
|
Author-email: Christoph Fink <christoph.fink@helsinki.fi>
|
|
@@ -21,7 +21,6 @@ Requires-Dist: ConfigArgParse
|
|
|
21
21
|
Requires-Dist: filelock
|
|
22
22
|
Requires-Dist: fiona
|
|
23
23
|
Requires-Dist: geopandas
|
|
24
|
-
Requires-Dist: importlib-resources
|
|
25
24
|
Requires-Dist: joblib
|
|
26
25
|
Requires-Dist: jpype1
|
|
27
26
|
Requires-Dist: numpy
|
|
@@ -35,14 +34,14 @@ Requires-Dist: contextily; extra == "docs"
|
|
|
35
34
|
Requires-Dist: folium; extra == "docs"
|
|
36
35
|
Requires-Dist: GitPython; extra == "docs"
|
|
37
36
|
Requires-Dist: h3>=4.0.0b2; extra == "docs"
|
|
38
|
-
Requires-Dist:
|
|
37
|
+
Requires-Dist: jupyterlab_myst; extra == "docs"
|
|
39
38
|
Requires-Dist: mapclassify; extra == "docs"
|
|
40
39
|
Requires-Dist: matplotlib; extra == "docs"
|
|
41
40
|
Requires-Dist: myst-nb; extra == "docs"
|
|
42
41
|
Requires-Dist: nbsphinx; extra == "docs"
|
|
43
42
|
Requires-Dist: pybtex-apa7-style; extra == "docs"
|
|
44
43
|
Requires-Dist: r5py.sampledata.helsinki>=0.1.1; extra == "docs"
|
|
45
|
-
Requires-Dist: r5py.sampledata.
|
|
44
|
+
Requires-Dist: r5py.sampledata.sao_paulo>=0.1.1; extra == "docs"
|
|
46
45
|
Requires-Dist: shapely; extra == "docs"
|
|
47
46
|
Requires-Dist: sphinx; extra == "docs"
|
|
48
47
|
Requires-Dist: sphinx-book-theme; extra == "docs"
|
|
@@ -52,11 +51,10 @@ Requires-Dist: sphinxcontrib-images; extra == "docs"
|
|
|
52
51
|
Provides-Extra: tests
|
|
53
52
|
Requires-Dist: pyarrow; extra == "tests"
|
|
54
53
|
Requires-Dist: pytest; extra == "tests"
|
|
55
|
-
Requires-Dist: pytest-asyncio; extra == "tests"
|
|
56
54
|
Requires-Dist: pytest-cov; extra == "tests"
|
|
57
55
|
Requires-Dist: pytest-lazy-fixtures; extra == "tests"
|
|
58
56
|
Requires-Dist: r5py.sampledata.helsinki>=0.1.1; extra == "tests"
|
|
59
|
-
Requires-Dist: r5py.sampledata.
|
|
57
|
+
Requires-Dist: r5py.sampledata.sao_paulo>=0.1.1; extra == "tests"
|
|
60
58
|
Requires-Dist: typing-extensions; extra == "tests"
|
|
61
59
|
|
|
62
60
|
<img class="r5py_logo" align="right" src="https://github.com/r5py/r5py/raw/main/docs/_static/images/r5py_blue.svg" alt="r5py logo" style="width:180px; max-width:30vW;">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
r5py/__init__.py,sha256=
|
|
1
|
+
r5py/__init__.py,sha256=dLvwVcoFrF66EZHPanirHxeT4j92KpifEbQ2ApAp_Os,517
|
|
2
2
|
r5py/__main__.py,sha256=Wvn0ChD7E-dCSZ8b8k_HhHG0KMOk0qMNFkijGuSH3-0,81
|
|
3
3
|
r5py/r5/__init__.py,sha256=N_55XlwBDUtljFEHIDYSFb4pPPHXsHdPfF-8qu9IjhQ,1071
|
|
4
4
|
r5py/r5/access_leg.py,sha256=W3GfPEpqmWD1c4xipd6UcVIaBC-yb6srGCZV30E2dPY,293
|
|
@@ -15,14 +15,14 @@ r5py/r5/transit_layer.py,sha256=vVo_o10yDCzpujOQ99xdzmznwVjAbANjdDflQy2QOpI,3223
|
|
|
15
15
|
r5py/r5/transit_leg.py,sha256=R0Qc9YLMEXYu51NIdo7Q0bdmpYIJf5irEDXWrW6pZWE,221
|
|
16
16
|
r5py/r5/transport_mode.py,sha256=zHSqXb0R4oyjTp069CzO69IgoCKt0nmOAwsSy272rGo,3675
|
|
17
17
|
r5py/r5/transport_network.py,sha256=d4PPBEBk3t2QbUI5KMS9zM-a4s4E4zEYOHIV6txCnYg,10777
|
|
18
|
-
r5py/r5/travel_time_matrix.py,sha256=
|
|
18
|
+
r5py/r5/travel_time_matrix.py,sha256=jrOt4n9kfShYGF5dou7xgKCEw8FBfyqc0wZeQZqD4wQ,7968
|
|
19
19
|
r5py/r5/trip.py,sha256=AqhlhgYaGRL5jVzV08BhsqgWxe8f4wAb5HMP8HIGwc8,2944
|
|
20
20
|
r5py/r5/trip_leg.py,sha256=9E4vZpBEJCXIVqAXWJvnPloC-upEASKhFnjiuen8i8A,6495
|
|
21
21
|
r5py/r5/trip_planner.py,sha256=qUzzTA3PHcHkN7kNzAywhLFQswGDyPSgtkkvPZ9eJVQ,23819
|
|
22
22
|
r5py/util/__init__.py,sha256=S-agt-08twU7hFIH1_x_VjuNC-WHfP6844n0xM0E8t8,714
|
|
23
23
|
r5py/util/camel_to_snake_case.py,sha256=zj5F3PNBvsuS6vqN4USeeo8NI-3hnscGhwun0G95AK0,673
|
|
24
|
-
r5py/util/classpath.py,sha256=
|
|
25
|
-
r5py/util/config.py,sha256=
|
|
24
|
+
r5py/util/classpath.py,sha256=b16xL94pDxTpc0vrf68R1nvZHnHqZXGcFJaN36eW3wc,2773
|
|
25
|
+
r5py/util/config.py,sha256=sAT3jJI69KH80fQsy9xi9-PkEUoOabLvLys9djRBils,4667
|
|
26
26
|
r5py/util/contains_gtfs_data.py,sha256=ooX4hfVDKK0aqX1MI46jSFZ7dZ6riyXaORrgF6PUFrk,1211
|
|
27
27
|
r5py/util/data_validation.py,sha256=H5Mcp2nS4vu5RKym20mPnGpl-8d0SDchzDRJBrrL6WE,1039
|
|
28
28
|
r5py/util/environment.py,sha256=cbSM8TKTuhbXsTIIB06pMtydBOiqLkitF2Lj2asVTho,1082
|
|
@@ -31,12 +31,12 @@ r5py/util/good_enough_equidistant_crs.py,sha256=1aqJLghNwcd2FbLfODcht_6pyOEqhsrE
|
|
|
31
31
|
r5py/util/jvm.py,sha256=NCwoYLDznXydcIRAZl2kzUQA6D6NCvzjVG74pm6ioR0,5027
|
|
32
32
|
r5py/util/memory_footprint.py,sha256=p8efCUs4UXRg6P1GrRxVs71m7SpEw2mASoz6PVTRvgQ,4672
|
|
33
33
|
r5py/util/parse_int_date.py,sha256=JmnV8TwdUdUp3kSp2e73ZSxCbRyqv2FmQzNt0I_MsM0,667
|
|
34
|
-
r5py/util/sample_data_set.py,sha256=
|
|
34
|
+
r5py/util/sample_data_set.py,sha256=aqUCx6drWD-WbCauewO4EzgOGnFr35mAZt-YHlqb92k,2463
|
|
35
35
|
r5py/util/snake_to_camel_case.py,sha256=uJ5hTCVDUEmIxTyy4LGFTbpGC_rtnjDZVQ2vmVRTQ4k,485
|
|
36
36
|
r5py/util/validating_requests_session.py,sha256=sH5FgpS9eGax5DG2qA2GrGuiwgTJgh8tKsZ9OiXKmvk,1807
|
|
37
37
|
r5py/util/warnings.py,sha256=CvxKWKlNO_p3riB4SkNqbU5AGPsaY_3-OzqaBObE3B8,139
|
|
38
|
-
r5py-1.0.0.
|
|
39
|
-
r5py-1.0.0.
|
|
40
|
-
r5py-1.0.0.
|
|
41
|
-
r5py-1.0.0.
|
|
42
|
-
r5py-1.0.0.
|
|
38
|
+
r5py-1.0.0.dev1.dist-info/LICENSE,sha256=VAnuGDX1TPylSN9G2xLa-urDpj_SQwn-qqs068dx4tk,51
|
|
39
|
+
r5py-1.0.0.dev1.dist-info/METADATA,sha256=ASMyJG4MtpW0fFfJqyXGYU8OgukawhubuBEaxLVyl4c,9956
|
|
40
|
+
r5py-1.0.0.dev1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
41
|
+
r5py-1.0.0.dev1.dist-info/top_level.txt,sha256=fOH1R85dkNDOI7jkg-lIsl5CQIO4fE5X868K9dTqs9U,5
|
|
42
|
+
r5py-1.0.0.dev1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|