Skip to content

Commit

Permalink
fix eslint, prettier conflicts (CodeForPhilly#811)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlebovits authored Jul 19, 2024
1 parent a64b927 commit 9f2effb
Show file tree
Hide file tree
Showing 92 changed files with 7,019 additions and 10,542 deletions.
20 changes: 10 additions & 10 deletions data/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro

extra_hosts:
extra_hosts:
- host.docker.internal:host-gateway
network_mode: "host"
network_mode: 'host'

formatter:
build:
Expand All @@ -28,7 +28,7 @@ services:
volumes:
- ./src:/usr/src/app
command: sh -c "pipenv run black /usr/src/app"
network_mode: "host"
network_mode: 'host'

streetview:
build:
Expand All @@ -39,16 +39,16 @@ services:
- CLEAN_GREEN_GOOGLE_KEY
- VACANT_LOTS_DB
- GOOGLE_CLOUD_BUCKET_NAME

volumes:
- ./src:/usr/src/app
- ~/.config/gcloud/application_default_credentials.json:/app/service-account-key.json
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /etc/localtime:/etc/localtime:ro
command: sh -c "pipenv run python streetview.py"
extra_hosts:
extra_hosts:
- host.docker.internal:host-gateway
network_mode: "host"
network_mode: 'host'

postgres:
container_name: cagp-postgres
Expand All @@ -61,13 +61,13 @@ services:
- POSTGRES_PASSWORD
restart: always
ports:
- "5433:5433"
- '5433:5433'
volumes:
- database_volume:/var/lib/postgresql/data
- ./init_pg.sql:/docker-entrypoint-initdb.d/init_pg.sql
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
extra_hosts:
- /etc/localtime:/etc/localtime:ro
extra_hosts:
- host.docker.internal:host-gateway

volumes:
Expand Down
6,318 changes: 3,156 additions & 3,162 deletions data/src/Pipfile.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions data/src/awkde/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Just clone the repository and invoke `pip`:
git clone https://github.com/mennthor/awkde
pip install [--user] [-e] ./awkde
```

Note: `--user` and `-e` are optional. Use `--user` to install in your user site-package directory (recommended) and `-e` if you want to only link the files to the site-package directories, so that when you make any changes in your local copy, you don't have to reinstall all the time.

Try to run the `example/examply.py`:
Expand All @@ -25,7 +26,6 @@ You should get this plot in the examples folder (you need matplotlib for the plo

![example plot](example/example.png)


## Algorithm

The unweighted kernel density estimator is defined as
Expand Down Expand Up @@ -58,8 +58,8 @@ All credit for the method goes to [1] and to S. Schoenen and L. Raedel for
huge parts of the implementation.
For information on Silverman or Scott rule, see [2] or [3].


## References

- [1] B. Wang and X. Wang, "Bandwidth Selection for Weighted Kernel Density Estimation", Sep. 2007, DOI: 10.1214/154957804100000000.
- [2] D.W. Scott, "Multivariate Density Estimation: Theory, Practice, and Visualization", John Wiley & Sons, New York, Chicester, 1992.
- [3] B.W. Silverman, "Density Estimation for Statistics and Data Analysis", Vol. 26, Monographs on Statistics and Applied Probability, Chapman and Hall, London, 1986.
Loading

0 comments on commit 9f2effb

Please sign in to comment.