MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / setRelativeHumidity

Method setRelativeHumidity

src/utilities/filetypes/EpwFile.cpp:1883–1892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1881}
1882
1883bool EpwDataPoint::setRelativeHumidity(double value) {
1884 if (0 > value) {
1885 m_relativeHumidity = "999";
1886 return false;
1887 } else if (110 < value) {
1888 LOG_FREE(Warn, "openstudio.EpwFile", "RelativeHumidity value '" << value << "' not within the expected limits");
1889 }
1890 m_relativeHumidity = std::to_string(value);
1891 return true;
1892}
1893
1894bool EpwDataPoint::setRelativeHumidity(const std::string& relativeHumidity) {
1895 bool ok;

Callers 1

fromEpwStringsMethod · 0.80

Calls 1

stringToDoubleFunction · 0.85

Tested by

no test coverage detected