Run
This is a Python binding to the C++ class Mantid::API::Run.
-
class mantid.api.Run((object)arg1)
-
__init__((object)arg1) → None
-
addProperty((Run)self, (str)name, (object)value, (bool)replace) → None :
Adds a property with the given name and value. If replace=True then an existing property is overwritten
- addProperty( (Run)self, (str)name, (object)value, (str)units, (bool)replace) -> None :
- Adds a property with the given name, value and unit. If replace=True then an existing property is overwritten
-
endTime((Run)self) → DateAndTime :
Return the total ending time of the run.
-
get((object)self, (object)key, (object)default) → object :
Returns the value pointed to by the key or the default value given.
- get( (object)self, (object)key) -> object :
- Returns the value pointed to by the key or None if it does not exist.
-
getGoniometer((Run)self) → Goniometer :
Return the Goniometer object associated with this run.
-
getLogData((Run)self, (str)name) → Property :
Returns the named log. Use ‘.value’ to return the value. The same as getProperty.
- getLogData( (Run)self) -> std_vector_property :
- Return the list of logs for this run. The same as getProperties.
-
getProperties((Run)self) → std_vector_property :
Return the list of run properties managed by this object.
-
getProperty((Run)self, (str)name) → Property :
Returns the named property (log value). Use ‘.value’ to return the value.
-
getPropertyAsSingleValue((Run)self, (str)name) → float :
Return a log as a single float value. Time series values are averaged.
-
getProtonCharge((Run)self) → float :
Return the total good proton charge for the run
-
hasProperty((Run)self, (str)name) → bool :
Returns True if the given log value is contained within the run
-
integrateProtonCharge((Run)self[, (str)logname='proton_charge']) → None :
Set the total good proton charge for the run, from the proton charge log
-
keys((Run)self) → list :
Returns the names of the properties as list
-
setStartAndEndTime((Run)self, (DateAndTime)start, (DateAndTime)end) → None :
Set the start and end time of the run
-
startTime((Run)self) → DateAndTime :
Return the total starting time of the run.