Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build_zoning fails when we do not save hex_bins to the database #39

Open
pedrocamargo opened this issue Jan 25, 2023 · 1 comment
Open

Comments

@pedrocamargo
Copy link
Contributor

File /workspaces/tradesman/notebooks/../tradesman/model.py:128, in Tradesman.build_zoning(self, hexbin_size, max_zone_pop, min_zone_pop, save_hexbins, overwrite)
126 if sum(self._project.conn.execute("Select count(*) from Zones").fetchone()) > 0:
127 return
--> 128 zone_builder(self._project, hexbin_size, max_zone_pop, min_zone_pop, save_hexbins)

File /workspaces/tradesman/notebooks/../tradesman/model_creation/zoning/zone_building.py:44, in zone_builder(project, hexbin_size, max_zone_pop, min_zone_pop, save_hexbins)
42 zones_with_pop = zones_with_population(project, zones_with_locations)
43 print("\n after zones_with_pop", strftime("%Y-%m-%d %H:%M:%S", gmtime()))
---> 44 project.conn.execute("DELETE FROM hex_pop;")
45 project.conn.execute("DELETE FROM zones;")
46 project.conn.commit()

OperationalError: no such table: hex_pop

@pedrocamargo
Copy link
Contributor Author

Was this fixed, @r-akemii ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant