Skip to content

Commit

Permalink
check specifically for city owned buildings and cps logos
Browse files Browse the repository at this point in the history
  • Loading branch information
SuragNuthulapaty committed Jan 12, 2024
1 parent 1142d16 commit 4be2780
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/data/scripts/find_city_buildings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ def find_addresses():
for j, whole_file_line in enumerate(whole_file):
print(i, j)
address = whole_file_line.split(",")[MAIN_FILE_ADDRESS_INDEX]
if line["Address"].lower().strip().replace(" ", "") == address.lower().strip().replace(" ", ""):
if line["Address"].lower().strip().replace(" ", "") == address.lower().strip().replace(" ", "") and line["Managing Organization"] == "AIS":
found.append(whole_file_line.split(",")[MAIN_FILE_ID_INDEX])
break

if i%50 == 49:
print(found)
with open("temp.txt", "w") as f:
f.write(str(len(found)))
f.write("/n")
Expand All @@ -36,7 +35,7 @@ def print_tags():
for line in whole_dict:
if line["ID"] in found:
print("// "+line["Property Name"])
print(line["ID"] + ": { owner: BuildingOwners.cityofchicago.key },")
print("'" + line["ID"] + "'" + ": { owner: BuildingOwners.cityofchicago.key },")
found.remove(line["ID"])

find_addresses()
Expand Down
Binary file added static/building-owners/cps/cps-large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/building-owners/cps/cps-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4be2780

Please sign in to comment.