Skip to content

Commit

Permalink
Merge branch 'develop' into sam-638-irr-cashloan
Browse files Browse the repository at this point in the history
  • Loading branch information
cpaulgilman committed Oct 18, 2024
2 parents 866be6e + e1c8169 commit 932010a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion shared/lib_windfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,13 @@ bool windfile::read_line( std::vector<double> &values )
// WIND Toolkit API returns "N/A" in data columns for requested heights that are not available
// this can happen when requesting data for all available heights by not including any attributes
// in the API call
if ( util::lower_case(cols[i]) == "n/a")
if (util::lower_case(cols[i]) == "n/a")
values.push_back(std::numeric_limits<double>::quiet_NaN());
else if (cols[i] == "") // missing data
{
m_errorMsg = util::format("data is missing from column %d", i+1);
return false;
}
else
values.push_back(std::stof(cols[i]));
}
Expand Down

0 comments on commit 932010a

Please sign in to comment.