ADCT Python
Python client API implementation for publishing ADCT data
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
adc_types.py File Reference

Classes

class  adctk.adc_types.ScalarType
 field types for scientific data encode/decode with json. More...
 
class  adctk.adc_types.KeyType
 The builder type (section or map value) or unknown. More...
 
class  adctk.adc_types.Field
 Field details indicate how to handle a data returned from builder lookups. More...
 

Namespaces

namespace  adctk
 !
 
namespace  adctk.adc_types
 

Functions

bool adctk.adc_types.is_string_type (ScalarType st)
 return True if st is of the single string subclassifications
 
str adctk.adc_types.scalar_to_json (ScalarType st, array_type=False)
 
 adctk.adc_types.scalar_from_json (str name, strict=False)
 convert json type string used in add functions to ScalarType
 
 adctk.adc_types.scalar_from_numpy (numpy.dtype dt)
 convert numpy dtype to adc scalar type
 
ScalarType adctk.adc_types.get_common_scalar (list|tuple|collections.abc.Set slt, int depth, list[int] maxdepth)
 get the common scalar type from a possibly nested tuple/set/list
 
numpy.ndarray adctk.adc_types.forsplitcomplex (numpy.ndarray a)
 
numpy.ndarray adctk.adc_types.csplitcomplex (numpy.ndarray a)
 
 adctk.adc_types.get_list_format_numpy (numpy.ndarray a)
 build a nested list out of numpy array, accounting for int must fit in int64 or be string encoded and accounting for complex numbers.
 
 adctk.adc_types.get_list_format (list|tuple|collections.abc.Set|numpy.ndarray slt, ScalarType st=None)
 build a nested list out of homogeneous python or numpy nest
 
 adctk.adc_types.typecode_to_scalar (array.array v)
 
 adctk.adc_types.type_to_scalar (type t, value=None)
 convert python type to ScalarType numpy array types are supported if value is given.
 
bool adctk.adc_types.fits_int64 (int v)
 
bool adctk.adc_types.fits_uint64 (int v)
 

Variables

int adctk.adc_types.ADC_SUPPORT_GPU_FLOATS = 0
 Set to 1 if 8/16 bit float types for gpus are supported.
 
int adctk.adc_types.ADC_SUPPORT_EXTENDED_FLOATS = 1
 Set to 1 if 80 bit floats for cpus are supported.
 
int adctk.adc_types.ADC_SUPPORT_QUAD_FLOATS = 0
 Set to 1 if 128 bit floats for cpus are supported.