From 27603444735f07c3a88562feb11ebb2165aa279b Mon Sep 17 00:00:00 2001
From: "E. Joshua Rigler" <erigler@usgs.gov>
Date: Mon, 4 Feb 2019 16:26:19 -0700
Subject: [PATCH] Fix AlgorithmException string in SqDistAlgorithm

As per discussion in geomag-algorithms issue #236, swap the "state" and "process"
strings in the AlgorithmException string.
---
 geomagio/algorithm/SqDistAlgorithm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/geomagio/algorithm/SqDistAlgorithm.py b/geomagio/algorithm/SqDistAlgorithm.py
index b320945f3..12d99564a 100644
--- a/geomagio/algorithm/SqDistAlgorithm.py
+++ b/geomagio/algorithm/SqDistAlgorithm.py
@@ -221,7 +221,7 @@ class SqDistAlgorithm(Algorithm):
                 # state not correct
                 raise AlgorithmException(
                         'Inconsistent SQDist algorithm state' +
-                        ' state(%s, %s, %s, %s) <> process(%s, %s, %s, %s)' %
+                        ' process(%s, %s, %s, %s) <> state(%s, %s, %s, %s)' %
                                 (trace.stats.station,
                                 trace.stats.channel,
                                 trace.stats.delta,
-- 
GitLab