Skip to content

Commit

Permalink
fix: upgrade black and fix the format
Browse files Browse the repository at this point in the history
  • Loading branch information
ptpt committed Feb 11, 2022
1 parent 57d4c68 commit 0e76736
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mapillary_tools/geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion mapillary_tools/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0e76736

Please sign in to comment.