## 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

adaptList( PyList p, Units u ) → QDataSet

adapts list to QDataSet.

### Parameters

p - a PyList
u - the units which are often known.

### Returns:

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

## 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

adaptTuple( PyTuple p, Units u ) → QDataSet

adapts the Python Tuple to a QDataSet, using the provided units.

### Parameters

p - a PyTuple
u - the units which are often known.

### Returns:

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

## canAdapt

canAdapt( Object arg0 ) → boolean

### Parameters

arg0 - an Object

### Returns:

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