Skip to content

Conversation

@jacobwhall
Copy link
Contributor

Calculating a distance raster can sometimes take a long time. This PR adds the option to pass progress_bar=True to the __init__ function of the DistanceRaster class. When this option is enabled, the tqdm package is used to display a progress bar.

jacobwhall added 2 commits May 1, 2024 15:51
- add tqdm to list of dependencies in setup.cfg
- add tqdm to imports in main.py
- add itertools.product import to main.py
- reformat imports in main.py using isort
- progress bar will only be displayed if the kwarg "progress_bar"
  is passed to DistanceRaster.__init__() as True
@sgoodm sgoodm merged commit f46109a into sgoodm:master May 7, 2024
@jacobwhall jacobwhall deleted the progress-bar branch May 8, 2024 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants