Trees | Index | Help |
|
---|
Package MDSplus :: Module mdsdata :: Class Data |
|
object
--+
|
Data
Apd
,
Array
,
Compound
,
Dictionary
,
EmptyData
,
Ident
,
List
,
Scalar
,
TreeNode
,
TreeNodeArray
Method Summary | |
---|---|
Data |
Cannot create instances of class Data objects. |
Data |
Absolute value: x.__abs__() <==> abs(x) |
Data |
Add: x.__add__(y) <==> x+y |
Data |
And: x.__and__(y) <==> x&y |
Data |
Divide: x.__div__(y) <==> x/y |
Bool |
Equals: x.__eq__(y) <==> x==y |
Data |
Float: x.__float__() <==> float(x) |
Data |
Floordiv: x.__floordiv__(y) <==> x//y |
Bool |
Greater or equal: x.__ge__(y) <==> x>=y |
Data |
Subscript: x.__getitem__(y) <==> x[y] |
Bool |
Greater than: x.__gt__(y) <==> x>y |
int |
Integer: x.__int__() <==> int(x) |
Data |
Binary not: x.__invert__() <==> ~x |
Bool |
Less than or equal: x.__le__(y) <==> x<=y |
Data |
Length: x.__len__() <==> len(x) |
long |
Convert this object to python long |
Data |
Lrft binary shift: x.__lshift__(y) <==> x<<y |
Bool |
Less than: x.__lt__(y) <==> x<y |
Data |
Modulus: x.__mod__(y) <==> x%y |
Data |
Multiply: x.__mul__(y) <==> x*y |
Data |
Not equal: x.__ne__(y) <==> x!=y |
Data |
Negation: x.__neg__() <==> -x |
Bool |
Not equal 0: x.__nonzero__() <==> x != 0 |
Data |
Or: x.__or__(y) <==> x|y |
Data |
Unary plus: x.__pos__() <==> +x |
Data |
Reverse add: x.__radd__(y) <==> y+x |
Data |
Reverse divide: x.__rdiv__(y) <==> y/x |
string |
Return string representation |
Data |
x.__rfloordiv__(y) <==> y//x |
Data |
Reverse left binary shift: x.__rlshift__(y) <==> y<<x |
Data |
Reverse modulus: x.__rmod__(y) <==> y%x |
Data |
Multiply: x.__mul__(y) <==> x*y |
Data |
Or: x.__or__(y) <==> x|y |
Data |
Reverse right binary shift: x.__rrshift__(y) <==> y>>x |
Data |
Right binary shift: x.__rshift__(y) <==> x>>y |
Data |
Reverse subtract: x.__rsub__(y) <==> y-x |
Data |
Reverse xor: x.__rxor__(y) <==> y^x |
string |
Return string representation |
Data |
Subtract: x.__sub__(y) <==> x-y |
Data |
Xor: x.__xor__(y) <==> x^y |
Bool |
Return boolean |
Bool |
Compare this data with argument |
Data |
Static method (routine in C++) which compiles the expression (via TdiCompile()) and returns the object instance correspondind to the compiled expression. (Static method) |
Scalar,Array |
Return primitimive value of the data. |
string |
Return string representation |
Data |
Return Data from serialized buffer. (Static method) |
Data |
Return dimension of object |
Data |
Return the result of TDI evaluate(this). |
Data |
Execute and expression inserting optional arguments into the expression before evaluating (Static method) |
Int8 |
Convert this data into a byte. |
Int8Array |
Convert this data into a byte array. |
Data |
Return dimension of object |
Float64 |
Convert this data into a float64. |
Data |
Get the error field. |
Float32 |
Convert this data into a float32. |
Data |
Returns the result of TDI GET_HELP(this). |
Int32 |
Convert this data into a int. |
Int32Array |
Convert this data into a int array. |
Int64 |
Convert this data into a long. |
Int64Array |
Convert this data into a long array. |
Int32Array |
Get the array dimensions as an integer array. |
Int16 |
Convert this data into a short. |
Int16Array |
Convert this data into a short array. |
String |
Convert this data into a STRING. |
Data |
Get value of tdi public variable (Static method) |
Data |
Return the TDI evaluation of UNITS_OF(this). |
Data |
Return MDSplus data class from value. (Static method) |
Bool |
return true if the represented data could have been changed since the last time this method has been called. |
Data |
Pop $value for expression evaluation |
None |
Set $value for expression evaluation |
Data |
Return raw part of object |
Uint8Array |
Return Uint8Array binary representation. |
None |
Set the Error field for this Data instance. |
None |
Set the Help field for this Data instance. |
Data |
Set tdi public variable with this data |
None |
Set units |
Float32Array |
Return sin() of data assuming data is in degrees |
Data |
Return units part of the object |
Data |
Return value part of object |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value |
Property Summary | |
---|---|
descriptor | |
error | |
help | |
units | |
validation |
Instance Method Details |
---|
__init__(self,
*value)
Cannot create instances of class Data objects. Use
Data.makeData(initial-value) instead
|
__abs__(self)Absolute value: x.__abs__() <==> abs(x)
|
__add__(self,
y)
Add: x.__add__(y) <==> x+y
|
__and__(self,
y)
And: x.__and__(y) <==> x&y
|
__div__(self, y)Divide: x.__div__(y) <==> x/y
|
__eq__(self,
y)
Equals: x.__eq__(y) <==> x==y
|
__float__(self)Float: x.__float__() <==> float(x)
|
__floordiv__(self, y)Floordiv: x.__floordiv__(y) <==> x//y
|
__ge__(self,
y)
Greater or equal: x.__ge__(y) <==> x>=y
|
__getitem__(self,
y)
Subscript: x.__getitem__(y) <==> x[y]
|
__gt__(self,
y)
Greater than: x.__gt__(y) <==> x>y
|
__int__(self)Integer: x.__int__() <==> int(x)
|
__invert__(self)Binary not: x.__invert__() <==> ~x
|
__le__(self,
y)
Less than or equal: x.__le__(y) <==> x<=y
|
__len__(self)
Length: x.__len__() <==> len(x)
|
__long__(self)Convert this object to python long
|
__lshift__(self, y)Lrft binary shift: x.__lshift__(y) <==> x<<y
|
__lt__(self,
y)
Less than: x.__lt__(y) <==> x<y
|
__mod__(self, y)Modulus: x.__mod__(y) <==> x%y
|
__mul__(self, y)Multiply: x.__mul__(y) <==> x*y
|
__ne__(self, y)Not equal: x.__ne__(y) <==> x!=y
|
__neg__(self)Negation: x.__neg__() <==> -x
|
__nonzero__(self)
Not equal 0: x.__nonzero__() <==> x != 0
|
__or__(self,
y)
Or: x.__or__(y) <==> x|y
|
__pos__(self)Unary plus: x.__pos__() <==> +x
|
__radd__(self,
y)
Reverse add: x.__radd__(y) <==> y+x
|
__rdiv__(self, y)Reverse divide: x.__rdiv__(y) <==> y/x
|
__repr__(self)
Return string representation
|
__rfloordiv__(self, y)x.__rfloordiv__(y) <==> y//x
|
__rlshift__(self, y)Reverse left binary shift: x.__rlshift__(y) <==> y<<x
|
__rmod__(self, y)Reverse modulus: x.__rmod__(y) <==> y%x
|
__rmul__(self, y)Multiply: x.__mul__(y) <==> x*y
|
__ror__(self, y)Or: x.__or__(y) <==> x|y
|
__rrshift__(self, y)Reverse right binary shift: x.__rrshift__(y) <==> y>>x
|
__rshift__(self, y)Right binary shift: x.__rshift__(y) <==> x>>y
|
__rsub__(self, y)Reverse subtract: x.__rsub__(y) <==> y-x
|
__rxor__(self, y)Reverse xor: x.__rxor__(y) <==> y^x
|
__str__(self)
Return string representation
|
__sub__(self,
y)
Subtract: x.__sub__(y) <==> x-y
|
__xor__(self, y)Xor: x.__xor__(y) <==> x^y
|
bool(self)Return boolean
|
compare(self, value)Compare this data with argument
|
data(self)Return primitimive value of the data.
|
decompile(self)Return string representation
|
dim_of(self, idx=0)Return dimension of object
|
evaluate(self)Return the result of TDI evaluate(this).
|
getByte(self)Convert this data into a byte. Implemented at this class level by returning TDI data(BYTE(this)). If data() fails or the returned class is not scalar, generate an exception.
|
getByteArray(self)Convert this data into a byte array. Implemented at this class level by returning TDI data(BYTE(this)). If data() fails or the returned class is not array, generates an exception. In Java and C++ will return a 1 dimensional array using row-first ordering if a multidimensional array.
|
getDimensionAt(self, idx=0)Return dimension of object
|
getDouble(self)Convert this data into a float64. Implemented at this class level by returning TDI data(FT_FLOAT(this)). If data() fails or the returned class is not scalar, generate an exception.
|
getError(self)Get the error field. Returns EmptyData if no error defined.
|
getFloat(self)Convert this data into a float32. Implemented at this class level by returning TDI data(F_FLOAT(this)).If data() fails or the returned class is not scalar, generate an exception.
|
getHelp(self)Returns the result of TDI GET_HELP(this). Returns EmptyData if no help field defined.
|
getInt(self)Convert this data into a int. Implemented at this class level by returning TDI data(LONG(this)).If data() fails or the returned class is not scalar, generate an exception.
|
getIntArray(self)Convert this data into a int array. Implemented at this class level by returning TDI data (LONG(this)). If data() fails or the returned class is not array, generates an exception. In Java and C++ will return a 1 dimensional array using row-first ordering if a multidimensional array.
|
getLong(self)Convert this data into a long. Implemented at this class level by returning TDI data(QUADWORD(this)).If data() fails or the returned class is not scalar, generate an exception.
|
getLongArray(self)Convert this data into a long array. Implemented at this class level by returning TDI data(QUADWORD(this)). If data() fails or the returned class is not array, generates an exception. In Java and C++ will return a 1 dimensional array using row-first ordering if a multidimensional array.
|
getShape(self)Get the array dimensions as an integer array. It is implemented at this class level by computing TDI expression SHAPE(this). If shape fails an exception is generated.
|
getShort(self)Convert this data into a short. Implemented at this class level by returning TDI data(WORD(this)).If data() fails or the returned class is not scalar, generate an exception.
|
getShortArray(self)Convert this data into a short array. Implemented at this class level by returning TDI data(WORD(this)). If data() fails or the returned class is not array, generates an exception. In Java and C++ will return a 1 dimensional array using row-first ordering if a multidimensional array.
|
getString(self)Convert this data into a STRING. Implemented at this class level by returning TDI data((this)). If data() fails or the returned class is not string, generates an exception.
|
getUnits(self)Return the TDI evaluation of UNITS_OF(this). EmptyData is returned if no units defined.
|
mayHaveChanged(self)return true if the represented data could have been changed since the last time this method has been called.
|
pop_dollar_value(self)Pop $value for expression evaluation
|
push_dollar_value(self)Set $value for expression evaluation
|
raw_of(self)Return raw part of object
|
serialize(self)Return Uint8Array binary representation.
|
setError(self, error)Set the Error field for this Data instance.
|
setHelp(self, help)Set the Help field for this Data instance.
|
setTdiVar(self, tdivarname)Set tdi public variable with this data
|
setUnits(self, units)Set units
|
sind(self)Return sin() of data assuming data is in degrees
|
units_of(self)Return units part of the object
|
value_of(self)Return value part of object
|
Static Method Details |
---|
compile(expr, *args)Static method (routine in C++) which compiles the expression (via TdiCompile()) and returns the object instance correspondind to the compiled expression.
|
deserialize(data)Return Data from serialized buffer.
|
execute(expr, *args)Execute and expression inserting optional arguments into the expression before evaluating
|
getTdiVar(tdivarname)Get value of tdi public variable
|
makeData(value)Return MDSplus data class from value.
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Wed Aug 18 13:35:32 2010 | http://epydoc.sf.net |