Commit 92a8dbef authored by Marcus Wirtz's avatar Marcus Wirtz
Browse files

[simulations] Nobody likes you pylint...

parent 232517b2
Pipeline #211541 passed with stages
in 3 minutes and 50 seconds
......@@ -624,7 +624,7 @@ class SourceBound:
from astrotools import skymap
src_labels = np.copy(self.crs['source_labels']).astype(float)
src_labels[src_labels < 0] = np.nan
value, counts = mode(src_labels, axis=1, nan_policy='omit')
_, counts = mode(src_labels, axis=1, nan_policy='omit')
if idx is None:
idx = np.argsort(np.squeeze(counts))[int(self.nsets/2.)]
ns = np.array([np.sum(self.crs['source_labels'][idx] == k) for k in range(self.universe.n_src)])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment