Skip to content

Commit

Permalink
Fetch remote contexts for remote LCIA Results
Browse files Browse the repository at this point in the history
  • Loading branch information
bkuczenski committed Oct 24, 2024
1 parent e026c91 commit 4a0393f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion antelope_core/catalog_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,8 @@ def _result_from_model(self, process_ref, quantity, res_m: LciaResultModel):
value = d.result / d.factor.value
except ZeroDivisionError:
value = 0.0
cx = self._tm[tuple(d.factor.context)]
r_cx = self.get_context(d.factor.context)
cx = self._tm[r_cx]
try:
rq = self.get_canonical(d.exchange.quantity_ref)
except EntityNotFound:
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

VERSION = '0.3.4.3'
VERSION = '0.3.4.4'

requires = [
"synonym_dict>=0.2.4",
Expand All @@ -14,6 +14,7 @@
# optional: pylzma
"""
Version History
0.3.4.4 2024-10-24 - fetch remote contexts when reading in remote LCIA results.
0.3.4.3 2024-10-09 - fixed a flowables issue: gaseous Nitrogen | organic nitrogen. also removed a big data file.
0.3.4.1 2024-10-09 - fixed a flowables issue: PM2.5 and PM10 had become merged.
Expand Down

0 comments on commit 4a0393f

Please sign in to comment.