Closed sunwillrise closed 5 years ago
You can automatically remove the elements which mean value is 0 by adding this to the code;
self.get_focus(filt=filt, samples=samples, subset=subset)
for a in analytes:
if np.nanmean(self.focus[a] == 0):
analytes.remove(a)
print(a, " removed.")
Hi @sunwillrise,
Thanks for all your useful comments and suggestions. I'll incorporate them all into the next release.
Oscar.
Hello.
Sometimes your data arrays only contains only zeros, for various reasons. For example, in my case, there was one part looked like this;
This kind of thing causes trouble for the
latools.helpers.helpers.unitpicker()
because in its code it saysIf
a
is zero, this loops forever and it doesn't stop. To avoid this, you can change this toI hope it helps.