weecology / EvergladesTools

Computational tools for working with Everglades image data
MIT License
0 stars 2 forks source link

Add ability to force mapbox update via workflow #156

Closed ethanwhite closed 10 months ago

ethanwhite commented 12 months ago

Currently orthomosaic imagery that is already present on mapbox is not updated even if the underlying orthomosaic is changed. This is based on a manual check in upload_mapbox.py to avoid excessive uploads during development.

It is possible to force imagery to be updated when running upload_mapbox.py by using the CLI argument python upload_mapbox.py /path/to/file --force-upload. We should implement a way to pass this argument to Snakemake so that we can trigger this behavior for workflow runs.

Looks like the general approach to this is here: https://snakemake.readthedocs.io/en/stable/snakefiles/configuration.html

See example here: https://stackoverflow.com/a/40523933

ethanwhite commented 10 months ago

Implemented in e246f4e5dfd815a2a44679993a8f3b03e0232670