From 9ad7d6e9ae3448c5f2c1089397305ec1844d5882 Mon Sep 17 00:00:00 2001
From: Jeremy Fee <jmfee@usgs.gov>
Date: Thu, 19 Feb 2015 15:07:42 -0700
Subject: [PATCH] Fixes for coding conventions

---
 geomagio/iaga2002/IAGA2002Parser.py      | 2 +-
 geomagio/iaga2002/IAGA2002Parser_test.py | 3 +--
 geomagio/iaga2002/IAGA2002Writer.py      | 6 +++---
 3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/geomagio/iaga2002/IAGA2002Parser.py b/geomagio/iaga2002/IAGA2002Parser.py
index 25906e21f..6bbc11edd 100644
--- a/geomagio/iaga2002/IAGA2002Parser.py
+++ b/geomagio/iaga2002/IAGA2002Parser.py
@@ -186,7 +186,7 @@ class IAGA2002Parser(object):
                 conditions_of_use = comment.replace(
                         'CONDITIONS OF USE:', '').strip()
             else:
-                comment_upper = comment.upper();
+                comment_upper = comment.upper()
                 if 'FILTER' in comment_upper:
                     filter_comments.append(comment)
                 elif 'INTERMAGNET DVD' in comment_upper or \
diff --git a/geomagio/iaga2002/IAGA2002Parser_test.py b/geomagio/iaga2002/IAGA2002Parser_test.py
index 1a702b82d..841994280 100644
--- a/geomagio/iaga2002/IAGA2002Parser_test.py
+++ b/geomagio/iaga2002/IAGA2002Parser_test.py
@@ -105,5 +105,4 @@ def test_parse_decbas():
     """
     parser = IAGA2002Parser()
     parser.parse(IAGA2002_EXAMPLE)
-    print parser.stats
-    assert_equals(parser.stats['declination_base'], '5527')
+    assert_equals(parser.metadata['declination_base'], 5527)
diff --git a/geomagio/iaga2002/IAGA2002Writer.py b/geomagio/iaga2002/IAGA2002Writer.py
index 02f844cea..b1282d73b 100644
--- a/geomagio/iaga2002/IAGA2002Writer.py
+++ b/geomagio/iaga2002/IAGA2002Writer.py
@@ -47,8 +47,8 @@ class IAGA2002Writer(object):
         # build comments
         comments = []
         if 'declination_base' in stats:
-            comments.append('DECBAS               {:<8d}' \
-                    '(Baseline declination value in tenths of minutes East' \
+            comments.append('DECBAS               {:<8d}'
+                    '(Baseline declination value in tenths of minutes East'
                     ' (0-216,000)).'.format(stats.declination_base))
         if 'filter_comments' in stats:
             comments.extend(stats.filter_comments)
@@ -60,7 +60,7 @@ class IAGA2002Writer(object):
             comments.append('Go to www.intermagnet.org for details on' +
                     ' obtaining this product.')
         if 'conditions_of_use' in stats:
-            comments.append('CONDITIONS OF USE: ' + stats.conditions_of_use);
+            comments.append('CONDITIONS OF USE: ' + stats.conditions_of_use)
         # generate comment output
         buf = []
         for comment in comments:
-- 
GitLab