From bec58232eb19c2460c801f239a4a3e4bf3edcc3b Mon Sep 17 00:00:00 2001
From: Yash Shah <yashshah0127@gmail.com>
Date: Fri, 20 Jan 2017 23:08:47 -0800
Subject: [PATCH] Change integer divisions from / to //

---
 geomagio/algorithm/SqDistAlgorithm.py | 10 +++++-----
 geomagio/imfv283/IMFV283Parser.py     |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/geomagio/algorithm/SqDistAlgorithm.py b/geomagio/algorithm/SqDistAlgorithm.py
index faec56ab7..a3e65e911 100644
--- a/geomagio/algorithm/SqDistAlgorithm.py
+++ b/geomagio/algorithm/SqDistAlgorithm.py
@@ -471,13 +471,13 @@ class SqDistAlgorithm(Algorithm):
 
                 # distribute error correction across range of seasonal
                 # corrections according to weights calculated above
-                s[i + m] = s[i] + gamma * (1 - alpha) * et * weights[nts / 2]
-                s[i + m - nts / 2:i + m] = (s[i + m - nts / 2:i + m] +
+                s[i + m] = s[i] + gamma * (1 - alpha) * et * weights[nts // 2]
+                s[i + m - nts // 2:i + m] = (s[i + m - nts // 2:i + m] +
                                             gamma * (1 - alpha) * et *
-                                            weights[:nts / 2])
-                s[i + 1:i + nts / 2 + 1] = (s[i + 1:i + nts / 2 + 1] +
+                                            weights[:nts // 2])
+                s[i + 1:i + nts // 2 + 1] = (s[i + 1:i + nts // 2 + 1] +
                                             gamma * (1 - alpha) * et *
-                                            weights[nts / 2 + 1:])
+                                            weights[nts // 2 + 1:])
 
                 # update l and b using equation-error formulation
                 l = l + phi * b + alpha * et
diff --git a/geomagio/imfv283/IMFV283Parser.py b/geomagio/imfv283/IMFV283Parser.py
index 1a852f510..3f60941fd 100644
--- a/geomagio/imfv283/IMFV283Parser.py
+++ b/geomagio/imfv283/IMFV283Parser.py
@@ -334,7 +334,7 @@ class IMFV283Parser(object):
             byte1 = ord(msg[offset + ness_byte])
 
             goes_value1 = (byte3 & 0x3F) + ((byte2 & 0x3) * 0x40)
-            goes_value2 = ((byte2 / 0x4) & 0xF) + ((byte1 & 0xF) * 0x10)
+            goes_value2 = ((byte2 // 0x4) & 0xF) + ((byte1 & 0xF) * 0x10)
 
             # swap the bytes depending on domsat information.
             if domsat['swap_hdr'] and cnt <= 11 or \
-- 
GitLab