Skip to content

Commit

Permalink
add section on resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
nonnontrivial committed Nov 2, 2024
1 parent f05585c commit 3f20754
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,19 @@ through H3 cells had the highest brightness (`mpsas` is the measure of brightnes
spread over a square arcsecond of sky, where higher means darker sky with more
stars visible)

## changing the resolution

By default, the producer runs over [resolution 0 cells](https://h3geo.org/docs/core-library/restable/),
but this can be adjusted by setting the environment of the `producer` container in
`docker-compose.yaml`:

```yaml
producer:
build: ./pp
environment:
RESOLUTION: 0
```
## documentation
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ services:
environment:
API_HOST: "api"
RABBITMQ_HOST: "rabbitmq"
RESOLUTION: 0
restart: on-failure
depends_on:
api:
Expand Down
3 changes: 2 additions & 1 deletion pc/tests/test_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def consumer(mock_asyncpg_pool):
amqp_url="amqp://localhost"
prediction_queue="prediction"
return Consumer(
url=amqp_url,prediction_queue=prediction_queue,
url=amqp_url,
prediction_queue=prediction_queue,
cycle_queue="",
connection_pool=mock_asyncpg_pool,
on_cycle_completion=lambda _: None
Expand Down

0 comments on commit 3f20754

Please sign in to comment.