[docs]classFilterOutlier(base.IPSNode):"""Remove outliers from the data based on a given property. Attributes ---------- key : str, default="energy" The property to filter on. threshold : float, default=3 The threshold for filtering in units of standard deviations. direction : {"above", "below", "both"}, default="both" The direction to filter in. """data:list[ase.Atoms]=zntrack.deps()key:str=zntrack.params("energy")threshold:float=zntrack.params(3)direction:t.Literal["above","below","both"]=zntrack.params("both")filtered_indices:list=zntrack.outs()histogram:str=zntrack.outs_path(zntrack.nwd/"histogram.png")