From 197c7d138e5f461514398ef66890e4800a1b11b3 Mon Sep 17 00:00:00 2001 From: pcain-usgs <pcain@usgs.gov> Date: Tue, 22 Sep 2020 16:11:16 -0600 Subject: [PATCH] Black reformat --- geomagio/residual/Calculation.py | 5 ++++- geomagio/residual/SpreadsheetAbsolutesFactory.py | 10 ++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/geomagio/residual/Calculation.py b/geomagio/residual/Calculation.py index b4564260a..ddc108a4d 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 ea0f300a2..1f50f794f 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"): -- GitLab