File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -320,6 +320,27 @@ def calc(self, signal=None):
320320
321321
322322
323+ def get_fit_nodelay (self ):
324+ """
325+ New nodelay version of NxM fits. Just returns the nxm best fit
326+ at the index of pretrigger_samples
327+ """
328+
329+ amp_all = self ._amps_alltimes_rolled
330+ chi2_all = self ._chi2_alltimes_rolled
331+ pretrigger_samples = self ._pretrigger_samples
332+
333+ amp = amp_all [:,pretrigger_samples ]
334+ t0 = (pretrigger_samples )/ self ._fs
335+ chi2 = chi2_all [pretrigger_samples ]
336+
337+ # save
338+ self ._of_amp_nodelay = amp
339+ self ._of_chi2_nodelay = chi2
340+ self ._of_t0_nodelay = t0
341+
342+ return amp , t0 , chi2
343+
323344 def get_fit_withdelay (self ,
324345 window_min_from_trig_usec = None ,
325346 window_max_from_trig_usec = None ,
You can’t perform that action at this time.
0 commit comments