huff 1.5.6__tar.gz → 1.5.7__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.6 → huff-1.5.7}/PKG-INFO +3 -5
  2. {huff-1.5.6 → huff-1.5.7}/README.md +2 -4
  3. {huff-1.5.6 → huff-1.5.7}/huff/models.py +28 -2
  4. {huff-1.5.6 → huff-1.5.7}/huff/tests/tests_huff.py +2 -2
  5. {huff-1.5.6 → huff-1.5.7}/huff.egg-info/PKG-INFO +3 -5
  6. {huff-1.5.6 → huff-1.5.7}/setup.py +1 -1
  7. {huff-1.5.6 → huff-1.5.7}/MANIFEST.in +0 -0
  8. {huff-1.5.6 → huff-1.5.7}/huff/__init__.py +0 -0
  9. {huff-1.5.6 → huff-1.5.7}/huff/gistools.py +0 -0
  10. {huff-1.5.6 → huff-1.5.7}/huff/ors.py +0 -0
  11. {huff-1.5.6 → huff-1.5.7}/huff/osm.py +0 -0
  12. {huff-1.5.6 → huff-1.5.7}/huff/tests/__init__.py +0 -0
  13. {huff-1.5.6 → huff-1.5.7}/huff/tests/data/Haslach.cpg +0 -0
  14. {huff-1.5.6 → huff-1.5.7}/huff/tests/data/Haslach.dbf +0 -0
  15. {huff-1.5.6 → huff-1.5.7}/huff/tests/data/Haslach.prj +0 -0
  16. {huff-1.5.6 → huff-1.5.7}/huff/tests/data/Haslach.qmd +0 -0
  17. {huff-1.5.6 → huff-1.5.7}/huff/tests/data/Haslach.shp +0 -0
  18. {huff-1.5.6 → huff-1.5.7}/huff/tests/data/Haslach.shx +0 -0
  19. {huff-1.5.6 → huff-1.5.7}/huff/tests/data/Haslach_new_supermarket.cpg +0 -0
  20. {huff-1.5.6 → huff-1.5.7}/huff/tests/data/Haslach_new_supermarket.dbf +0 -0
  21. {huff-1.5.6 → huff-1.5.7}/huff/tests/data/Haslach_new_supermarket.prj +0 -0
  22. {huff-1.5.6 → huff-1.5.7}/huff/tests/data/Haslach_new_supermarket.qmd +0 -0
  23. {huff-1.5.6 → huff-1.5.7}/huff/tests/data/Haslach_new_supermarket.shp +0 -0
  24. {huff-1.5.6 → huff-1.5.7}/huff/tests/data/Haslach_new_supermarket.shx +0 -0
  25. {huff-1.5.6 → huff-1.5.7}/huff/tests/data/Haslach_supermarkets.cpg +0 -0
  26. {huff-1.5.6 → huff-1.5.7}/huff/tests/data/Haslach_supermarkets.dbf +0 -0
  27. {huff-1.5.6 → huff-1.5.7}/huff/tests/data/Haslach_supermarkets.prj +0 -0
  28. {huff-1.5.6 → huff-1.5.7}/huff/tests/data/Haslach_supermarkets.qmd +0 -0
  29. {huff-1.5.6 → huff-1.5.7}/huff/tests/data/Haslach_supermarkets.shp +0 -0
  30. {huff-1.5.6 → huff-1.5.7}/huff/tests/data/Haslach_supermarkets.shx +0 -0
  31. {huff-1.5.6 → huff-1.5.7}/huff/tests/data/Wieland2015.xlsx +0 -0
  32. {huff-1.5.6 → huff-1.5.7}/huff.egg-info/SOURCES.txt +0 -0
  33. {huff-1.5.6 → huff-1.5.7}/huff.egg-info/dependency_links.txt +0 -0
  34. {huff-1.5.6 → huff-1.5.7}/huff.egg-info/requires.txt +0 -0
  35. {huff-1.5.6 → huff-1.5.7}/huff.egg-info/top_level.txt +0 -0
  36. {huff-1.5.6 → huff-1.5.7}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huff
3
- Version: 1.5.6
3
+ Version: 1.5.7
4
4
  Summary: huff: Huff Model Market Area Analysis
5
5
  Author: Thomas Wieland
6
6
  Author-email: geowieland@googlemail.com
@@ -18,11 +18,9 @@ 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.6
21
+ ## Updates v1.5.7
22
22
  - Extensions:
23
- - gistools.distance_matrix() now includes line geometry output
24
- - Other
25
- - map_with_basemap() now belongs to huff.gistools
23
+ - InteractionMatrix.summary(), MCIModel.summary() and HuffModel.summary() now return metadata and model fit (if available)
26
24
 
27
25
 
28
26
  ## Features
