From e108aedd797c320a5cbdde5ea34e9540405630bb Mon Sep 17 00:00:00 2001
From: "E. Joshua Rigler" <erigler@usgs.gov>
Date: Mon, 1 Oct 2018 16:17:18 -0600
Subject: [PATCH] Fix linting errors

---
 geomagio/Controller.py              | 2 +-
 geomagio/iaga2002/IAGA2002Writer.py | 4 ++--
 geomagio/imfjson/IMFJSONWriter.py   | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/geomagio/Controller.py b/geomagio/Controller.py
index 2a1515c55..f56a6e1f3 100644
--- a/geomagio/Controller.py
+++ b/geomagio/Controller.py
@@ -607,7 +607,7 @@ def parse_args(args):
             default='variation',
             choices=['variation',
                      'reported',
-                     'provisional', 
+                     'provisional',
                      'adjusted',
                      'quasi-definitive',
                      'definitive'])
diff --git a/geomagio/iaga2002/IAGA2002Writer.py b/geomagio/iaga2002/IAGA2002Writer.py
index c9769160d..c8d815cbd 100644
--- a/geomagio/iaga2002/IAGA2002Writer.py
+++ b/geomagio/iaga2002/IAGA2002Writer.py
@@ -107,8 +107,8 @@ class IAGA2002Writer(object):
         """
         comments = []
         if ('declination_base' in stats and
-            stats.declination_base is not None and
-            (stats.data_type == 'variation' or stats.data_type == 'reported')):
+          stats.declination_base is not None and
+          (stats.data_type == 'variation' or stats.data_type == 'reported')):
             comments.append('DECBAS               {:<8d}'
                     '(Baseline declination value in tenths of minutes East'
                     ' (0-216,000)).'.format(stats.declination_base))
diff --git a/geomagio/imfjson/IMFJSONWriter.py b/geomagio/imfjson/IMFJSONWriter.py
index cc3c213c2..f2988effc 100644
--- a/geomagio/imfjson/IMFJSONWriter.py
+++ b/geomagio/imfjson/IMFJSONWriter.py
@@ -79,10 +79,10 @@ class IMFJSONWriter(object):
             metadata['channel'] = edge_channel
             if stats.location == "":
                 if (stats.data_type == 'variation' or
-                    stats.data_type == 'reported'):
+                  stats.data_type == 'reported'):
                     stats.location = 'R0'
                 elif (stats.data_type == 'adjusted' or
-                    stats.data_type == 'provisional'):
+                  stats.data_type == 'provisional'):
                     stats.location = 'A0'
                 elif stats.data_type == 'quasi-definitive':
                     stats.location = 'Q0'
-- 
GitLab