-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Code reuse modificationsChanges needed for reusing existing code for other featuresChanges needed for reusing existing code for other features
Description
Currently, ObservationHeader has all possible dada header parameters to encompass the wide variety of dada files that we have (antenna voltages, beams, stats). While reading dada files, only a subset of these parameters are present, and since the header.get function has a
if(strcmp("unset", _buffer) == 0) {
throw std::runtime_error(std::string("The header key ") + key +
" was unset");
}We always hit a runtime error. I have now changed this into a warning, but a more elegant solution of having a subset of dada headers for each file class, that gets passed on to the read_dada_header function of ObservationHeader.cpp is essential. Any ideas?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Code reuse modificationsChanges needed for reusing existing code for other featuresChanges needed for reusing existing code for other features