diff --git a/geomagio/residual/Calculation.py b/geomagio/residual/Calculation.py index b4564260a52a6aabfccd93d6cc6669171e3d2fb1..ddc108a4daeecd4e9007bb1d49de9cc63e040ca6 100644 --- a/geomagio/residual/Calculation.py +++ b/geomagio/residual/Calculation.py @@ -48,7 +48,10 @@ def calculate(reading: Reading, adjust_reference: bool = True) -> Reading: reference=adjust_reference and reference or None, ) # populate diagnostics object with averaged measurements - diagnostics = Diagnostics(inclination=inclination, meridian=meridian,) + diagnostics = Diagnostics( + inclination=inclination, + meridian=meridian, + ) # calculate scale scale_value = None scale_measurements = reading[mt.NORTH_DOWN_SCALE] diff --git a/geomagio/residual/SpreadsheetAbsolutesFactory.py b/geomagio/residual/SpreadsheetAbsolutesFactory.py index ea0f300a242a5038d83fd52eaa7ae7851bc98807..1f50f794faff107c7663f9c7db9ba947749a1c1b 100644 --- a/geomagio/residual/SpreadsheetAbsolutesFactory.py +++ b/geomagio/residual/SpreadsheetAbsolutesFactory.py @@ -410,11 +410,17 @@ class SpreadsheetAbsolutesFactory(object): "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 """ - 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"):