Skip to content
Snippets Groups Projects
Commit b88a56f1 authored by Arin Wongprommoon's avatar Arin Wongprommoon
Browse files

fix(postproc): crosscorr catches case where 2nd trace is defined

WHY IS THIS CHANGE NEEDED?:
- https://gitlab.com/aliby/aliby/-/jobs/4743945774 complains
  "UnboundLocalError: local variable 'trace_B' referenced before
  assignment".
- i had forgotten the case where trace_B is defined
parent 97ed1cbb
No related branches found
No related tags found
No related merge requests found
...@@ -115,6 +115,8 @@ class crosscorr(PostProcessABC): ...@@ -115,6 +115,8 @@ class crosscorr(PostProcessABC):
if trace_dfB is None: if trace_dfB is None:
trace_dfB = trace_dfA trace_dfB = trace_dfA
trace_B = trace_A trace_B = trace_A
else:
trace_B = trace_dfB.to_numpy()
# find deviation from the mean # find deviation from the mean
dmean_A, stdA = _dev(trace_A, n_replicates, n_tps, self.stationary) dmean_A, stdA = _dev(trace_A, n_replicates, n_tps, self.stationary)
dmean_B, stdB = _dev(trace_B, n_replicates, n_tps, self.stationary) dmean_B, stdB = _dev(trace_B, n_replicates, n_tps, self.stationary)
......
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