metrics.sample.sample_punch module

class SamplePunch(simulation_radius: int, sample_radius: int, center: tuple)[source]

Bases: metrics.sample.sample.Sample

Representation of a simulated sample in punch shape.

The punch samples represent punch biopsies, which use a circular blade to remove a tissue sample.

simulation_radius

Radius of the simulation.

Type

int

sample_radius

Radius at which sample is taken.

Type

int

center

Center of the punch sample.

Type

Coordinate

get_sample_key() str[source]

Get key that describes sample method.

Returns

Sample key which includes sampling method, sample radius, and center coordinate.

select_sample_locations() List[tuple][source]

Get a list of punch sampling locations.

Returns

Coordinates for punch sample locations.