ObjectNat 1.0.0__py3-none-any.whl → 1.0.1__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 ObjectNat might be problematic. Click here for more details.

objectnat/_version.py CHANGED
@@ -1 +1 @@
1
- VERSION = "1.0.0"
1
+ VERSION = "1.0.1"
@@ -74,11 +74,11 @@ def _process_pt_data(
74
74
  nodes: gpd.GeoDataFrame, edges: gpd.GeoDataFrame, graph_type: str
75
75
  ) -> tuple[gpd.GeoDataFrame, gpd.GeoDataFrame] | tuple[None, None]:
76
76
  """Process public transport data if available."""
77
- if "desc" in nodes.columns and "stop" in nodes["desc"].unique():
78
- pt_nodes = nodes[nodes["desc"] == "stop"]
77
+ if "type" in nodes.columns and "platform" in nodes["type"].unique():
78
+ pt_nodes = nodes[(nodes["type"] != "platform") & (~nodes["type"].isna())]
79
79
  if graph_type == "intermodal":
80
80
  edges = edges[~edges["type"].isin(["walk", "boarding"])]
81
- pt_nodes = pt_nodes[["desc", "route", "geometry"]]
81
+ pt_nodes = pt_nodes[["type", "route", "geometry"]]
82
82
  edges = edges[["type", "route", "geometry"]]
83
83
  return pt_nodes, edges
84
84
  return None, None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ObjectNat
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: ObjectNat is an open-source library created for geospatial analysis created by IDU team
5
5
  License: BSD-3-Clause
6
6
  Author: DDonnyy
@@ -16,7 +16,6 @@ Requires-Dist: networkx (>=3.4.2,<4.0.0)
16
16
  Requires-Dist: numpy (>=2.1.3,<3.0.0)
17
17
  Requires-Dist: pandarallel (>=1.6.5,<2.0.0)
18
18
  Requires-Dist: pandas (>=2.2.0,<3.0.0)
19
- Requires-Dist: pytest (>=8.3.5,<9.0.0)
20
19
  Requires-Dist: scikit-learn (>=1.4.0,<2.0.0)
21
20
  Requires-Dist: tqdm (>=4.66.2,<5.0.0)
22
21
  Description-Content-Type: text/markdown
@@ -1,13 +1,13 @@
1
1
  objectnat/__init__.py,sha256=OnDvrLPLEeYIE_9qOVYgMc-PkRzIqShtGxirguEXiRU,260
2
2
  objectnat/_api.py,sha256=5TvsMjWjiR7kFIWnfRJxngWOrC_eKQ7Pt-TSMpjqzI0,595
3
3
  objectnat/_config.py,sha256=fGPsMZqA8FVBBOINxRiTFkOOZsNLyablM5G0tdKeQB4,1306
4
- objectnat/_version.py,sha256=lzGFsymf0DtA_1oAZcPbeQ557iY-1BRkekhfA2qaFh8,18
4
+ objectnat/_version.py,sha256=9C8U_kMX0x98w3CUW1G2vm12pYBsE-TE72pXihbWYqU,18
5
5
  objectnat/methods/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  objectnat/methods/coverage_zones/__init__.py,sha256=cdXjW041ysfIlr4sGQ_Xa2nok4tHfMJTEf8pem-0m-U,95
7
7
  objectnat/methods/coverage_zones/graph_coverage.py,sha256=3nVZekDAmbz2ZzxsayX9KIgudlSZF3OnZ9g5kFmVt8o,4797
8
8
  objectnat/methods/coverage_zones/radius_voronoi.py,sha256=H4_lvSc770TO6-xq6EzgWuUf00N5vYCMO3X6UJhZYAQ,1735
9
9
  objectnat/methods/isochrones/__init__.py,sha256=bDfUZPbS3_PuTEB2QcRTYjvyJtUvjbDhAw6QJvD_ih4,90
10
- objectnat/methods/isochrones/isochrone_utils.py,sha256=KubqeysYetj1dbWJ_WGrewfM_jWYmRFjj8AWz8aEc1I,4825
10
+ objectnat/methods/isochrones/isochrone_utils.py,sha256=XdgjmGgeNfgXa3ERkkGEEzrzF5TTkrI6U8hxFAFHRkg,4861
11
11
  objectnat/methods/isochrones/isochrones.py,sha256=GoaFGiLSsG-RRXA5jtij3zsrwxH5ThKDh8XexZ3rD3k,14046
12
12
  objectnat/methods/noise/__init__.py,sha256=6JV586JdOqE0OUFUyxsrCoGuDxRuB-6ItSA5CRuFdsE,152
13
13
  objectnat/methods/noise/noise_exceptions.py,sha256=nTav5kp6RNpi0kxD9cMULTApOuvAu9wEiX28fkLAnOc,634
@@ -26,7 +26,7 @@ objectnat/methods/utils/graph_utils.py,sha256=M983Hy1CXRIGg_q71tW0HVB8ZS4ZpDK5I2
26
26
  objectnat/methods/utils/math_utils.py,sha256=Vc8U15LtFOwgIt1YSOSKWYOIiW_1XLuMGOa6ejBpEUk,839
27
27
  objectnat/methods/visibility/__init__.py,sha256=Mx1kaoV-yfQUxlMkgNF4AhjSweFEJMEx3NBis5OM3mA,161
28
28
  objectnat/methods/visibility/visibility_analysis.py,sha256=fDIZ5S7oR-5ZEsjZPFexb7oFw-1X6uj0A4xuP3pX354,21183
29
- objectnat-1.0.0.dist-info/LICENSE.txt,sha256=yPEioMfTd7JAQgAU6J13inS1BSjwd82HFlRSoIb4My8,1498
30
- objectnat-1.0.0.dist-info/METADATA,sha256=ybm0Wwz002c0AWq9qJw6g6ZTveQB4yZJLekYC3kB70I,8079
31
- objectnat-1.0.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
32
- objectnat-1.0.0.dist-info/RECORD,,
29
+ objectnat-1.0.1.dist-info/LICENSE.txt,sha256=yPEioMfTd7JAQgAU6J13inS1BSjwd82HFlRSoIb4My8,1498
30
+ objectnat-1.0.1.dist-info/METADATA,sha256=2cgaqgB4Q4sXRbrBkVrzOKUIXEjIOejwS9f9kJIuxxE,8040
31
+ objectnat-1.0.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
32
+ objectnat-1.0.1.dist-info/RECORD,,