bw-functional 0b86__tar.gz → 0b87__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-0b86/bw_functional.egg-info → bw_functional-0b87}/PKG-INFO +1 -1
  2. {bw_functional-0b86 → bw_functional-0b87}/bw_functional/allocation.py +4 -0
  3. {bw_functional-0b86 → bw_functional-0b87/bw_functional.egg-info}/PKG-INFO +1 -1
  4. {bw_functional-0b86 → bw_functional-0b87}/LICENSE +0 -0
  5. {bw_functional-0b86 → bw_functional-0b87}/MANIFEST.in +0 -0
  6. {bw_functional-0b86 → bw_functional-0b87}/README.md +0 -0
  7. {bw_functional-0b86 → bw_functional-0b87}/bw_functional/__init__.py +0 -0
  8. {bw_functional-0b86 → bw_functional-0b87}/bw_functional/convert.py +0 -0
  9. {bw_functional-0b86 → bw_functional-0b87}/bw_functional/database.py +0 -0
  10. {bw_functional-0b86 → bw_functional-0b87}/bw_functional/edge_classes.py +0 -0
  11. {bw_functional-0b86 → bw_functional-0b87}/bw_functional/node_classes.py +0 -0
  12. {bw_functional-0b86 → bw_functional-0b87}/bw_functional.egg-info/SOURCES.txt +0 -0
  13. {bw_functional-0b86 → bw_functional-0b87}/bw_functional.egg-info/dependency_links.txt +0 -0
  14. {bw_functional-0b86 → bw_functional-0b87}/bw_functional.egg-info/requires.txt +0 -0
  15. {bw_functional-0b86 → bw_functional-0b87}/bw_functional.egg-info/top_level.txt +0 -0
  16. {bw_functional-0b86 → bw_functional-0b87}/pyproject.toml +0 -0
  17. {bw_functional-0b86 → bw_functional-0b87}/setup.cfg +0 -0
  18. {bw_functional-0b86 → bw_functional-0b87}/setup.py +0 -0
  19. {bw_functional-0b86 → bw_functional-0b87}/tests/test_allocation.py +0 -0
  20. {bw_functional-0b86 → bw_functional-0b87}/tests/test_database.py +0 -0
  21. {bw_functional-0b86 → bw_functional-0b87}/tests/test_mf_node.py +0 -0
  22. {bw_functional-0b86 → bw_functional-0b87}/tests/test_process_node.py +0 -0
  23. {bw_functional-0b86 → bw_functional-0b87}/tests/test_product_node.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bw-functional
3
- Version: 0b86
3
+ Version: 0b87
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>
@@ -48,6 +48,10 @@ def generic_allocation(
48
48
  # Include functions with non-positive substitution factor
49
49
  products.append(product)
50
50
 
51
+ if not products:
52
+ log.warning(f"No products to allocate in process {process}")
53
+ return
54
+
51
55
  # Calculate the total value for allocation
52
56
  total = sum([getter(product) for product in products])
53
57
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bw-functional
3
- Version: 0b86
3
+ Version: 0b87
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>
File without changes
File without changes
File without changes
File without changes
File without changes