packing_defect.core.grid

Functions

cluster_sizes(self, leaflet)

Classes

DefectGrid(box_xy[, dx, dy, hz])

class packing_defect.core.grid.DefectGrid(box_xy, dx=1.0, dy=1.0, hz=None)[source]

Bases: object

cluster_sizes(leaflet)[source]
get_binary_mask(leaflet: str, threshold: int) ndarray[source]

Return a binary mask where the defect grid matches the given threshold.

get_coordinates(leaflet, code)[source]
update(x, y, z, r, code, leaflet)[source]
packing_defect.core.grid.cluster_sizes(self, leaflet)[source]