autowisp.light_curves.lc_data_slice module

Class Inheritance Diagram

Inheritance diagram of LCDataSliceBase, Structure, c_bool, c_char_p, c_double, c_float, c_int16, c_int32, c_int64, c_int8, c_longdouble, c_uint16, c_uint32, c_uint64, c_uint8

Define a class holding a slice of LC data organize by source.

class autowisp.light_curves.lc_data_slice.LCDataSliceBase[source]

Bases: Structure

Inheritance diagram of autowisp.light_curves.lc_data_slice.LCDataSliceBase

A time-slice of LC data to be shared between LC dumping processes.

static get_ctype(dtype)[source]

Return the appropriate c-types type to use for the given dtype.

autowisp.light_curves.lc_data_slice.create_lc_data_slice_type(get_dtype, dataset_dimensions, max_dimension_size, max_mem)[source]

Return LCDataSliceBase sub-class configured to hold max LC data possible.

Parameters:
  • get_dtype (callable) – A function which should return the datatype to use for the dataset corresponding to a given pipeline key.

  • dataset_dimensions – See LCDataReader.dataset_dimensions

  • max_dimension_size – See LCDataReader.max_dimension_size

  • max_mem – The maximum amount of memory instances are allowed to consume in bytes.

Returns:

The class of a variable to use for lightcurve dumping

int:

The number of frames that will fit into the structure.

Return type:

LCDataSliceBase sub-class