Skip to content
Snippets Groups Projects
Commit 62b189cc authored by Cain, Payton David's avatar Cain, Payton David
Browse files

Black reformat

parent 9e5a8c44
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !33. Comments created here will be created in the context of that merge request.
...@@ -48,7 +48,10 @@ def calculate(reading: Reading, adjust_reference: bool = True) -> Reading: ...@@ -48,7 +48,10 @@ def calculate(reading: Reading, adjust_reference: bool = True) -> Reading:
reference=adjust_reference and reference or None, reference=adjust_reference and reference or None,
) )
# populate diagnostics object with averaged measurements # populate diagnostics object with averaged measurements
diagnostics = Diagnostics(inclination=inclination, meridian=meridian,) diagnostics = Diagnostics(
inclination=inclination,
meridian=meridian,
)
# calculate scale # calculate scale
scale_value = None scale_value = None
scale_measurements = reading[mt.NORTH_DOWN_SCALE] scale_measurements = reading[mt.NORTH_DOWN_SCALE]
......
...@@ -410,11 +410,17 @@ class SpreadsheetAbsolutesFactory(object): ...@@ -410,11 +410,17 @@ class SpreadsheetAbsolutesFactory(object):
"precision": measurement_sheet["H8"].value, "precision": measurement_sheet["H8"].value,
} }
def _parse_diagnostics(self, sheet: openpyxl.worksheet,) -> Diagnostics: def _parse_diagnostics(
self,
sheet: openpyxl.worksheet,
) -> Diagnostics:
""" """
Gather diagnostics from list of measurements Gather diagnostics from list of measurements
""" """
return Diagnostics(inclination=sheet["H40"].value, meridian=sheet["E36"].value,) return Diagnostics(
inclination=sheet["H40"].value,
meridian=sheet["E36"].value,
)
def convert_precision(angle, precision="DMS"): def convert_precision(angle, precision="DMS"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment