Skip to content
Snippets Groups Projects
Commit 4b681590 authored by Erin (Josh) Rigler's avatar Erin (Josh) Rigler
Browse files

Added command-line option to set Z-score threshold

Fixes #131
parent 265d1f32
No related branches found
No related tags found
No related merge requests found
...@@ -606,6 +606,9 @@ class SqDistAlgorithm(Algorithm): ...@@ -606,6 +606,9 @@ class SqDistAlgorithm(Algorithm):
parser.add_argument('--sqdist-statefile', parser.add_argument('--sqdist-statefile',
default=None, default=None,
help='File to store state between calls to algorithm') help='File to store state between calls to algorithm')
parser.add_argument('--sqdist-zthresh',
default=6,
help='Set Z-score threshold')
def configure(self, arguments): def configure(self, arguments):
"""Configure algorithm using comand line arguments. """Configure algorithm using comand line arguments.
...@@ -622,4 +625,5 @@ class SqDistAlgorithm(Algorithm): ...@@ -622,4 +625,5 @@ class SqDistAlgorithm(Algorithm):
self.m = arguments.sqdist_m self.m = arguments.sqdist_m
self.mag = arguments.sqdist_mag self.mag = arguments.sqdist_mag
self.statefile = arguments.sqdist_statefile self.statefile = arguments.sqdist_statefile
self.zthresh = arguments.sqdist_zthresh
self.load_state() self.load_state()
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