BioSTEAMDevelopmentGroup / Bioindustrial-Park

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

Error about no contourplots model #150

Closed zasddsgg closed 3 days ago

zasddsgg commented 3 days ago

Hello, I encountered an error when calling the following code, it seems that there is no contourplots model, could I ask you how to solve it? Thanks for your help. Wish you a good day.

The code is as follows.

from biorefineries import TAL
TAL.load_TAL_model('A') 
TAL.system.show(data=False) 

The error information is as follows.

ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 2
      1 from biorefineries import TAL
----> 2 TAL.load_TAL_model('A') # Load 'TAL_A': current state-of-technology TAL biorefinery
      3 TAL.system.show(data=False) # Full system

File D:\anaconda\envs\zddd\lib\site-packages\biorefineries\TAL\__init__.py:43, in load_TAL_model(mode)
     41 implemented_modes = ['A', 'B', 'C', 'D']
     42 if not mode in implemented_modes: raise ValueError(f"Mode must be one of {implemented_modes}, not {mode}.")
---> 43 system, spec, tea, lca, get_adjusted_MSP, simulate_and_print, TEA_breakdown, run_TAL_uncertainty_analysis = load.load_TAL_model(mode=mode)
     44 globals().update({
     45     'system':system, 'spec':spec, 'tea':tea, 'lca':lca, 'get_adjusted_MSP':get_adjusted_MSP,
     46     'simulate_and_print':simulate_and_print, 'TEA_breakdown':TEA_breakdown,
     47     'run_TAL_uncertainty_analysis':run_TAL_uncertainty_analysis,
     48     })

File D:\anaconda\envs\zddd\lib\site-packages\biorefineries\TAL\models\load.py:13, in load_TAL_model(mode)
     11 def load_TAL_model(mode='A'):
     12     from biorefineries import TAL
---> 13     from . import models_TAL_solubility_exploit as models
     14     from ..analyses.full.uncertainties_TAL_solubility_exploit import run_TAL_uncertainty_analysis
     15     import os

File D:\anaconda\envs\zddd\lib\site-packages\biorefineries\TAL\models\models_TAL_solubility_exploit.py:22
     20 from biosteam.evaluation import Model, Metric
     21 # from biosteam.evaluation.evaluation_tools import Setter
---> 22 from biorefineries.TAL.systems.system_TAL_solubility_exploit_ethanol_sugarcane import TAL_sys, TAL_tea, TAL_lca, u, s, unit_groups, unit_groups_dict, spec, price, TEA_breakdown, simulate_and_print, theoretical_max_g_TAL_per_g_glucose, TAL_chemicals
     23 from biorefineries.TAL.models.model_utils import EasyInputModel
     24 # get_annual_factor = lambda: TAL_tea._annual_factor

File D:\anaconda\envs\zddd\lib\site-packages\biorefineries\TAL\systems\system_TAL_solubility_exploit_ethanol_sugarcane.py:49
     47 import thermosteam as tmo
     48 import flexsolve as flx
---> 49 import contourplots
     50 from thermosteam import Stream
     51 from biorefineries.TAL import units

ModuleNotFoundError: No module named 'contourplots'
zasddsgg commented 3 days ago

Hello, I solved the problem, thanks again.