Scenario LCA failed
Updating AB
- [x] Yes, I have updated AB and still experience this issue
What happened?
I was trying to use the superstructure database I created using scenariolink in my LCA caluclation but I got the error saying scenario LCA failed, filtering unused flows removed all of the scenario data. Please see the attached picture
Relevant errors
Operating system
Windows 10
Conda environment
I have the same issue here. Have you found a way to resolve the issue, @OliverLyon ?
10:03:06 | INFO | Created LCA object 10:03:06 | INFO | Switching LCIA method 10:03:06 | ERROR | Traceback (most recent call last): File "C:\Users\20230777\AppData\Local\anaconda3\envs\ab\Lib\site-packages\activity_browser\bwutils\calculations.py", line 28, in do_LCA_calculations mlca = SuperstructureMLCA(cs_name, df) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\20230777\AppData\Local\anaconda3\envs\ab\Lib\site-packages\activity_browser\bwutils\superstructure\mlca.py", line 61, in init assert not df.empty, "Filtering unused flows removed all of the scenario data." ^^^^^^^^^^^^ AssertionError: Filtering unused flows removed all of the scenario data.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\20230777\AppData\Local\anaconda3\envs\ab\Lib\site-packages\activity_browser\layouts\tabs\LCA_results_tab.py", line 60, in generate_setup new_tab = LCAResultsSubTab(data, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\20230777\AppData\Local\anaconda3\envs\ab\Lib\site-packages\activity_browser\layouts\tabs\LCA_results_tabs.py", line 135, in init self.mlca, self.contributions, self.mc = calculations.do_LCA_calculations(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\20230777\AppData\Local\anaconda3\envs\ab\Lib\site-packages\activity_browser\bwutils\calculations.py", line 33, in do_LCA_calculations raise BW2CalcError("Scenario LCA failed.", str(e)).with_traceback( File "C:\Users\20230777\AppData\Local\anaconda3\envs\ab\Lib\site-packages\activity_browser\bwutils\calculations.py", line 28, in do_LCA_calculations mlca = SuperstructureMLCA(cs_name, df) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\20230777\AppData\Local\anaconda3\envs\ab\Lib\site-packages\activity_browser\bwutils\superstructure\mlca.py", line 61, in init assert not df.empty, "Filtering unused flows removed all of the scenario data." ^^^^^^^^^^^^ bw2calc.errors.BW2CalcError: ('Scenario LCA failed.', 'Filtering unused flows removed all of the scenario data.')