bufferBadInputs

class bufferBadInputs : public kotekan::Stage

CHIME-specific stage which buffers updates to the bad input list.

Copies a list of bad inputs into a mask buffer, which is 0 if an element is bad and 1 if it is good.

This stage expects the input buffer to be recieved in CHIME cylinder order, and automatically remaps into beamformer order.

Buffers

  • out_buf Kotekan buffer of bad inputs.

    • Shape: [num_element]

    • Format: uint8_t

Author

James Willis & Liam Gray

Param updatable_config/bad_inputs:

String. String pointing to the location of the config block containing the following properties: “bad_inputs” An array of bad inputs in cylinder order.

Public Functions

bufferBadInputs(kotekan::Config &config_, const std::string &unique_name, kotekan::bufferContainer &buffer_container)

Constructor.

virtual ~bufferBadInputs()

Destructor.

virtual void main_thread() override

Primary loop to wait for buffers, dig through data, stuff packets lather, rinse and repeat.

bool update_bad_inputs_callback(nlohmann::json &json)

Endpoint for providing new bad input updates.