diff --git a/README.md b/README.md index 95cc15f..9b81888 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 30d2012..ec2f3be 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -49,6 +49,7 @@ services: environment: API_HOST: "api" RABBITMQ_HOST: "rabbitmq" + RESOLUTION: 0 restart: on-failure depends_on: api: diff --git a/pc/tests/test_consumer.py b/pc/tests/test_consumer.py index 3d14e21..a88f17a 100644 --- a/pc/tests/test_consumer.py +++ b/pc/tests/test_consumer.py @@ -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