From d85ae159322a27acf46eab193b6e62a4a9038974 Mon Sep 17 00:00:00 2001
From: Jeremy Fee <jmfee@usgs.gov>
Date: Tue, 17 Dec 2019 15:35:34 -0700
Subject: [PATCH] make sure bytes are converted to ints

---
 geomagio/imfv283/IMFV283Parser.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/geomagio/imfv283/IMFV283Parser.py b/geomagio/imfv283/IMFV283Parser.py
index e262e2b66..17552eab3 100644
--- a/geomagio/imfv283/IMFV283Parser.py
+++ b/geomagio/imfv283/IMFV283Parser.py
@@ -365,9 +365,9 @@ class IMFV283Parser(object):
 
         for cnt in range(0, 63):
             # Convert 3 byte "pair" into ordinal values for manipulation.
-            byte3 = msg[offset + ness_byte + 2]
-            byte2 = msg[offset + ness_byte + 1]
-            byte1 = msg[offset + ness_byte]
+            byte3 = int(msg[offset + ness_byte + 2])
+            byte2 = int(msg[offset + ness_byte + 1])
+            byte1 = int(msg[offset + ness_byte])
 
             goes_value1 = (byte3 & 0x3F) + ((byte2 & 0x3) * 0x40)
             goes_value2 = ((byte2 // 0x4) & 0xF) + ((byte1 & 0xF) * 0x10)
-- 
GitLab