bw-functional 0b79__tar.gz → 0b82__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 (23) hide show
  1. {bw_functional-0b79/bw_functional.egg-info → bw_functional-0b82}/PKG-INFO +1 -2
  2. {bw_functional-0b79 → bw_functional-0b82}/bw_functional/allocation.py +1 -1
  3. {bw_functional-0b79 → bw_functional-0b82}/bw_functional/node_classes.py +1 -1
  4. {bw_functional-0b79 → bw_functional-0b82/bw_functional.egg-info}/PKG-INFO +1 -2
  5. {bw_functional-0b79 → bw_functional-0b82}/bw_functional.egg-info/requires.txt +0 -1
  6. {bw_functional-0b79 → bw_functional-0b82}/pyproject.toml +0 -1
  7. {bw_functional-0b79 → bw_functional-0b82}/LICENSE +0 -0
  8. {bw_functional-0b79 → bw_functional-0b82}/MANIFEST.in +0 -0
  9. {bw_functional-0b79 → bw_functional-0b82}/README.md +0 -0
  10. {bw_functional-0b79 → bw_functional-0b82}/bw_functional/__init__.py +0 -0
  11. {bw_functional-0b79 → bw_functional-0b82}/bw_functional/convert.py +0 -0
  12. {bw_functional-0b79 → bw_functional-0b82}/bw_functional/database.py +0 -0
  13. {bw_functional-0b79 → bw_functional-0b82}/bw_functional/edge_classes.py +0 -0
  14. {bw_functional-0b79 → bw_functional-0b82}/bw_functional.egg-info/SOURCES.txt +0 -0
  15. {bw_functional-0b79 → bw_functional-0b82}/bw_functional.egg-info/dependency_links.txt +0 -0
  16. {bw_functional-0b79 → bw_functional-0b82}/bw_functional.egg-info/top_level.txt +0 -0
  17. {bw_functional-0b79 → bw_functional-0b82}/setup.cfg +0 -0
  18. {bw_functional-0b79 → bw_functional-0b82}/setup.py +0 -0
  19. {bw_functional-0b79 → bw_functional-0b82}/tests/test_allocation.py +0 -0
  20. {bw_functional-0b79 → bw_functional-0b82}/tests/test_database.py +0 -0
  21. {bw_functional-0b79 → bw_functional-0b82}/tests/test_mf_node.py +0 -0
  22. {bw_functional-0b79 → bw_functional-0b82}/tests/test_process_node.py +0 -0
  23. {bw_functional-0b79 → bw_functional-0b82}/tests/test_product_node.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bw-functional
3
- Version: 0b79
3
+ Version: 0b82
4
4
  Summary: Code for handling multifunctional activities in Brightway
5
5
  Author-email: Chris Mutel <cmutel@gmail.com>, Marin Visscher <m.r.visscher@cml.leidenuniv.nl>
6
6
  Maintainer-email: Marin Visscher <m.r.visscher@cml.leidenuniv.nl>
@@ -23,7 +23,6 @@ Requires-Dist: blinker
23
23
  Requires-Dist: bw2data>=4.0.1
24
24
  Requires-Dist: bw2io>=0.9.1
25
25
  Requires-Dist: bw_processing>=0.9.6
26
- Requires-Dist: numpy<2
27
26
  Provides-Extra: testing
28
27
  Requires-Dist: bw-functional; extra == "testing"
29
28
  Requires-Dist: bw2calc>=2.0.1; extra == "testing"
@@ -101,7 +101,7 @@ def get_property_value(
101
101
 
102
102
  props = product.get("properties")
103
103
 
104
- if not props:
104
+ if not props or not isinstance(props, dict):
105
105
  raise KeyError(f"Product {product} from process {product.processor} doesn't have properties")
106
106
 
107
107
  prop = props.get(property_label)
@@ -257,7 +257,7 @@ class Process(MFActivity):
257
257
  Returns:
258
258
  set[str]: A list of property names available in the process.
259
259
  """
260
- properties = [prod["properties"] for prod in self.products()]
260
+ properties = [prod.get("properties", {}) for prod in self.products()]
261
261
  property_names = [set(prop.keys()) for prop in properties]
262
262
  common_properties = set.intersection(*property_names) if property_names else set()
263
263
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bw-functional
3
- Version: 0b79
3
+ Version: 0b82
4
4
  Summary: Code for handling multifunctional activities in Brightway
5
5
  Author-email: Chris Mutel <cmutel@gmail.com>, Marin Visscher <m.r.visscher@cml.leidenuniv.nl>
6
6
  Maintainer-email: Marin Visscher <m.r.visscher@cml.leidenuniv.nl>
@@ -23,7 +23,6 @@ Requires-Dist: blinker
23
23
  Requires-Dist: bw2data>=4.0.1
24
24
  Requires-Dist: bw2io>=0.9.1
25
25
  Requires-Dist: bw_processing>=0.9.6
26
- Requires-Dist: numpy<2
27
26
  Provides-Extra: testing
28
27
  Requires-Dist: bw-functional; extra == "testing"
29
28
  Requires-Dist: bw2calc>=2.0.1; extra == "testing"
@@ -2,7 +2,6 @@ blinker
2
2
  bw2data>=4.0.1
3
3
  bw2io>=0.9.1
4
4
  bw_processing>=0.9.6
5
- numpy<2
6
5
 
7
6
  [dev]
8
7
  build
@@ -33,7 +33,6 @@ dependencies = [
33
33
  "bw2data>=4.0.1",
34
34
  "bw2io>=0.9.1",
35
35
  "bw_processing>=0.9.6",
36
- "numpy<2",
37
36
  ]
38
37
 
39
38
  [project.urls]
File without changes
File without changes
File without changes
File without changes
File without changes