diff --git a/hescorehpxml/__init__.py b/hescorehpxml/__init__.py index 7959f85d0..4e8440253 100644 --- a/hescorehpxml/__init__.py +++ b/hescorehpxml/__init__.py @@ -75,7 +75,7 @@ class RoundOutOfBounds(TranslationError): def round_to_nearest(x, vals, tails_tolerance=None): nearest = min(vals, key=lambda y: abs(x - y)) if tails_tolerance is not None: - if x < min(vals) or x > max(vals): + if x < min(vals): if abs(x - nearest) > tails_tolerance: raise RoundOutOfBounds() return nearest @@ -304,7 +304,7 @@ def _get_heating_system_type(self, htgsys): allowed_fuel_types = {'heat_pump': ('electric',), 'mini_split': ('electric',), 'central_furnace': ('natural_gas', 'lpg', 'fuel_oil', 'electric'), - 'wall_furnace': ('natural_gas',), + 'wall_furnace': ('natural_gas', 'lpg'), 'baseboard': ('electric',), 'boiler': ('natural_gas', 'lpg', 'fuel_oil'), 'gchp': ('electric',), @@ -1870,7 +1870,7 @@ def _get_generation(self, b): if manufacture_years: years.append(max(manufacture_years)) # Use the latest year of manufacture else: - raise TranslationError('Either YearInverterManufactured or YearModulesManufactured is required foe every PVSystem.') + raise TranslationError('Either YearInverterManufactured or YearModulesManufactured is required for every PVSystem.') azimuth = self.xpath(pvsystem, 'h:ArrayAzimuth/text()') orientation = self.xpath(pvsystem, 'h:ArrayOrientation/text()') diff --git a/setup.py b/setup.py index 08d710bba..aec2433be 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( name='hescore-hpxml', - version='3.0.0', + version='3.0.1', description='HPXML Translator for the HEScore API', long_description=long_description, url='https://github.com/NREL/hescore-hpxml',