wri / gfw_forest_loss_geotrellis

Global Tree Cover Loss Analysis using Geotrellis and SPARK
MIT License
10 stars 8 forks source link

Provide explicit flag to allow overwriting of output files #127

Closed jpolchlo closed 2 years ago

jpolchlo commented 3 years ago

Pull request checklist

Please check if your PR fulfills the following requirements:

Pull request type

Please check the type of change your PR introduces: - [ ] Bugfix - [x] Feature - [ ] Code style update (formatting, renaming) - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [ ] Documentation content changes - [ ] Other (please describe): ## What is the current behavior?

When attempting to test, it can be a nuisance to have to target a new output location for repeated runs. In the present code base, failing to specify an unused output location results in failures to write.

Issue Number: N/A

What is the new behavior?

The new behavior allows the specification of an --overwrite flag that will allow successive test runs to re-use output locations.

Does this introduce a breaking change?

Other information

echeipesh commented 2 years ago

Oops, I somehow stole your work and added it as part of https://github.com/wri/gfw_forest_loss_geotrellis/pull/128 .. thank you for this, it's been helpful in testing