ObjectNat 1.2.0__tar.gz → 1.2.1__tar.gz

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.

Files changed (38) hide show
  1. {objectnat-1.2.0 → objectnat-1.2.1}/LICENSE.txt +28 -28
  2. objectnat-1.2.1/PKG-INFO +115 -0
  3. objectnat-1.2.1/README.md +92 -0
  4. {objectnat-1.2.0 → objectnat-1.2.1}/pyproject.toml +72 -68
  5. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/__init__.py +9 -13
  6. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/_api.py +14 -14
  7. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/_config.py +47 -47
  8. objectnat-1.2.1/src/objectnat/_version.py +1 -0
  9. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/coverage_zones/__init__.py +3 -3
  10. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/coverage_zones/graph_coverage.py +98 -108
  11. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/coverage_zones/radius_voronoi_coverage.py +37 -45
  12. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/coverage_zones/stepped_coverage.py +126 -142
  13. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/isochrones/__init__.py +1 -1
  14. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/isochrones/isochrone_utils.py +167 -167
  15. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/isochrones/isochrones.py +262 -299
  16. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/noise/__init__.py +3 -4
  17. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/noise/noise_init_data.py +10 -10
  18. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/noise/noise_reduce.py +155 -155
  19. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/noise/noise_simulation.py +452 -440
  20. objectnat-1.2.1/src/objectnat/methods/noise/noise_simulation_simplified.py +209 -0
  21. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/point_clustering/__init__.py +1 -1
  22. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/point_clustering/cluster_points_in_polygons.py +115 -116
  23. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/provision/__init__.py +1 -1
  24. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/provision/provision.py +117 -110
  25. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/provision/provision_exceptions.py +59 -59
  26. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/provision/provision_model.py +337 -337
  27. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/utils/__init__.py +1 -1
  28. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/utils/geom_utils.py +173 -173
  29. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/utils/graph_utils.py +306 -320
  30. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/utils/math_utils.py +32 -32
  31. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/visibility/__init__.py +6 -6
  32. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/visibility/visibility_analysis.py +470 -511
  33. objectnat-1.2.0/PKG-INFO +0 -148
  34. objectnat-1.2.0/README.md +0 -124
  35. objectnat-1.2.0/src/objectnat/_version.py +0 -1
  36. objectnat-1.2.0/src/objectnat/methods/noise/noise_exceptions.py +0 -14
  37. objectnat-1.2.0/src/objectnat/methods/noise/noise_simulation_simplified.py +0 -135
  38. {objectnat-1.2.0 → objectnat-1.2.1}/src/objectnat/methods/__init__.py +0 -0
@@ -1,28 +1,28 @@
1
- BSD 3-Clause License
2
-
3
- Copyright (c) 2023, iduprojects
4
-
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are met:
7
-
8
- 1. Redistributions of source code must retain the above copyright notice, this
9
- list of conditions and the following disclaimer.
10
-
11
- 2. Redistributions in binary form must reproduce the above copyright notice,
12
- this list of conditions and the following disclaimer in the documentation
13
- and/or other materials provided with the distribution.
14
-
15
- 3. Neither the name of the copyright holder nor the names of its
16
- contributors may be used to endorse or promote products derived from
17
- this software without specific prior written permission.
18
-
19
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2023, iduprojects
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,115 @@
1
+ Metadata-Version: 2.1
2
+ Name: ObjectNat
3
+ Version: 1.2.1
4
+ Summary: ObjectNat is an open-source library created for geospatial analysis created by IDU team
5
+ License: BSD-3-Clause
6
+ Author: DDonnyy
7
+ Author-email: 63115678+DDonnyy@users.noreply.github.com
8
+ Requires-Python: >=3.10,<3.13
9
+ Classifier: License :: OSI Approved :: BSD License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Requires-Dist: geopandas (>=1.0.1,<2.0.0)
15
+ Requires-Dist: loguru (>=0.7.3,<0.8.0)
16
+ Requires-Dist: networkx (>=3.4.2,<4.0.0)
17
+ Requires-Dist: numpy (>=2.1.3,<3.0.0)
18
+ Requires-Dist: pandarallel (>=1.6.5,<2.0.0)
19
+ Requires-Dist: pandas (>=2.2.0,<3.0.0)
20
+ Requires-Dist: scikit-learn (>=1.4.0,<2.0.0)
21
+ Requires-Dist: tqdm (>=4.66.2,<5.0.0)
22
+ Description-Content-Type: text/markdown
23
+
24
+ # ObjectNat
25
+
26
+ [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
27
+ [![PyPI version](https://img.shields.io/pypi/v/objectnat.svg)](https://pypi.org/project/objectnat/)
28
+ [![CI](https://github.com/DDonnyy/ObjectNat/actions/workflows/ci_pipeline.yml/badge.svg)](https://github.com/DDonnyy/ObjecNat/actions/workflows/ci_pipeline.yml)
29
+ [![codecov](https://codecov.io/gh/DDonnyy/ObjectNat/graph/badge.svg?token=K6JFSJ02GU)](https://codecov.io/gh/DDonnyy/ObjectNat)
30
+ [![License](https://img.shields.io/badge/license-BSD--3--Clause-blue.svg)](https://opensource.org/licenses/MIT)
31
+
32
+ - [РИДМИ (Russian)](README_ru.md)
33
+ <p align="center">
34
+ <img src="https://github.com/user-attachments/assets/ed0f226e-1728-4659-9e21-b4d499e703cd" alt="logo" width="400">
35
+ </p>
36
+
37
+ #### **ObjectNat** is an open-source library created for geospatial analysis created by **IDU team**
38
+
39
+ ---
40
+
41
+ ## Features and How to Use
42
+
43
+ Each feature is accompanied by a Jupyter notebook example and full documentation.
44
+
45
+ 1. **[Isochrones and Transport Accessibility](./examples/isochrone_generator.ipynb)**
46
+ Analyze areas reachable within a given time along a transport network.
47
+ 📄 [See documentation](https://ddonnyy.github.io/ObjectNat/latest/usage/isochrones.html)
48
+
49
+ 2. **[Coverage Zones](./examples/coverage_zones.ipynb)**
50
+ Build zones of reachability for each point using routing or simple radius.
51
+ 📄 [See documentation](https://ddonnyy.github.io/ObjectNat/latest/usage/coverage.html)
52
+
53
+ 3. **[Service Provision Analysis](./examples/calculate_provision.ipynb)**
54
+ Evaluate service availability and model demand-supply balance.
55
+ 📄 [See documentation](https://ddonnyy.github.io/ObjectNat/latest/usage/provision.html)
56
+
57
+ 4. **[Visibility Analysis](./examples/visibility_analysis.ipynb)**
58
+ Estimate visibility to nearby buildings from selected points.
59
+ 📄 [See documentation](https://ddonnyy.github.io/ObjectNat/latest/usage/visibility.html)
60
+
61
+ 5. **[Noise Simulation](./examples/noise_simulation.ipynb)**
62
+ Simulate noise propagation considering obstacles and environment.
63
+ 📄 [See documentation](https://ddonnyy.github.io/ObjectNat/latest/usage/noise.html)
64
+ 🔗 [Detailed theory in the Wiki](https://github.com/DDonnyy/ObjectNat/wiki/Noise-simulation)
65
+
66
+ 6. **[Point Clusterization](./examples/point_clusterization.ipynb)**
67
+ Group nearby points into clusters and analyze service composition.
68
+ 📄 [See documentation](https://ddonnyy.github.io/ObjectNat/latest/usage/clustering.html)
69
+
70
+ ---
71
+
72
+ ## City graphs
73
+
74
+ To ensure optimal performance of ObjectNat's geospatial analysis functions, it's recommended to utilize urban graphs sourced from the [IduEdu](https://github.com/DDonnyy/IduEdu) library.
75
+ **IduEdu** is an open-source Python library designed for the creation and manipulation of complex city networks derived from OpenStreetMap data.
76
+
77
+ **IduEdu** can be installed with ``pip``:
78
+ ```
79
+ pip install IduEdu
80
+ ```
81
+ ---
82
+
83
+ ## Installation
84
+
85
+ **ObjectNat** can be installed with ``pip``:
86
+
87
+ ```
88
+ pip install ObjectNat
89
+ ```
90
+
91
+ ---
92
+
93
+ ### Configuration changes
94
+
95
+ ```python
96
+ from objectnat import config
97
+
98
+ config.change_logger_lvl('INFO') # To mute all debug msgs
99
+ config.set_enable_tqdm(False) # To mute all tqdm's progress bars
100
+ ```
101
+
102
+ ---
103
+
104
+ ## Contacts
105
+
106
+ - [NCCR](https://actcognitive.org/) - National Center for Cognitive Research
107
+ - [IDU](https://idu.itmo.ru/) - Institute of Design and Urban Studies
108
+ - [Natalya Chichkova](https://t.me/nancy_nat) - project manager
109
+ - [Danila Oleynikov (Donny)](https://t.me/ddonny_dd) - lead software engineer
110
+
111
+ ---
112
+
113
+ ## Publications
114
+
115
+ _Coming soon._
@@ -0,0 +1,92 @@
1
+ # ObjectNat
2
+
3
+ [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
4
+ [![PyPI version](https://img.shields.io/pypi/v/objectnat.svg)](https://pypi.org/project/objectnat/)
5
+ [![CI](https://github.com/DDonnyy/ObjectNat/actions/workflows/ci_pipeline.yml/badge.svg)](https://github.com/DDonnyy/ObjecNat/actions/workflows/ci_pipeline.yml)
6
+ [![codecov](https://codecov.io/gh/DDonnyy/ObjectNat/graph/badge.svg?token=K6JFSJ02GU)](https://codecov.io/gh/DDonnyy/ObjectNat)
7
+ [![License](https://img.shields.io/badge/license-BSD--3--Clause-blue.svg)](https://opensource.org/licenses/MIT)
8
+
9
+ - [РИДМИ (Russian)](README_ru.md)
10
+ <p align="center">
11
+ <img src="https://github.com/user-attachments/assets/ed0f226e-1728-4659-9e21-b4d499e703cd" alt="logo" width="400">
12
+ </p>
13
+
14
+ #### **ObjectNat** is an open-source library created for geospatial analysis created by **IDU team**
15
+
16
+ ---
17
+
18
+ ## Features and How to Use
19
+
20
+ Each feature is accompanied by a Jupyter notebook example and full documentation.
21
+
22
+ 1. **[Isochrones and Transport Accessibility](./examples/isochrone_generator.ipynb)**
23
+ Analyze areas reachable within a given time along a transport network.
24
+ 📄 [See documentation](https://ddonnyy.github.io/ObjectNat/latest/usage/isochrones.html)
25
+
26
+ 2. **[Coverage Zones](./examples/coverage_zones.ipynb)**
27
+ Build zones of reachability for each point using routing or simple radius.
28
+ 📄 [See documentation](https://ddonnyy.github.io/ObjectNat/latest/usage/coverage.html)
29
+
30
+ 3. **[Service Provision Analysis](./examples/calculate_provision.ipynb)**
31
+ Evaluate service availability and model demand-supply balance.
32
+ 📄 [See documentation](https://ddonnyy.github.io/ObjectNat/latest/usage/provision.html)
33
+
34
+ 4. **[Visibility Analysis](./examples/visibility_analysis.ipynb)**
35
+ Estimate visibility to nearby buildings from selected points.
36
+ 📄 [See documentation](https://ddonnyy.github.io/ObjectNat/latest/usage/visibility.html)
37
+
38
+ 5. **[Noise Simulation](./examples/noise_simulation.ipynb)**
39
+ Simulate noise propagation considering obstacles and environment.
40
+ 📄 [See documentation](https://ddonnyy.github.io/ObjectNat/latest/usage/noise.html)
41
+ 🔗 [Detailed theory in the Wiki](https://github.com/DDonnyy/ObjectNat/wiki/Noise-simulation)
42
+
43
+ 6. **[Point Clusterization](./examples/point_clusterization.ipynb)**
44
+ Group nearby points into clusters and analyze service composition.
45
+ 📄 [See documentation](https://ddonnyy.github.io/ObjectNat/latest/usage/clustering.html)
46
+
47
+ ---
48
+
49
+ ## City graphs
50
+
51
+ To ensure optimal performance of ObjectNat's geospatial analysis functions, it's recommended to utilize urban graphs sourced from the [IduEdu](https://github.com/DDonnyy/IduEdu) library.
52
+ **IduEdu** is an open-source Python library designed for the creation and manipulation of complex city networks derived from OpenStreetMap data.
53
+
54
+ **IduEdu** can be installed with ``pip``:
55
+ ```
56
+ pip install IduEdu
57
+ ```
58
+ ---
59
+
60
+ ## Installation
61
+
62
+ **ObjectNat** can be installed with ``pip``:
63
+
64
+ ```
65
+ pip install ObjectNat
66
+ ```
67
+
68
+ ---
69
+
70
+ ### Configuration changes
71
+
72
+ ```python
73
+ from objectnat import config
74
+
75
+ config.change_logger_lvl('INFO') # To mute all debug msgs
76
+ config.set_enable_tqdm(False) # To mute all tqdm's progress bars
77
+ ```
78
+
79
+ ---
80
+
81
+ ## Contacts
82
+
83
+ - [NCCR](https://actcognitive.org/) - National Center for Cognitive Research
84
+ - [IDU](https://idu.itmo.ru/) - Institute of Design and Urban Studies
85
+ - [Natalya Chichkova](https://t.me/nancy_nat) - project manager
86
+ - [Danila Oleynikov (Donny)](https://t.me/ddonny_dd) - lead software engineer
87
+
88
+ ---
89
+
90
+ ## Publications
91
+
92
+ _Coming soon._
@@ -1,69 +1,73 @@
1
- [tool.poetry]
2
- name = "ObjectNat"
3
- version = "1.2.0"
4
- description = "ObjectNat is an open-source library created for geospatial analysis created by IDU team"
5
- license = "BSD-3-Clause"
6
- authors = ["DDonnyy <63115678+DDonnyy@users.noreply.github.com>"]
7
- readme = "README.md"
8
-
9
- packages = [{ include = "objectnat", from = "src" }]
10
-
11
- [tool.poetry.dependencies]
12
- python = ">=3.10,<3.13"
13
- numpy = "^2.1.3"
14
- pandas = "^2.2.0"
15
- geopandas = "^1.0.1"
16
- tqdm = "^4.66.2"
17
- pandarallel = "^1.6.5"
18
- networkx = "^3.4.2"
19
- scikit-learn = "^1.4.0"
20
- loguru = "^0.7.3"
21
-
22
- [tool.poetry.group.dev.dependencies]
23
- iduedu = "^0.5.0"
24
- pyarrow = "^19.0.1"
25
- black = "^24.2.0"
26
- pylint = "^3.0.3"
27
- isort = "^5.13.2"
28
- jupyter = "^1.0.0"
29
- pytest = "^8.3.5"
30
- pytest-cov = "^6.0.0"
31
- pre-commit = "^4.2.0"
32
- folium = "^0.19.5"
33
- matplotlib = "^3.10.1"
34
- mapclassify = "^2.8.1"
35
-
36
- [build-system]
37
- requires = ["poetry-core"]
38
- build-backend = "poetry.core.masonry.api"
39
-
40
- [tool.black]
41
- line-length = 120
42
- target-version = ['py310']
43
-
44
- [tool.pylint.format]
45
- max-line-length = 120
46
- expected-line-ending-format = "LF"
47
- max-locals = 20
48
- extension-pkg-allow-list = ["networkit"]
49
- disable = [
50
- "duplicate-code",
51
- "too-many-positional-arguments",
52
- "missing-module-docstring",
53
- "missing-function-docstring",
54
- "too-many-locals",
55
- "too-many-branches",
56
- "too-many-statements",
57
- "too-many-arguments",
58
- "cyclic-import"
59
- ]
60
-
61
- [tool.isort]
62
- multi_line_output = 3
63
- include_trailing_comma = true
64
- force_grid_wrap = 0
65
- use_parentheses = true
66
- ensure_newline_before_comments = true
67
- line_length = 120
68
- split_on_trailing_comma = true
1
+ [tool.poetry]
2
+ name = "ObjectNat"
3
+ version = "1.2.1"
4
+ description = "ObjectNat is an open-source library created for geospatial analysis created by IDU team"
5
+ license = "BSD-3-Clause"
6
+ authors = ["DDonnyy <63115678+DDonnyy@users.noreply.github.com>"]
7
+ readme = "README.md"
8
+
9
+ packages = [{ include = "objectnat", from = "src" }]
10
+
11
+ [tool.poetry.dependencies]
12
+ python = ">=3.10,<3.13"
13
+ numpy = "^2.1.3"
14
+ pandas = "^2.2.0"
15
+ geopandas = "^1.0.1"
16
+ tqdm = "^4.66.2"
17
+ pandarallel = "^1.6.5"
18
+ networkx = "^3.4.2"
19
+ scikit-learn = "^1.4.0"
20
+ loguru = "^0.7.3"
21
+
22
+ [tool.poetry.group.dev.dependencies]
23
+ iduedu = "^0.5.0"
24
+ pyarrow = "^19.0.1"
25
+ black = "^24.2.0"
26
+ pylint = "^3.0.3"
27
+ isort = "^5.13.2"
28
+ jupyter = "^1.0.0"
29
+ pytest = "^8.3.5"
30
+ pytest-cov = "^6.0.0"
31
+ pre-commit = "^4.2.0"
32
+ folium = "^0.19.5"
33
+ matplotlib = "^3.10.1"
34
+ mapclassify = "^2.8.1"
35
+ mkdocs = "^1.6.1"
36
+ mkdocstrings = {extras = ["python"], version = "^0.29.1"}
37
+ mkdocs-material = "^9.6.14"
38
+ mike = "^2.1.3"
39
+
40
+ [build-system]
41
+ requires = ["poetry-core"]
42
+ build-backend = "poetry.core.masonry.api"
43
+
44
+ [tool.black]
45
+ line-length = 120
46
+ target-version = ['py310']
47
+
48
+ [tool.pylint.format]
49
+ max-line-length = 120
50
+ expected-line-ending-format = "LF"
51
+ max-locals = 20
52
+ extension-pkg-allow-list = ["networkit"]
53
+ disable = [
54
+ "duplicate-code",
55
+ "too-many-positional-arguments",
56
+ "missing-module-docstring",
57
+ "missing-function-docstring",
58
+ "too-many-locals",
59
+ "too-many-branches",
60
+ "too-many-statements",
61
+ "too-many-arguments",
62
+ "cyclic-import"
63
+ ]
64
+
65
+ [tool.isort]
66
+ multi_line_output = 3
67
+ include_trailing_comma = true
68
+ force_grid_wrap = 0
69
+ use_parentheses = true
70
+ ensure_newline_before_comments = true
71
+ line_length = 120
72
+ split_on_trailing_comma = true
69
73
  skip = ["__init__.py"]
@@ -1,13 +1,9 @@
1
- """
2
- ObjectNat
3
- ========
4
-
5
-
6
- ObjectNat is an open-source library created for geospatial analysis created by IDU team.
7
-
8
- Homepage https://github.com/DDonnyy/ObjectNat.
9
- """
10
-
11
- from ._config import config
12
- from ._api import *
13
- from ._version import VERSION as __version__
1
+ """
2
+ ObjectNat is an open-source library created for geospatial analysis created by IDU team.
3
+
4
+ Homepage https://github.com/DDonnyy/ObjectNat.
5
+ """
6
+
7
+ from ._config import config
8
+ from ._api import *
9
+ from ._version import VERSION as __version__
@@ -1,14 +1,14 @@
1
- # pylint: disable=unused-import,wildcard-import,unused-wildcard-import
2
-
3
- from .methods.coverage_zones import get_graph_coverage, get_radius_coverage, get_stepped_graph_coverage
4
- from .methods.isochrones import get_accessibility_isochrone_stepped, get_accessibility_isochrones
5
- from .methods.noise import calculate_simplified_noise_frame, simulate_noise
6
- from .methods.point_clustering import get_clusters_polygon
7
- from .methods.provision import clip_provision, get_service_provision, recalculate_links
8
- from .methods.utils import gdf_to_graph, graph_to_gdf
9
- from .methods.visibility import (
10
- calculate_visibility_catchment_area,
11
- get_visibilities_from_points,
12
- get_visibility,
13
- get_visibility_accurate,
14
- )
1
+ # pylint: disable=unused-import,wildcard-import,unused-wildcard-import
2
+
3
+ from .methods.coverage_zones import get_graph_coverage, get_radius_coverage, get_stepped_graph_coverage
4
+ from .methods.isochrones import get_accessibility_isochrone_stepped, get_accessibility_isochrones
5
+ from .methods.noise import calculate_simplified_noise_frame, simulate_noise
6
+ from .methods.point_clustering import get_clusters_polygon
7
+ from .methods.provision import clip_provision, get_service_provision, recalculate_links
8
+ from .methods.utils import gdf_to_graph, graph_to_gdf
9
+ from .methods.visibility import (
10
+ calculate_visibility_catchment_area,
11
+ get_visibilities_from_points,
12
+ get_visibility,
13
+ get_visibility_accurate,
14
+ )
@@ -1,47 +1,47 @@
1
- import sys
2
- from typing import Literal
3
-
4
- from loguru import logger
5
-
6
-
7
- class Config:
8
- """
9
- A configuration class to manage global settings for the application, such as Overpass API URL,
10
- timeouts, and logging options.
11
-
12
- Attributes
13
- ----------
14
- enable_tqdm_bar : bool
15
- Enables or disables progress bars (via tqdm). Defaults to True.
16
- logger : Logger
17
- Logging instance to handle application logging.
18
-
19
- Methods
20
- -------
21
- change_logger_lvl(lvl: Literal["TRACE", "DEBUG", "INFO", "WARN", "ERROR"])
22
- Changes the logging level to the specified value.
23
- set_enable_tqdm(enable: bool)
24
- Enables or disables progress bars in the application.
25
- """
26
-
27
- def __init__(
28
- self,
29
- enable_tqdm_bar=True,
30
- ):
31
- self.enable_tqdm_bar = enable_tqdm_bar
32
- self.logger = logger
33
- self.pandarallel_use_file_system = False
34
-
35
- def change_logger_lvl(self, lvl: Literal["TRACE", "DEBUG", "INFO", "WARN", "ERROR"]):
36
- self.logger.remove()
37
- self.logger.add(sys.stderr, level=lvl)
38
-
39
- def set_enable_tqdm(self, enable: bool):
40
- self.enable_tqdm_bar = enable
41
-
42
- def set_pandarallel_use_file_system(self, enable: bool):
43
- self.pandarallel_use_file_system = enable
44
-
45
-
46
- config = Config()
47
- config.change_logger_lvl("INFO")
1
+ import sys
2
+ from typing import Literal
3
+
4
+ from loguru import logger
5
+
6
+
7
+ class Config:
8
+ """
9
+ A configuration class to manage global settings for the application, such as Overpass API URL,
10
+ timeouts, and logging options.
11
+
12
+ Attributes
13
+ ----------
14
+ enable_tqdm_bar : bool
15
+ Enables or disables progress bars (via tqdm). Defaults to True.
16
+ logger : Logger
17
+ Logging instance to handle application logging.
18
+
19
+ Methods
20
+ -------
21
+ change_logger_lvl(lvl: Literal["TRACE", "DEBUG", "INFO", "WARN", "ERROR"])
22
+ Changes the logging level to the specified value.
23
+ set_enable_tqdm(enable: bool)
24
+ Enables or disables progress bars in the application.
25
+ """
26
+
27
+ def __init__(
28
+ self,
29
+ enable_tqdm_bar=True,
30
+ ):
31
+ self.enable_tqdm_bar = enable_tqdm_bar
32
+ self.logger = logger
33
+ self.pandarallel_use_file_system = False
34
+
35
+ def change_logger_lvl(self, lvl: Literal["TRACE", "DEBUG", "INFO", "WARN", "ERROR"]):
36
+ self.logger.remove()
37
+ self.logger.add(sys.stderr, level=lvl)
38
+
39
+ def set_enable_tqdm(self, enable: bool):
40
+ self.enable_tqdm_bar = enable
41
+
42
+ def set_pandarallel_use_file_system(self, enable: bool):
43
+ self.pandarallel_use_file_system = enable
44
+
45
+
46
+ config = Config()
47
+ config.change_logger_lvl("INFO")
@@ -0,0 +1 @@
1
+ VERSION = "1.2.1"
@@ -1,3 +1,3 @@
1
- from .graph_coverage import get_graph_coverage
2
- from .radius_voronoi_coverage import get_radius_coverage
3
- from .stepped_coverage import get_stepped_graph_coverage
1
+ from .graph_coverage import get_graph_coverage
2
+ from .radius_voronoi_coverage import get_radius_coverage
3
+ from .stepped_coverage import get_stepped_graph_coverage