org.autoplot.jythonsupport.PyQDataSetAdapter

Adapt QDataSet results to PyQDataSet, which provides __getitem__ and __setitem__. (ds[0,0]=ds[0,0]+1)

PyQDataSetAdapter( )


adapt

adapt( Object arg0 ) → PyObject

Parameters

arg0 - an Object

Returns:

PyObject

[search for examples] [view on GitHub] [view on old javadoc] [view source]


adaptList

adaptList( PyList p ) → QDataSet

adapts list to QDataSet. If this contains datums or rank 0 datasets with different units, then a bundle is returned. TODO: Consider: if element is a string, then enumeration units are used.

Parameters

p - a PyList

Returns:

a QDataSet

[search for examples] [view on GitHub] [view on old javadoc] [view source]

adaptList( PyList p, Units u ) → QDataSet

adaptTuple

adaptTuple( PyTuple p ) → QDataSet

Parameters

p - a PyTuple

Returns:

org.das2.qds.QDataSet

[search for examples] [view on GitHub] [view on old javadoc] [view source]

adaptTuple( PyTuple p, Units u ) → QDataSet

canAdapt

canAdapt( Object arg0 ) → boolean

Parameters

arg0 - an Object

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]