Skip to content

Commit

Permalink
propogate skip_validation
Browse files Browse the repository at this point in the history
  • Loading branch information
nllong committed Jan 30, 2025
1 parent ac7fdb3 commit 1298da7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions urbanopt_des/urbanopt_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,6 @@ def resample_actual_data(self) -> None:
for building_id in self.geojson.get_building_ids():
meters = self.geojson.get_meters_for_building(building_id)
for meter in meters:
# print(f"Processing meter {meter} for building {building_id}")

meter_readings = self.geojson.get_meter_readings_for_building(building_id, meter)
# add the meter_type to all the json objects
[meter_reading.update({"meter_type": meter, "building_id": building_id}) for meter_reading in meter_readings]
Expand Down
4 changes: 2 additions & 2 deletions urbanopt_des/urbanopt_geojson.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@


class DESGeoJSON(UrbanOptGeoJson):
def __init__(self, filename: Path):
super().__init__(filename)
def __init__(self, filename: Path, building_ids=None, skip_validation=False):
super().__init__(filename, building_ids, skip_validation)

def create_aggregated_representation(self, building_names: list[str]) -> None:
"""Go through the GeoJSON file and if it is of type Building, then aggregate the characteristics.
Expand Down

0 comments on commit 1298da7

Please sign in to comment.