def test_readepw_data_length(): # Is this returning the correct amount of data? 34 x 8760 (EPW_DATA, EPW_METADATA) = bifacial_radiance.readepw( filename=TESTDATA_FILENAME ) # this is done outside of an assert, but maybe that's ok? assert EPW_DATA.__len__() == 8760 assert EPW_DATA.columns.__len__() == 34
def test_readepw_data_values(): # Is this returning the correct data maxima? (EPW_DATA, EPW_METADATA) = bifacial_radiance.readepw( filename=TESTDATA_FILENAME ) # this is done outside of an assert, but maybe that's ok? assert EPW_DATA['Dry bulb temperature in C'].max() == 36.7 assert EPW_DATA['Global horizontal radiation in Wh/m2'].max() == 1029
def test_readepw_metadata(): # Is this returning correct metadata? (EPW_DATA, EPW_METADATA) = bifacial_radiance.readepw( filename=TESTDATA_FILENAME ) # this is done outside of an assert, but maybe that's ok? assert EPW_METADATA == { 'Name': 'BOULDER', 'State': 'USA', 'TZ': -7.0, 'USAF': 724699, 'altitude': 1634.0, 'latitude': 40.02, 'longitude': -105.25 }