com1DFA.particleTools.removePart
- removePart(particles, mask, nRemove, reasonString='', snowSlide=0)[source]
remove given particles
- Parameters
particles (dict) – particles dictionary
mask (1D numpy array) – particles to keep
nRemove (int) – number of particles removed
reasonString (str) – reason why removing particles - for log message
- Returns
particles – particles dictionary
- Return type
dict