Iota Python API
1.0.0
1.0.0
  • Introduction
  • Getting started with Iota Python Library and Iota IPython Terminal
    • Starting a Session
    • Creating a New Project
    • Loading a Project
    • Creating a New Scenario
    • Loading a Scenario
    • Importing a Dataset
    • Running Coarse-graining
  • Writing Scripts
    • Generic Scripts
    • Run(scenario) Scripts
  • Running Scripts
    • Running Generic Scripts
    • Running run(scenario) Scripts
  • Iota Python Reference Library
    • Datasets
    • Graphs
    • Scene renderer
    • Meshing
    • Variable types
    • Session
    • Project
    • Scenario
    • Graph
    • Dataset
    • Mesh
    • Script
    • File
    • Auxiliar
    • Enums
  • Examples
    • Creating a New Project
    • Creating a New Scenario
    • Creating Multiple Scenarios
    • Loading a Project and a Scenario
    • Importing a Dataset into a Scenario
    • Importing Multiple Datasets into different Scenarios
    • Creating a Cut-Plane with Results in a Dataset
    • Creating a New Result in a Dataset
    • Calculating a KPI and Exporting into a Graph
    • Getting the Profile of Result along a Line
    • Creating Multiple Result Line Variations and Plotting them in a Single Graph
    • Integrating a Result over a Mesh
    • Getting the Evolution of the Statistics of a Result
    • Creating Multiple Screenshots of a Dataset
    • Creating Multiple Videos of a Dataset
    • Cloninig Settings and Running Coarse-graining for Multiple Scenarios
    • Automating EDEM Simulations runs and Iota Analyses
Powered by GitBook
On this page
  • Methods
  • __init__(username, config_file)
  • create_project(name, [description])
  • project_exists(name)
  • get_project(name)
  • total_projects()

Was this helpful?

  1. Iota Python Reference Library

Session

PreviousVariable typesNextProject

Last updated 5 years ago

Was this helpful?

iota.session

This method start a new session of Iota. Once the session is loaded,

Classes

  • : class containing session object

  • : class containing project object

  • : class containing scenario object

Variables

  • projects (list[Project]) list of projects in the database

Methods

Start new session

Arguments

  • username: (str) username already registered in the database

  • config_file: (str) file path of the system configuration (e.g C:/Users/Stephen/ParicleAnalytics/config.ini)

Example

my_session = iota.session(
    'my_username',
    '$HOME/ParicleAnalytics/config.ini'
)

Arguments

  • name: (str) project name

  • description: (str) user description of the project (default: '')

Example

new_project = session.create_project(
    name = 'mixing optimization',
    description = 'Vary drum speed in the range 2 - 4 RPM'
)

Check the existence of a project by name

Arguments

  • name: (str) project name

Example

if session.exists_project(name = 'mixing_optimization'):
    print('project "mixing optimization" exist')

Arguments

  • name: (str) project name

Example

project = session.get_project(
    name = 'mixing optimization'
)

Return the total number of projects for some user

Example

num_projects = session.total_projects()
print('total number of projects in the database is {}'.format(num_projects))

Create a project with a specified name and description See for more info

Return a project, specified by a name See for more info

Project
Project
Project
Scenario
Session
__init__(username, config_file)
create_project(name, [description])
project_exists(name)
get_project(name)
total_projects()