FakeVis¶
-
class FakeVis : public kotekan::Stage¶
Generate fake visibility data into a
VisBuffer.This stage produces fake visibility data that can be used to feed downstream kotekan stages for testing. It fills its buffer with frames in the
VisBufferformat. Frames are generated for a set of frequencies and a cadence specified in the config.- Todo:
It might be useful eventually to produce realistic looking mock visibilities.
- Buffers
out_bufThe kotekan buffer which will be fed, can be any size.Format: VisBuffer structured
Metadata:
VisMetadata
- Author
Tristan Pinsonneault-Marotte
- Param num_elements:
Int. The number of elements (i.e. inputs) in the correlator data,
- Param block_size:
Int. The block size of the packed data.
- Param num_ev:
Int. The number of eigenvectors to be stored.
- Param freq_ids:
List of int. The frequency IDs to generate frames for.
- Param start_time:
Double. The start time of the range of data (as a Unix time in seconds). This simply changes the time the frames are labelled with. Default is the current time.
- Param cadence:
Float. The interval of time (in seconds) between frames.
- Param mode:
String. How to fill the visibility array. See the set of FakeVisPattern implementations for details.
- Param wait:
Bool. Sleep to try and output data at roughly the correct cadence.
- Param num_frames:
Exit after num_frames have been produced. If less than zero, no limit is applied. Default is
-1.- Param zero_weight:
Bool. Set all weights to zero, if this is True. Default is False.
- Param frequencies:
Array of UInt32. Definition of frequency IDs for mode ‘test_pattern_freq’.
- Param dataset_id:
Int. Use a fixed dataset ID and don’t register states. If not set, the dataset manager will create the dataset ID.
- Param sleep_before:
Float. Sleep for this number of seconds before starting. Useful for allowing other processes to send REST commands. Default is 0s.
- Param sleep_after:
Float. Sleep for this number of seconds after running and before shutting down. Useful for allowing other processes to finish. Default is 1s.
- Param kill_on_complete:
Bool. If true, call exit_kotekan when frame limit is reached. Defaults to true to preserve legacy behaviour.