Closed romainsacchi closed 3 months ago
Closing as resolved in #1280
[!NOTE] This issue has been implemented in the new release of Activity Browser 🚀 (version 2.10.0), you can get the new version by updating Activity Browser.
Do you want to be notified of new releases of Activity Browser? Subscribe to our updates mailing list ✉.
🤖 beep boop! I'm a bot and this message was an automated action. If updating does not make sense for this issue, just ignore this.
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'] andself.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