huff 1.5.4__tar.gz → 1.5.5__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.
- {huff-1.5.4 → huff-1.5.5}/PKG-INFO +4 -4
- {huff-1.5.4 → huff-1.5.5}/README.md +3 -3
- {huff-1.5.4 → huff-1.5.5}/huff/models.py +11 -5
- {huff-1.5.4 → huff-1.5.5}/huff.egg-info/PKG-INFO +4 -4
- {huff-1.5.4 → huff-1.5.5}/setup.py +1 -1
- {huff-1.5.4 → huff-1.5.5}/MANIFEST.in +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/__init__.py +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/gistools.py +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/ors.py +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/osm.py +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/__init__.py +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach.cpg +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach.dbf +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach.prj +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach.qmd +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach.shp +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach.shx +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_new_supermarket.cpg +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_new_supermarket.dbf +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_new_supermarket.prj +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_new_supermarket.qmd +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_new_supermarket.shp +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_new_supermarket.shx +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_supermarkets.cpg +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_supermarkets.dbf +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_supermarkets.prj +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_supermarkets.qmd +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_supermarkets.shp +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_supermarkets.shx +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Wieland2015.xlsx +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff/tests/tests_huff.py +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff.egg-info/SOURCES.txt +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff.egg-info/dependency_links.txt +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff.egg-info/requires.txt +0 -0
- {huff-1.5.4 → huff-1.5.5}/huff.egg-info/top_level.txt +0 -0
- {huff-1.5.4 → huff-1.5.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huff
|
3
|
-
Version: 1.5.
|
3
|
+
Version: 1.5.5
|
4
4
|
Summary: huff: Huff Model Market Area Analysis
|
5
5
|
Author: Thomas Wieland
|
6
6
|
Author-email: geowieland@googlemail.com
|
@@ -18,10 +18,10 @@ Thomas Wieland [ORCID](https://orcid.org/0000-0001-5168-9846) [EMail](mailto:geo
|
|
18
18
|
See the /tests directory for usage examples of most of the included functions.
|
19
19
|
|
20
20
|
|
21
|
-
## Updates v1.5.
|
21
|
+
## Updates v1.5.5
|
22
22
|
- Bugfixes:
|
23
|
-
-
|
24
|
-
-
|
23
|
+
- Removing i = j cases in InteractionMatrix.hansen()
|
24
|
+
- InteractionMatrix.utility(): Check for utility column
|
25
25
|
|
26
26
|
|
27
27
|
## Features
|
@@ -10,10 +10,10 @@ Thomas Wieland [ORCID](https://orcid.org/0000-0001-5168-9846) [EMail](mailto:geo
|
|
10
10
|
See the /tests directory for usage examples of most of the included functions.
|
11
11
|
|
12
12
|
|
13
|
-
## Updates v1.5.
|
13
|
+
## Updates v1.5.5
|
14
14
|
- Bugfixes:
|
15
|
-
-
|
16
|
-
-
|
15
|
+
- Removing i = j cases in InteractionMatrix.hansen()
|
16
|
+
- InteractionMatrix.utility(): Check for utility column
|
17
17
|
|
18
18
|
|
19
19
|
## Features
|
@@ -4,8 +4,8 @@
|
|
4
4
|
# Author: Thomas Wieland
|
5
5
|
# ORCID: 0000-0001-5168-9846
|
6
6
|
# mail: geowieland@googlemail.com
|
7
|
-
# Version: 1.5.
|
8
|
-
# Last update: 2025-07-
|
7
|
+
# Version: 1.5.5
|
8
|
+
# Last update: 2025-07-26 13:42
|
9
9
|
# Copyright (c) 2025 Thomas Wieland
|
10
10
|
#-----------------------------------------------------------------------
|
11
11
|
|
@@ -944,15 +944,21 @@ class InteractionMatrix:
|
|
944
944
|
|
945
945
|
def hansen(
|
946
946
|
self,
|
947
|
-
from_origins: bool = True
|
947
|
+
from_origins: bool = True,
|
948
|
+
exclude_self: bool = True,
|
949
|
+
check_df_vars: bool = True
|
948
950
|
):
|
949
951
|
|
950
952
|
interaction_matrix_df = self.interaction_matrix_df
|
951
953
|
|
954
|
+
if exclude_self:
|
955
|
+
|
956
|
+
interaction_matrix_df = interaction_matrix_df[interaction_matrix_df["i"] != interaction_matrix_df["j"]]
|
957
|
+
|
952
958
|
if from_origins:
|
953
959
|
|
954
|
-
if interaction_matrix_df["U_ij"].isna().all():
|
955
|
-
self.utility()
|
960
|
+
if "U_ij" not in interaction_matrix_df.columns or interaction_matrix_df["U_ij"].isna().all():
|
961
|
+
self.utility(check_df_vars = check_df_vars)
|
956
962
|
interaction_matrix_df = self.interaction_matrix_df
|
957
963
|
|
958
964
|
hansen_df = pd.DataFrame(interaction_matrix_df.groupby("i")["U_ij"].sum()).reset_index()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huff
|
3
|
-
Version: 1.5.
|
3
|
+
Version: 1.5.5
|
4
4
|
Summary: huff: Huff Model Market Area Analysis
|
5
5
|
Author: Thomas Wieland
|
6
6
|
Author-email: geowieland@googlemail.com
|
@@ -18,10 +18,10 @@ Thomas Wieland [ORCID](https://orcid.org/0000-0001-5168-9846) [EMail](mailto:geo
|
|
18
18
|
See the /tests directory for usage examples of most of the included functions.
|
19
19
|
|
20
20
|
|
21
|
-
## Updates v1.5.
|
21
|
+
## Updates v1.5.5
|
22
22
|
- Bugfixes:
|
23
|
-
-
|
24
|
-
-
|
23
|
+
- Removing i = j cases in InteractionMatrix.hansen()
|
24
|
+
- InteractionMatrix.utility(): Check for utility column
|
25
25
|
|
26
26
|
|
27
27
|
## Features
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|