From 4a0393f73f1f9d9f49f450ccb56b953d638ccb74 Mon Sep 17 00:00:00 2001 From: Brandon Kuczenski Date: Thu, 24 Oct 2024 11:24:36 -0700 Subject: [PATCH] Fetch remote contexts for remote LCIA Results --- antelope_core/catalog_query.py | 3 ++- setup.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/antelope_core/catalog_query.py b/antelope_core/catalog_query.py index fca2a81..36f691a 100644 --- a/antelope_core/catalog_query.py +++ b/antelope_core/catalog_query.py @@ -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: diff --git a/setup.py b/setup.py index f085215..5d0451d 100644 --- a/setup.py +++ b/setup.py @@ -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", @@ -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.