Skip to content

Commit

Permalink
Update atlite/gis.py
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Hofmann <[email protected]>
  • Loading branch information
fneum and FabianHofmann committed Jul 11, 2024
1 parent a3997ff commit 1b3a3c0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions atlite/gis.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,22 +729,10 @@ def compute_availabilitymatrix(
)

if nprocesses is None:
logger.info(
"You can disable the progress bar by setting 'disable_progressbar=True'."
)

if not disable_progressbar:
tqdm_kwargs = dict(
ascii=False,
unit=" gridcells",
total=len(shapes),
desc="Compute availability matrix",
)
iterator = tqdm(shapes.index, **tqdm_kwargs)
else:
logger.info("Progress bar is disabled.")
iterator = shapes.index

with catch_warnings():
simplefilter("ignore")
for i in iterator:
Expand Down

0 comments on commit 1b3a3c0

Please sign in to comment.