Bug fixing in usage factory
This commit is contained in:
parent
6a7603f039
commit
e455dce9af
|
@ -27,9 +27,9 @@ class UsBaseUsageParameters:
|
|||
break
|
||||
continue
|
||||
else:
|
||||
city_object.usage_zone = [UsBaseUsageParameters._parse_zone_usage_type(zone_usage_type, usage_zone)]
|
||||
city_object.usage_zones = [UsBaseUsageParameters._parse_zone_usage_type(zone_usage_type, usage_zone)]
|
||||
break
|
||||
if city_object.usage_zone is None:
|
||||
if city_object.usage_zones is None:
|
||||
print(city_object.function)
|
||||
raise Exception('Usage not found for building function')
|
||||
|
||||
|
|
|
@ -4,4 +4,5 @@ from usage.usage_feeders.helpers.us_pluto_to_usage import UsPlutoToUsage as Pu
|
|||
|
||||
class UsNewYorkCityUsageParameters(UsBaseUsageParameters):
|
||||
def __init__(self, city):
|
||||
super().__init__(city, Pu.usage)
|
||||
self._city = city
|
||||
super().__init__(self._city, Pu.usage)
|
||||
|
|
Loading…
Reference in New Issue
Block a user