Preprocessor.rank_filter# Preprocessor.rank_filter(template, rank)[source]# Perform rank filtering. Parameters: templateNDArrayThe input atomic structure map. rankintFootprint value. 0 -> minimum filter, -1 -> maximum filter. Returns: NDArraySimulated electron densities.