WSL/SLF GitLab Repository

Commit c3b23a2f authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Fixed a bug with the "EXCLUDE" keyword (when a station has no data at all in the buffer)

parent 34b5ff8d
......@@ -423,6 +423,7 @@ void IOHandler::exclude_params(std::vector<METEO_SET>& vecVecMeteo) const
if (excluded_params.empty()) return;
for (size_t station=0; station<vecVecMeteo.size(); ++station) {
if (vecVecMeteo[station].empty()) continue;
const string stationID = vecVecMeteo[station][0].meta.stationID;
const map< string, set<string> >::const_iterator it = excluded_params.find(stationID);
if (it == excluded_params.end()) continue;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment