Skip to content
Snippets Groups Projects

Draft: WIP Positive/negative standard deviation refinement

Open Camilla Compton requested to merge camilla.compton/locklost:pos_neg_std into master
1 unresolved thread
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -69,7 +69,7 @@ def plot_indicators(event, channel, refined_gps, threshold):
"threshold",
xy=(ax1.get_xlim()[0], threshold),
xycoords='data',
xytext=(8, -10),
xytext=(8, -15),
textcoords='offset points',
horizontalalignment='left',
verticalalignment='top',
@@ -154,7 +154,6 @@ def find_transition(channel, segment, std_threshold, minimum=None):
"""
refined_gps = None
threshold = None
buf = data.fetch(channel, segment)[0]
# calculate mean and std using first 5 seconds of window
@@ -191,6 +190,7 @@ def find_transition(channel, segment, std_threshold, minimum=None):
logging.info("threshold: {}".format(threshold))
logging.info("refined time: {}".format(refined_gps))
else:
threshold = lower_threshold # to be shown on graphs
logging.info("no threshold crossings, unable to resolve time")
return threshold, refined_gps
Loading