Project
iota.session.Project()
Description Iota project object.
Methods
Variables
name(str) project namedescription(str) project descriptionid(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 namedescription: (str) scenario description (default: None)
Example
Return a dataset record specified by name
Arguments
name: (str) scenario namedata_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 namedata_format: (str) format of the datasetfile: (str) dataset filepathdescription: (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 filepathname: (str) dataset name. If not defined, used the basename of the filepath (Default: None)data_format: (str) format of the datasetinclude_graphs: (bool) import any graph available in the dataset to the projectdescription: (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 nametags: (dict) tags dictionary
Example
Return a graph, specified by name (and tags)
Arguments
name: (str) graph nametags: (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 nametitle: (str) graph titlefilepath: (str) optional file path for new graph file (Default: None)xdata: (iota.ArrayFloat) array of data representing the values of axis Xydata: (list[iota.ArrayFloat]) list of arrays representing the data serieslegend: (list[str]) list of names for the data seriesxtitle: (str) title of the axis Xytitle: (str) title of the axis Ycsvfile: (str) csv file containing the graph data. If this is defined, none of the previous variables are considereddescription: (str) graph descriptiontags: (dict) tags dictionaryoverwrite: (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 filepathdescription: (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 namefilepath: (str) file pathdescription: (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 namefilepath: (str) script file pathdescription: (str) script description (Default: None)
Example
Add a video file to the project
Arguments
file: (str) video file pathname: (str) video namedescription: (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 pathname: (str) screenshot namedescription: (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?