ADCT Python
Python client API implementation for publishing ADCT data
Loading...
Searching...
No Matches
Public Member Functions | List of all members
adctk.adc_types.Field Class Reference

Field details indicate how to handle a data returned from builder lookups. More...

Public Member Functions

 __init__ (self)
 
 __str__ (self)
 
 __repr__ (self)
 

Detailed Description

Field details indicate how to handle a data returned from builder lookups.

The data element object type will be a list or scalar; conversion back to python native types is up to the caller, following the hints included in data (if it represents a numpy array): order, shape, and major will be present.

Constructor & Destructor Documentation

◆ __init__()

adctk.adc_types.Field.__init__ (   self)
495 def __init__(self):
496 self.kt: KeyType = KeyType.k_none # //!< kind of data associated with the query
497 self.st: ScalarType = ScalarType.cp_none # //!< scalar type of the data as published,
498 self.container: str = None # //!< name of the adc container variety given, e.g. vector or numpy
499 self.python: str = None # //!< name of the python object type, if present
500 self.data: any = None #

Member Function Documentation

◆ __repr__()

adctk.adc_types.Field.__repr__ (   self)
503 def __repr__(self):
504 return f"kt:{self.kt}, st:{self.st}, container:{self.container}, data:{self.data}"
505

◆ __str__()

adctk.adc_types.Field.__str__ (   self)
501 def __str__(self):
502 return f"kt:{self.kt}, st:{self.st}, container:{self.container}, data:{self.data}"

The documentation for this class was generated from the following file: