Skip to content

Commit

Permalink
fallback to core:description for anno label
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Gilbert authored and schneider42 committed Nov 4, 2022
1 parent 6b8a440 commit b1dd038
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/inputsource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@ void InputSource::readMetaData(const QString &filename)
auto frequencyRange = range_t<double>{freq_lower_edge, freq_upper_edge};

auto label = sigmf_annotation["core:label"].toString();
if (label.isEmpty()) {
label = sigmf_annotation["core:description"].toString();
}

annotationList.emplace_back(sampleRange, frequencyRange, label);
}
Expand Down

0 comments on commit b1dd038

Please sign in to comment.