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.
Files changed (36) hide show
  1. {huff-1.5.4 → huff-1.5.5}/PKG-INFO +4 -4
  2. {huff-1.5.4 → huff-1.5.5}/README.md +3 -3
  3. {huff-1.5.4 → huff-1.5.5}/huff/models.py +11 -5
  4. {huff-1.5.4 → huff-1.5.5}/huff.egg-info/PKG-INFO +4 -4
  5. {huff-1.5.4 → huff-1.5.5}/setup.py +1 -1
  6. {huff-1.5.4 → huff-1.5.5}/MANIFEST.in +0 -0
  7. {huff-1.5.4 → huff-1.5.5}/huff/__init__.py +0 -0
  8. {huff-1.5.4 → huff-1.5.5}/huff/gistools.py +0 -0
  9. {huff-1.5.4 → huff-1.5.5}/huff/ors.py +0 -0
  10. {huff-1.5.4 → huff-1.5.5}/huff/osm.py +0 -0
  11. {huff-1.5.4 → huff-1.5.5}/huff/tests/__init__.py +0 -0
  12. {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach.cpg +0 -0
  13. {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach.dbf +0 -0
  14. {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach.prj +0 -0
  15. {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach.qmd +0 -0
  16. {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach.shp +0 -0
  17. {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach.shx +0 -0
  18. {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_new_supermarket.cpg +0 -0
  19. {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_new_supermarket.dbf +0 -0
  20. {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_new_supermarket.prj +0 -0
  21. {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_new_supermarket.qmd +0 -0
  22. {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_new_supermarket.shp +0 -0
  23. {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_new_supermarket.shx +0 -0
  24. {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_supermarkets.cpg +0 -0
  25. {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_supermarkets.dbf +0 -0
  26. {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_supermarkets.prj +0 -0
  27. {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_supermarkets.qmd +0 -0
  28. {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_supermarkets.shp +0 -0
  29. {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Haslach_supermarkets.shx +0 -0
  30. {huff-1.5.4 → huff-1.5.5}/huff/tests/data/Wieland2015.xlsx +0 -0
  31. {huff-1.5.4 → huff-1.5.5}/huff/tests/tests_huff.py +0 -0
  32. {huff-1.5.4 → huff-1.5.5}/huff.egg-info/SOURCES.txt +0 -0
  33. {huff-1.5.4 → huff-1.5.5}/huff.egg-info/dependency_links.txt +0 -0
  34. {huff-1.5.4 → huff-1.5.5}/huff.egg-info/requires.txt +0 -0
  35. {huff-1.5.4 → huff-1.5.5}/huff.egg-info/top_level.txt +0 -0
  36. {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.4
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.4
21
+ ## Updates v1.5.5
22
22
  - Bugfixes:
23
- - Use of check_vars() is now optional (default: True)
24
- - Correction of args argument when calling minimize() in huff_ml_fit()
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.4
13
+ ## Updates v1.5.5
14
14
  - Bugfixes:
15
- - Use of check_vars() is now optional (default: True)
16
- - Correction of args argument when calling minimize() in huff_ml_fit()
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.4
8
- # Last update: 2025-07-18 18: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.4
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.4
21
+ ## Updates v1.5.5
22
22
  - Bugfixes:
23
- - Use of check_vars() is now optional (default: True)
24
- - Correction of args argument when calling minimize() in huff_ml_fit()
23
+ - Removing i = j cases in InteractionMatrix.hansen()
24
+ - InteractionMatrix.utility(): Check for utility column
25
25
 
26
26
 
27
27
  ## Features
@@ -7,7 +7,7 @@ def read_README():
7
7
 
8
8
  setup(
9
9
  name='huff',
10
- version='1.5.4',
10
+ version='1.5.5',
11
11
  description='huff: Huff Model Market Area Analysis',
12
12
  packages=find_packages(include=["huff", "huff.tests"]),
13
13
  include_package_data=True,
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