Skip to content

Commit affa85c

Browse files
committed
Add option to select type of intensity to calculate RSD (2)
1 parent de7e01b commit affa85c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dimspy/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def process_scans(source, function_noise, snr_thres, ppm, min_fraction=None, rsd
106106
if sum(pl.shape[0] for pl in pls_scans[h]) == 0:
107107
logging.warning("No scan data available for {}".format(h))
108108
else:
109-
pl_avg = average_replicate_scans(h, pls_scans[h], ppm, min_fraction, rsd_thres, block_size, ncpus)
109+
pl_avg = average_replicate_scans(h, pls_scans[h], ppm, min_fraction, rsd_thres, "intensity", block_size, ncpus)
110110
pls_avg.append(pl_avg)
111111
n_peaks, median_rsd = pl_avg.shape[0], np.nanmedian(pl_avg.rsd)
112112
else:

0 commit comments

Comments
 (0)