Box Counting Tool

Module for counting the particles into the boxes.

class countoscope.boxcountingtool.BoxCountingTool(box_size: None, start=None, stop=None, *args, **kwargs)

Bases: TrajectoryTool

Class for tools based on counting particles in boxes

allocate_memory()

Create empty array for the particle counting.

prepare_boxes()
prepare_run()

Detect starting and stopping frames for analysis.

run_counting()
select_the_slices()

Select the edged positions of the measurement boxes.

If possible, i.e. if the system size can be divided into an even number of measurement boxes, the box_size provided by the user is used. Otherwise, the box_size is recalculated to allow for a slicing in evenly-sized boxes.

specify_measurement_box_size()

Calculate the measurement box size in all N dimensions.

store_particle_into_boxes()

Run over the trajectory and place the particles into number_matrix