You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I have updated AB and still experience this issue
What happened?
When doing a MultiLCA, get_results_for_method in mlca.py tries to populate and return a pandas.DataFrame. However, when datasets share a similar name, reference product, and database (e.g., "market for A", "A", "some database", "DE" and "market for A", "A", "some database", "FR"), self.func_key_list does not differentiate them (while their respective location makes them different) and results in an inadequate length passed as index to the dataframe, leading to an error.
Concrete example:
Here: data in get_results_for_method equals
[[4.04511069 3.20535302]
[3.88548388 3.14680559]]
with a shape of (2, 2), while self.func_key_list equals
['market for lithium iron phosphate | lithium iron phosphate | super_db_14-04-2024 | 1.0']
and self.scenario_names equals
['remind - SSP2-Base - 2050', 'image - SSP2-RCP19 - 2048']
so the building of the dataframe fails because self.scenario_names x self.func_key_list does not equal the shape of data (2, 1 instead of 2,2), leading to:
ValueError: Shape of passed values is (2, 2), indices imply (1, 2)
Updating AB
What happened?
When doing a MultiLCA,
get_results_for_method
inmlca.py
tries to populate and return a pandas.DataFrame. However, when datasets share a similar name, reference product, and database (e.g., "market for A", "A", "some database", "DE" and "market for A", "A", "some database", "FR"),self.func_key_list
does not differentiate them (while their respective location makes them different) and results in an inadequate length passed as index to the dataframe, leading to an error.Concrete example:
Here:
data
inget_results_for_method
equals[[4.04511069 3.20535302]
[3.88548388 3.14680559]]
with a shape of (2, 2), while
self.func_key_list
equals['market for lithium iron phosphate | lithium iron phosphate | super_db_14-04-2024 | 1.0']
and
self.scenario_names
equals['remind - SSP2-Base - 2050', 'image - SSP2-RCP19 - 2048']
so the building of the dataframe fails because
self.scenario_names
xself.func_key_list
does not equal the shape ofdata
(2, 1 instead of 2,2), leading to:Relevant errors
No response
Operating system
MacOS
Conda environment
The text was updated successfully, but these errors were encountered: