Skip to content
Snippets Groups Projects
Unverified Commit 811adb91 authored by Jeremy M Fee's avatar Jeremy M Fee Committed by GitHub
Browse files

Merge pull request #238 from erigler-usgs/issue-236

Fix AlgorithmException string in SqDistAlgorithm
parents 7ea6bbea 92155022
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ class WebServiceUsage(object): ...@@ -33,7 +33,7 @@ class WebServiceUsage(object):
ids += "<code>" + obs_id + "</code>" ids += "<code>" + obs_id + "</code>"
if idx != len(observatories) - 1: if idx != len(observatories) - 1:
ids += ", " ids += ", "
if idx % 9 == 0 and idx is not 0: if idx % 9 == 0 and idx != 0:
ids += "<br/>" ids += "<br/>"
usage_body = """ usage_body = """
<!doctype html> <!doctype html>
......
...@@ -221,7 +221,7 @@ class SqDistAlgorithm(Algorithm): ...@@ -221,7 +221,7 @@ class SqDistAlgorithm(Algorithm):
# state not correct # state not correct
raise AlgorithmException( raise AlgorithmException(
'Inconsistent SQDist algorithm state' + '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.station,
trace.stats.channel, trace.stats.channel,
trace.stats.delta, trace.stats.delta,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment