def test_read_epw_coerce_year(): coerce_year = 1987 data, _ = epw.read_epw(epw_testfile, coerce_year=coerce_year) assert (data.index.year == 1987).all()
def test_read_epw(): epw.read_epw(epw_testfile)
def test_read_epw_remote(): url = 'https://energyplus.net/weather-download/europe_wmo_region_6/NLD//NLD_Amsterdam.062400_IWEC/NLD_Amsterdam.062400_IWEC.epw' epw.read_epw(url)
def test_read_epw_coerce_year(): coerce_year = 1987 data, meta = epw.read_epw(epw_testfile, coerce_year=coerce_year) assert (data.index.year == 1987).all()
def test_read_epw_remote(): url = 'https://energyplus.net/weather-download/europe_wmo_region_6/NLD//NLD_Amsterdam.062400_IWEC/NLD_Amsterdam.062400_IWEC.epw' epw.read_epw(url)
def test_read_epw(): epw.read_epw(epw_testfile)
def test_read_epw_remote(): url = 'https://energyplus-weather.s3.amazonaws.com/europe_wmo_region_6/NLD/NLD_Amsterdam.062400_IWEC/NLD_Amsterdam.062400_IWEC.epw' epw.read_epw(url)