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

consistency in geography selections #73

Open
ericnost opened this issue Feb 6, 2024 · 0 comments
Open

consistency in geography selections #73

ericnost opened this issue Feb 6, 2024 · 0 comments
Milestone

Comments

@ericnost
Copy link
Member

ericnost commented Feb 6, 2024

Generally, there are two ways to select a geography of interest:

  1. manually writing it out in code
from ECHO_modules.make_data_sets import make_data_sets # Import relevant module
ds = make_data_sets(["RCRA Violations"]) # Create a DataSet for handling the data
erie_rcra_violations = ds["RCRA Violations"].store_results(region_type="County", region_value=["ERIE"], state="NY")
  1. using the region widgets

Ultimately, our functions expect different geographies to be formatted differently. For instance, counties must be in lists in order for the get_facs_in_counties function to work. Because of the region input widget, zip codes and watersheds must be formatted as strings like '52358,53703' although passing that string to get_spatial_data won't work because it expects a list.

@ericnost ericnost added this to the v1.0.0 milestone Feb 23, 2024
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