BioSTEAMDevelopmentGroup / Bioindustrial-Park

BioSTEAM's Premier Repository for Biorefinery Models and Results
MIT License
37 stars 18 forks source link

'MainFlowsheet' object is not subscriptable when calling simulate_fermentation_improvement() #43

Closed cantwell closed 1 year ago

cantwell commented 1 year ago

`In [13]: la.simulate_fermentation_improvement() Traceback (most recent call last):

File "C:\Users\xx\AppData\Local\Temp\ipykernel_14892\1231637583.py", line 1, in la.simulate_fermentation_improvement()

File "C:\Users\xx\Anaconda3\envs\biosteam\lib\site-packages\biorefineries\lactic__init__.py", line 122, in simulate_fermentation_improvement simulate_and_print(flowsheet)

File "C:\Users\xx\Anaconda3\envs\biosteam\lib\site-packages\biorefineries\lactic__init__.py", line 100, in simulate_and_print MPSP = funcs['simulate_get_MPSP']()

TypeError: 'MainFlowsheet' object is not subscriptable`

yalinli2 commented 1 year ago

@cantwell thanks for reporting this bug! I just pushed some updates in fdeeca2a81900ecf9ab8757268f4cdd9604804d5 to fix it, let me know if you still experience problems!

yalinli2 commented 1 year ago

closing the issue since it has been fixed