org.autoplot.jythonsupport.PyQDataSet
PyQDataSet wraps a QDataSet to provide Python operator overloading and
indexing. For example, the Python plus "+" operator is implemented in the
method "__add__", and ds[0,:] is implemented in __getitem__ and __setitem__.
The class PyQDataSetAdapter is responsible for creating the PyQDataSet when
a QDataSet is brought into the Python interpreter.
PyQDataSet( )
PyQDataSet( QDataSet ds )
Note getDataSet will always provide a writable dataset.
__abs__
__abs__( ) → PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__add__
__add__( PyObject arg0 ) → PyQDataSet
Parameters
arg0 - a PyObject
Returns:
org.autoplot.jythonsupport.PyQDataSet
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__and__
__and__( PyObject o ) → PyObject
Parameters
o - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__coerce_ex__
__coerce_ex__( PyObject arg0 ) → Object
Parameters
arg0 - a PyObject
Returns:
java.lang.Object
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__delattr__
__delattr__( String attr ) → void
Parameters
attr - a String
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__div__
__div__( PyObject arg0 ) → PyObject
Parameters
arg0 - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__eq__
__eq__( PyObject o ) → PyObject
Parameters
o - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__findattr__
__findattr__( String name ) → PyObject
Parameters
name - a String
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__float__
__float__( ) → PyFloat
Returns:
PyFloat
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__floordiv__
__floordiv__( PyObject arg0 ) → PyObject
Parameters
arg0 - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__ge__
__ge__( PyObject o ) → PyObject
Parameters
o - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__getitem__
__getitem__( PyObject arg0 ) → PyObject
This implements the Python indexing, such as data[4,:,3:5]. Note this
includes many QDataSet operations: a single index represents a slice, a
range like 3:5 is a trim, an array is a sort, and a colon leaves a dimension
alone. See https://github.com/autoplot/documentation/blob/master/md/developer.python.indexing.md
TODO: preserve metadata
TODO: verify all index types.
Parameters
arg0 - various python types https://github.com/autoplot/documentation/blob/master/md/developer.python.indexing.md
Returns:
element or subset of data.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__gt__
__gt__( PyObject o ) → PyObject
Parameters
o - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__int__
__int__( ) → PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__iter__
__iter__( ) → PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__le__
__le__( PyObject o ) → PyObject
Parameters
o - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__len__
__len__( ) → int
Returns:
int
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__long__
__long__( ) → PyLong
Returns:
PyLong
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__lt__
__lt__( PyObject o ) → PyObject
Parameters
o - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__mod__
__mod__( PyObject arg0 ) → PyObject
Parameters
arg0 - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__mul__
__mul__( PyObject arg0 ) → PyObject
Parameters
arg0 - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__ne__
__ne__( PyObject o ) → PyObject
Parameters
o - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__neg__
__neg__( ) → PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__nonzero__
__nonzero__( ) → boolean
Returns:
boolean
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__or__
__or__( PyObject o ) → PyObject
Parameters
o - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__pos__
__pos__( ) → PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__pow__
__pow__( PyObject arg0 ) → PyObject
Parameters
arg0 - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__radd__
__radd__( PyObject arg0 ) → PyObject
Parameters
arg0 - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__rdiv__
__rdiv__( PyObject arg0 ) → PyObject
Parameters
arg0 - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__rfloordiv__
__rfloordiv__( PyObject arg0 ) → PyObject
Parameters
arg0 - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__rmod__
__rmod__( PyObject arg0 ) → PyObject
Parameters
arg0 - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__rmul__
__rmul__( PyObject arg0 ) → PyObject
Parameters
arg0 - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__rpow__
__rpow__( PyObject arg0 ) → PyObject
Parameters
arg0 - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__rsub__
__rsub__( PyObject arg0 ) → PyObject
Parameters
arg0 - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__setattr__
__setattr__( String name, PyObject value ) → void
Parameters
name - a String
value - a PyObject
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__setitem__
__setitem__( PyObject arg0, PyObject arg1 ) → void
Assign the values to the indeces specified.
Note, if the value has units and the PyQDataSet does not yet have units,
then the units are assigned.
See http://autoplot.org/developer.python.indexing
Parameters
arg0 - the indeces
arg1 - the values to assign
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__sub__
__sub__( PyObject arg0 ) → PyObject
Parameters
arg0 - a PyObject
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
__tojava__
__tojava__( java.lang.Class c ) → Object
This is what does the magical coersion, see https://sourceforge.net/p/autoplot/bugs/1861/
Parameters
c - the class needed.
Returns:
instance of the class if available.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
append
append( PyObject arg0 ) → PyQDataSet
Parameters
arg0 - a PyObject
Returns:
org.autoplot.jythonsupport.PyQDataSet
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
equals
equals( Object ob_other ) → boolean
Parameters
ob_other - an Object
Returns:
boolean
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
equals( org.autoplot.jythonsupport.PyQDataSet ob_other ) → boolean
getQDataSet
getQDataSet( ) → QDataSet
Returns:
org.das2.qds.QDataSet
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getSerialNumber
getSerialNumber( ) → int
return the serial number.
Returns:
an int
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
hashCode
hashCode( ) → int
Returns:
int
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
invoke
invoke( String name ) → PyObject
Parameters
name - a String
Returns:
PyObject
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
invoke( String name, PyObject arg1 ) → PyObject
invoke( String name, PyObject arg1, PyObject arg2 ) → PyObject
invoke( String name, PyObject[] args, java.lang.String[] keywords ) → PyObject
invoke( String name, PyObject[] args ) → PyObject
isNumberType
isNumberType( ) → boolean
Returns:
boolean
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
putProperty
putProperty( PyString prop, Object value ) → void
Parameters
prop - a PyString
value - an Object
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
putProperty( PyString prop, int index, Object value ) → void
putValue
putValue( double value ) → void
Parameters
value - a double
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
putValue( int i0, double value ) → void
putValue( int i0, int i1, double value ) → void
putValue( int i0, int i1, int i2, double value ) → void
putValue( int i0, int i1, int i2, int i3, double value ) → void
toString
toString( ) → String
Returns:
java.lang.String
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]