Project

iota.session.Project()

Description Iota project object.

Methods

Variables

  • name (str) project name

  • description (str) project description

  • id (int) project Id

Methods

Return a scenario belonging to a specified project, by name

Arguments

  • name: (str) scenario name

Example

Return a scenario belonging to a specified project, by name

Arguments

  • name: (str) scenario name

Example

Return the list of scenarios in the project

Example

Create and return a scenario, described by name and optional description and tags

Arguments

  • name: (str) scenario name

  • description: (str) scenario description (default: None)

Example

Return a dataset record specified by name

Arguments

  • name: (str) scenario name

  • data_format: (str) data format of the dataset to be loaded. The project can have more than one dataset with the same name if data_format is different. (default: None)

Example

Return the list of dataset records in the project

Example

Add a Iota Dataset file to the project data_format must be one of PADEM or PACG

Arguments

  • name: (str) dataset name

  • data_format: (str) format of the dataset

  • file: (str) dataset filepath

  • description: (str) dataset description (default: None)

  • scenario: (str) add dataset to a specific scenario (default: None)

Example

Import external Dataset to the project data_format must be one of the accepted formats: [EDEM 2017]

Arguments

  • file: (str) dataset filepath

  • name: (str) dataset name. If not defined, used the basename of the filepath (Default: None)

  • data_format: (str) format of the dataset

  • include_graphs: (bool) import any graph available in the dataset to the project

  • description: (str) dataset description (Default: None)

  • scenario: (str) add dataset to a specific scenario (default: None)

Example

Return True if graph exists, specified by name (and tags)

Arguments

  • name: (str) graph name

  • tags: (dict) tags dictionary

Example

Return a graph, specified by name (and tags)

Arguments

  • name: (str) graph name

  • tags: (dict) tags dictionary

Example

Return the list of graphs in the project

Example

Add a new graph to the project. The graph can be defined in a csv file or by defining all the components (data, titles, etc)

Arguments

  • name: (str) graph name

  • title: (str) graph title

  • filepath: (str) optional file path for new graph file (Default: None)

  • xdata: (iota.ArrayFloat) array of data representing the values of axis X

  • ydata: (list[iota.ArrayFloat]) list of arrays representing the data series

  • legend: (list[str]) list of names for the data series

  • xtitle: (str) title of the axis X

  • ytitle: (str) title of the axis Y

  • csvfile: (str) csv file containing the graph data. If this is defined, none of the previous variables are considered

  • description: (str) graph description

  • tags: (dict) tags dictionary

  • overwrite: (bool) overwrite graph file if already exists

Example

Return a mesh specified by a name

Arguments

  • name: (str) mesh name

Example

Return th elist of meshes in the project

Example

Add a mesh by filepath to the project

Arguments

  • file: (str) mesh filepath

  • description: (str) mesh description

Example

Return a file, specified by name

Arguments

  • name: (str) file name

Example

Return the list of files in the project

Example

Create and return a file, describe by name, filepath and optional description

Arguments

  • name: (str) scenario name

  • filepath: (str) file path

  • description: (str) file description (Default: None)

Example

Return a script spcified by a name

Arguments

  • name: (str) script name

Example

Return the list of scripts in the project

Example

Add a script (python file) to the project

Arguments

  • name: (str) script name

  • filepath: (str) script file path

  • description: (str) script description (Default: None)

Example

Add a video file to the project

Arguments

  • file: (str) video file path

  • name: (str) video name

  • description: (str) video description (Default: None)

  • tags: (dict) tags dictionary (Default: None)

  • thumbnail: (str) image file to be used as a thumbnail (Default: None)

Example

Add image file to the project

Arguments

  • file: (str) screenshot file path

  • name: (str) screenshot name

  • description: (str) screenshot description (Default: None)

  • tags: (dict) tags dictionary (Default: None)

Example

Delete project from the database (and disk if applicable)

Example

Last updated

Was this helpful?