Elipse Plant Manager — EPM Web API
Version 5.0.45
epmwebapi.datasetconfig
Enumeration with all available period units.
Inherited Members
- enum.Enum
- name
- value
Class representing an EPM Dataset.
Returns the description of a Dataset.
Returns
A
str
with the description of a Dataset.
Returns the starting time of a Dataset.
Returns
A
datetime
representing the starting time of a Dataset.
Returns the ending time of a Dataset.
Returns
A
datetime
representing the ending time of a Dataset.
Returns the period interval of a Dataset.
Returns
A
timedelta
or arelativedelta
value with the interval of a Dataset.
Returns whether the type of a Dataset is a TimeInterval.
Returns
True if the type of a Dataset is a TimeInterval or False otherwise.
Sets a name for a Dataset.
Parameters
- name: A new name for a Dataset.
Raises
- Exception: Invalid name length.
- Exception: Invalid character on the name.
- Exception: Name must be a
str
.
Sets a new description for a Dataset.
Parameters
- description: A new description for a Dataset.
Raises
- Exception: Invalid description length.
- Exception: Description must be a
str
.
Sets a recent period interval of a Dataset.
Parameters
- count: Number of Period Units.
- periodUnit: Type of Period Unit. Possible values are Second, Minute, Hour, Day, or Month.
Raises
- Exception: The
count
parameter must be an Integer. - Exception: The
periodUnit
parameter must have aPeriodUnit
data type.
Adds a new Pen to a Dataset.
Parameters
- title: Title of this new Pen.
- dataSourceName: Optional parameter with a data source for this Pen. Default is None.
Returns
A new
epmwebapi.datasetpen.DatasetPen
object.
Raises
- Exception: Pen title already exists.
Returns a Pen from this Dataset.
Parameters
- title: Title of a Pen.
Returns
An
epmwebapi.datasetpen.DatasetPen
object.
Raises
- Exception: Pen not found.
Removes a Pen from this Dataset.
Parameters
- title: Title of a Pen to remove.
Raises
- Exception: Pen not found.
Executes this Dataset.
Returns
The result of the execution of this Dataset as an
np.ndarray
object.
Saves the configuration of this Dataset to a file.
Parameters
- path: Path to a file.
- overwrite: Optional parameter indicating whether the configuration file must be overwritten. Default is False.
Class representing a local Dataset.
Sets a name for a local Dataset.
Parameters
- name: Name for a local Dataset.
Raises
- Exception: Invalid name length.
- Exception: Invalid character on name.
- Exception: The
name
parameter must be astr
.
Saves a local Dataset to a file.
Raises
- Exception: Local Dataset changed but there is another Dataset with this name on the same folder.
- Exception: There is no Dataset file to save. Please use the
saveToFile
orsaveToLocal
methods.
Creates a copy of a local Dataset.
Parameters
- newName: A name for the copy of this local Dataset.
- samePath: An optional parameter indicating whether the new local Dataset has the same path of this local Dataset. Default is True.
Returns
A
DatasetConfigLocal
object as a copy of this local Dataset.
Raises
- Exception: Dataset has no file on folder.
- Exception: Dataset already exists.
Class representing a Dataset from an EPM Server.
Saves this Dataset to an EPM Server.
Raises
- Exception: Dataset name changed but there is another Dataset with the same name on the EPM Server.