From 0e76736e1aa310cb21acf159a09115c8882e2b7d Mon Sep 17 00:00:00 2001 From: Tao Peng Date: Fri, 11 Feb 2022 09:34:01 -0800 Subject: [PATCH] fix: upgrade black and fix the format --- mapillary_tools/geo.py | 4 ++-- mapillary_tools/uploader.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mapillary_tools/geo.py b/mapillary_tools/geo.py index 189b8dfe..c5433885 100644 --- a/mapillary_tools/geo.py +++ b/mapillary_tools/geo.py @@ -18,8 +18,8 @@ def ecef_from_lla(lat: float, lon: float, alt: float) -> Tuple[float, float, flo Check results here http://www.oc.nps.edu/oc2902w/coord/llhxyz.htm """ - a2 = WGS84_a ** 2 - b2 = WGS84_b ** 2 + a2 = WGS84_a**2 + b2 = WGS84_b**2 lat = math.radians(lat) lon = math.radians(lon) L = 1.0 / math.sqrt(a2 * math.cos(lat) ** 2 + b2 * math.sin(lat) ** 2) diff --git a/mapillary_tools/uploader.py b/mapillary_tools/uploader.py index aa030b34..b0437a90 100644 --- a/mapillary_tools/uploader.py +++ b/mapillary_tools/uploader.py @@ -431,7 +431,7 @@ def _reset_retries(_, __): if emitter: emitter.emit("upload_interrupted", mutable_payload) retries += 1 - sleep_for = min(2 ** retries, 16) + sleep_for = min(2**retries, 16) LOG.warning( # use %s instead of %d because offset could be None f"Error uploading chunk_size %d at offset %s: %s: %s",