Loading a Project and a Scenario

This is an example of a script to load an existing Iota project and scenario:

''' This scripts starts a new session, loads the project "Backhoe optimization" and load the scenario "Initial design"'''

import sys                              
import os
import iota
sys.path.append(os.getenv('IOTA_PATH'))                                         # Add iota directory to Python paths

username = 'stephen'                                                            # Set Iota username
home_path = 'C:/Users/stephen/'                                                 # Set user's home directory

my_session = iota.session(username,home_path + 'ParticleAnalytics/config.ini')  # Start new session

my_new_project = my_session.get_project('Backhoe optimization')                 # Load the project "Backhoe optimization"       

my_new_scenario = my_new_project.get_scenario('Initial design')                 # Load the scenario "Initial design"

Last updated

Was this helpful?