[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
825d3e84d2
commit
64745e7ec2
@ -3,10 +3,11 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
from pathlib import Path
|
|
||||||
import urllib
|
import urllib
|
||||||
from tqdm import tqdm
|
from pathlib import Path
|
||||||
|
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
|
from tqdm import tqdm
|
||||||
|
|
||||||
REGION_COLS = ["geometry", "name", "x", "y", "country"]
|
REGION_COLS = ["geometry", "name", "x", "y", "country"]
|
||||||
|
|
||||||
@ -252,8 +253,10 @@ def aggregate_costs(n, flatten=False, opts=None, existing_only=False):
|
|||||||
|
|
||||||
|
|
||||||
def progress_retrieve(url, file):
|
def progress_retrieve(url, file):
|
||||||
|
with tqdm(
|
||||||
|
unit="B", unit_scale=True, unit_divisor=1024, miniters=1, position=0, leave=True
|
||||||
|
) as t:
|
||||||
|
|
||||||
with tqdm(unit='B', unit_scale=True, unit_divisor=1024, miniters=1, position=0, leave=True) as t:
|
|
||||||
def update_to(b=1, bsize=1, tsize=None):
|
def update_to(b=1, bsize=1, tsize=None):
|
||||||
if tsize is not None:
|
if tsize is not None:
|
||||||
t.total = tsize
|
t.total = tsize
|
||||||
|
Loading…
Reference in New Issue
Block a user