Package dap :: Package responses :: Module ascii
[hide private]
[frames] | no frames]

Module ascii

source code

ASCII DAP response.

This module implements the ASCII DAP response, building it dynamically from datasets objects.

Functions [hide private]
  n_iterate(t)
Iterator over n-tuple.
  build(self, constraints=None)
  _dispatch(dapvar, printname=True)
  _dataset(dapvar, printname)
  _structure(dapvar, printname)
  _grid(dapvar, printname)
  _sequence(dapvar, printname)
  _array(dapvar, printname)
  _base(dapvar, printname)
  _test()

Variables [hide private]
  __author__ = 'Roberto De Almeida <rob@pydap.org>'

Imports: itertools, lib.INDENT, lib.__dap__, lib.encode_atom, lib.isiterable, dtypes.Float16, dtypes.ArrayType, dtypes.Float32, dtypes.GridType, dtypes.Int32, dtypes.Int16, dtypes.String, dtypes.BaseType, dtypes.UInt16, dtypes.Int0, dtypes.Byte, dtypes.DatasetType, dtypes.Int8, dtypes.StructureType, dtypes.Float64, dtypes.Url, dtypes.SequenceType, dtypes.Int64, dtypes.UInt64, dtypes.Int, dtypes.Float, dtypes.UInt32, dtypes.Float8, dtypes.Float0


Function Details [hide private]

n_iterate(t)

source code 

Iterator over n-tuple.

This function is used when representing data in the ASCII response. It iterates over a n-dimensional tuple/list, yielding all indexes in order.
>>> for l in n_iterate([1,2,3]):
...     print l
[0, 0, 0]
[0, 0, 1]
[0, 0, 2]
[0, 1, 0]
[0, 1, 1]
[0, 1, 2]

build(self, constraints=None)

source code 
None

_dispatch(dapvar, printname=True)

source code 
None

_dataset(dapvar, printname)

source code 
None

_structure(dapvar, printname)

source code 
None

_grid(dapvar, printname)

source code 
None

_sequence(dapvar, printname)

source code 
None

_array(dapvar, printname)

source code 
None

_base(dapvar, printname)

source code 
None

_test()

source code 
None

Variables Details [hide private]

__author__

None
Value:
'Roberto De Almeida <rob@pydap.org>'