@@ -10,11 +10,9 @@ 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.6
13
+ ## Updates v1.5.7
14
14
  - Extensions:
15
- - gistools.distance_matrix() now includes line geometry output
16
- - Other
17
- - map_with_basemap() now belongs to huff.gistools
15
+ - InteractionMatrix.summary(), MCIModel.summary() and HuffModel.summary() now return metadata and model fit (if available)
18
16
 
19
17
 
20
18
  ## 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.5
8
- # Last update: 2025-07-26 13:42
7
+ # Version: 1.5.6
8
+ # Last update: 2025-08-01 14:00
9
9
  # Copyright (c) 2025 Thomas Wieland
10
10
  #-----------------------------------------------------------------------
11
11
 
@@ -590,6 +590,12 @@ class InteractionMatrix:
590
590
  if interaction_matrix_metadata["fit"]["function"] == "huff_ml_fit":
591
591
  print("Fit method " + interaction_matrix_metadata["fit"]["method"] + " (Converged: " + str(interaction_matrix_metadata["fit"]["minimize_success"]) + ")")
592
592
 
593
+ return [
594
+ customer_origins_metadata,
595
+ supply_locations_metadata,
596
+ interaction_matrix_metadata
597
+ ]
598
+
593
599
  def transport_costs(
594
600
  self,
595
601
  network: bool = True,
@@ -1642,6 +1648,8 @@ class HuffModel:
1642
1648
 
1643
1649
  print("----------------------------------")
1644
1650
 
1651
+ huff_modelfit = None
1652
+
1645
1653
  if interaction_matrix_metadata != {} and "fit" in interaction_matrix_metadata and interaction_matrix_metadata["fit"]["function"] is not None:
1646
1654
  print("Parameter estimation")
1647
1655
  print("Fit function " + interaction_matrix_metadata["fit"]["function"])
@@ -1682,6 +1690,13 @@ class HuffModel:
1682
1690
 
1683
1691
  print("----------------------------------")
1684
1692
 
1693
+ return [
1694
+ customer_origins_metadata,
1695
+ supply_locations_metadata,
1696
+ interaction_matrix_metadata,
1697
+ huff_modelfit
1698
+ ]
1699
+
1685
1700
  def mci_fit(
1686
1701
  self,
1687
1702
  cols: list = ["A_j", "t_ij"],
@@ -2341,6 +2356,7 @@ class MCIModel:
2341
2356
 
2342
2357
  customer_origins_metadata = interaction_matrix.get_customer_origins().get_metadata()
2343
2358
  supply_locations_metadata = interaction_matrix.get_supply_locations().get_metadata()
2359
+ interaction_matrix_metadata = interaction_matrix.get_metadata()
2344
2360
 
2345
2361
  print("Multiplicative Competitive Interaction Model")
2346
2362
  print("--------------------------------------------")
@@ -2371,7 +2387,10 @@ class MCIModel:
2371
2387
 
2372
2388
  print("--------------------------------------------")
2373
2389
 
2390
+ mci_modelfit = None
2391
+
2374
2392
  mci_modelfit = self.modelfit()
2393
+
2375
2394
  if mci_modelfit is not None:
2376
2395
 
2377
2396
  print ("Goodness-of-fit for probabilities")
@@ -2402,6 +2421,13 @@ class MCIModel:
2402
2421
  print(APE_df.to_string(index=False))
2403
2422
 
2404
2423
  print("--------------------------------------------")
2424
+
2425
+ return [
2426
+ customer_origins_metadata,
2427
+ supply_locations_metadata,
2428
+ interaction_matrix_metadata,
2429
+ mci_modelfit
2430
+ ]
2405
2431
 
2406
2432
  def utility(
2407
2433
  self,
@@ -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.6
8
- # Last update: 2025-07-31 18:33
7
+ # Version: 1.5.7
8
+ # Last update: 2025-08-01 14:01
9
9
  # Copyright (c) 2025 Thomas Wieland
10
10
  #-----------------------------------------------------------------------
11
11
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huff
3
- Version: 1.5.6
3
+ Version: 1.5.7
4
4
  Summary: huff: Huff Model Market Area Analysis
5
5
  Author: Thomas Wieland
6
6
  Author-email: geowieland@googlemail.com
@@ -18,11 +18,9 @@ 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.6
21
+ ## Updates v1.5.7
22
22
  - Extensions:
23
- - gistools.distance_matrix() now includes line geometry output
24
- - Other
25
- - map_with_basemap() now belongs to huff.gistools
23
+ - InteractionMatrix.summary(), MCIModel.summary() and HuffModel.summary() now return metadata and model fit (if available)
26
24
 
27
25
 
28
26
  ## Features
@@ -7,7 +7,7 @@ def read_README():
7
7
 
8
8
  setup(
9
9
  name='huff',
10
- version='1.5.6',
10
+ version='1.5.7',
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