ObjectNat 0.1.2__py3-none-any.whl → 0.1.4__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/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.1.2"
1
+ __version__ = "0.1.4"
2
2
 
3
3
  from dongraphio.enums import GraphType
4
4
 
@@ -2,6 +2,7 @@ from typing import Literal
2
2
 
3
3
  import geopandas as gpd
4
4
  import networkx as nx
5
+ import pandas as pd
5
6
  from dongraphio import GraphType
6
7
 
7
8
  from .isochrones import get_accessibility_isochrones
@@ -94,7 +95,11 @@ def get_isochrone_zone_coverage(
94
95
  """
95
96
  assert services.crs == city_graph.graph["crs"], "CRS not match"
96
97
  points = services.geometry.representative_point()
97
- isochrone_res = get_accessibility_isochrones(
98
+ iso, routes, stops = get_accessibility_isochrones(
98
99
  points, graph_type, weight_value, weight_type, city_graph, points.crs.to_epsg()
99
100
  )
100
- return isochrone_res
101
+ services_ = services.copy()
102
+ iso = gpd.GeoDataFrame(
103
+ pd.concat([iso.drop(columns=["point", "point_number"]), services_.drop(columns=["geometry"])], axis=1)
104
+ )
105
+ return iso, routes, stops
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ObjectNat
3
- Version: 0.1.2
3
+ Version: 0.1.4
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: Danila
@@ -11,7 +11,7 @@ Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: 3.10
12
12
  Classifier: Programming Language :: Python :: 3.11
13
13
  Classifier: Programming Language :: Python :: 3.12
14
- Requires-Dist: dongraphio (>=0.3.11,<0.4.0)
14
+ Requires-Dist: dongraphio (>=0.3.13,<0.4.0)
15
15
  Requires-Dist: geopandas (>=0.14.3,<0.15.0)
16
16
  Requires-Dist: joblib (>=1.4.2,<2.0.0)
17
17
  Requires-Dist: networkit (>=11.0,<12.0)
@@ -1,15 +1,15 @@
1
- objectnat/__init__.py,sha256=vbnM9NjfYViiSGt2bLQggK59v4cAR_W9bmgTOiJAn9I,767
1
+ objectnat/__init__.py,sha256=WBtzpmO794hPwfs6U6weiDRGtWUp8ugYo9mXs-5xmkw,767
2
2
  objectnat/methods/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  objectnat/methods/adjacency_matrix.py,sha256=_FQ8itnW7RKphbEBPECco2KWrYzO8JbwpLbCL0VqNVY,1406
4
4
  objectnat/methods/balanced_buildings.py,sha256=WC8Dc4xCpkW3qok1GtQ-Zrs6ybJE7y2VF1divgM2t8s,2864
5
5
  objectnat/methods/cluster_points_in_polygons.py,sha256=-zbk6akPHK9cQriCGg16m-F_a8_mUAgt2InQvdQzYZ0,4650
6
- objectnat/methods/coverage_zones.py,sha256=kvHLLl_w7LogUwFN0Ix_96iIVKTu4GeHCNSst51M8QU,3288
6
+ objectnat/methods/coverage_zones.py,sha256=6vxk_bxbudpO89D1vhvg2djVzrtnvSF1NzcEfLUQwmw,3495
7
7
  objectnat/methods/demands.py,sha256=DEDYDjBzv-THy5qzcI-Th8WNP4snFC_sQFKQY6qrJp0,1633
8
8
  objectnat/methods/isochrones.py,sha256=GG_VMN2u15TBlHyDtb4UVeRRcEMZcDFcTk5RreMkv-4,2291
9
9
  objectnat/methods/osm_graph.py,sha256=_ksyHVaAKU_sSIc1bBssozCl0vax0138nDWJtYW3mM4,1047
10
10
  objectnat/methods/provision.py,sha256=D_w_oExujb3TCGZibVvlZkuaJKaTdPmSrpJHQEtbJ2A,5341
11
11
  objectnat/methods/visibility_analysis.py,sha256=TsWyptPthHTklN2HuXJbEj5k9RkxnA9MhbRAcaMQieE,20662
12
- objectnat-0.1.2.dist-info/LICENSE.txt,sha256=yPEioMfTd7JAQgAU6J13inS1BSjwd82HFlRSoIb4My8,1498
13
- objectnat-0.1.2.dist-info/METADATA,sha256=eI6KNiz66hrW3vtrJ1u_NbigMh0FTUo73XXC3U2UfYw,4930
14
- objectnat-0.1.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
15
- objectnat-0.1.2.dist-info/RECORD,,
12
+ objectnat-0.1.4.dist-info/LICENSE.txt,sha256=yPEioMfTd7JAQgAU6J13inS1BSjwd82HFlRSoIb4My8,1498
13
+ objectnat-0.1.4.dist-info/METADATA,sha256=AYUdOjpgKQuxm0wxkM52fOL-DM9qoei6xzUqGvWusNg,4930
14
+ objectnat-0.1.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
15
+ objectnat-0.1.4.dist-info/RECORD,,