Skip to content

Unable to Load previously saved Forwast Model #75

Description

@iamz33

Hi James,
Win 10 Jupyter Notebook platform, I developed and saved a Forwast model using GUI. But now I'm unable to Load it and resume working on the model.

'''
from lcopt import *
#model = LcoptModel('LCA of a T-shirt FORWAST Model', useForwast=True)
model = LcoptModel(load='LCA of a T-shirt FORWAST Model')
model.launch_interact()

'''
KeyError Traceback (most recent call last)
in
2 #model = LcoptModel('LCA of a T-shirt FORWAST Model', useForwast=True)
3 model = LcoptModel(load='LCA of a T-shirt FORWAST Model')
----> 4 model.launch_interact()

~\anaconda3\envs\lcopt\lib\site-packages\lcopt\model.py in launch_interact(self)
757 This is probably the most important method in the model - you use it to launch the GUI
758 """
--> 759 my_flask = FlaskSandbox(self)
760 my_flask.run()
761

~\anaconda3\envs\lcopt\lib\site-packages\lcopt\interact.py in init(self, modelInstance)
20
21 self.modelInstance = modelInstance
---> 22 self.get_sandbox_variables()
23
24 # Set up the dictionary of actions that can be processed by POST requests

~\anaconda3\envs\lcopt\lib\site-packages\lcopt\interact.py in get_sandbox_variables(self)
84
85 #process_output_name_map = {process_code: output_name for x in processes.keys()}
---> 86 process_output_name_map = {x[1]: intermediate_map[self.reverse_process_output_map[x[1]]] for x in processes.keys()}
87
88 inputs = OrderedDict((k, v) for k, v in products.items() if v['lcopt_type'] == 'input')

~\anaconda3\envs\lcopt\lib\site-packages\lcopt\interact.py in (.0)
84
85 #process_output_name_map = {process_code: output_name for x in processes.keys()}
---> 86 process_output_name_map = {x[1]: intermediate_map[self.reverse_process_output_map[x[1]]] for x in processes.keys()}
87
88 inputs = OrderedDict((k, v) for k, v in products.items() if v['lcopt_type'] == 'input')

KeyError: 'ad962cc98bdcbe9d4238a43e0fd38ea3'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions