Skip to content

Commit 0e76736

Browse files
committed
fix: upgrade black and fix the format
1 parent 57d4c68 commit 0e76736

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mapillary_tools/geo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ def ecef_from_lla(lat: float, lon: float, alt: float) -> Tuple[float, float, flo
1818
Check results here http://www.oc.nps.edu/oc2902w/coord/llhxyz.htm
1919
2020
"""
21-
a2 = WGS84_a ** 2
22-
b2 = WGS84_b ** 2
21+
a2 = WGS84_a**2
22+
b2 = WGS84_b**2
2323
lat = math.radians(lat)
2424
lon = math.radians(lon)
2525
L = 1.0 / math.sqrt(a2 * math.cos(lat) ** 2 + b2 * math.sin(lat) ** 2)

mapillary_tools/uploader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def _reset_retries(_, __):
431431
if emitter:
432432
emitter.emit("upload_interrupted", mutable_payload)
433433
retries += 1
434-
sleep_for = min(2 ** retries, 16)
434+
sleep_for = min(2**retries, 16)
435435
LOG.warning(
436436
# use %s instead of %d because offset could be None
437437
f"Error uploading chunk_size %d at offset %s: %s: %s",

0 commit comments

Comments
 (0)