Skip to content

Conversation

@ns-rse
Copy link
Collaborator

@ns-rse ns-rse commented Dec 8, 2025

Partially address #48 by counting the number of objects per-layer and plotting them.

This reverts commit 8854b13.

Yet again files haven't been ignored and changes need reverting >:(
Closes #48

Calculates...

- Number of pores per layer
- Area of pores on each layer
- Centroid of each pore on each layer
- Maximum feret distance of each pore on each layer

Plots the layer v number of pores (or optionally log of number of layers)

Includes tests for each of these.

Adds attributes for these to the `AFMSlicer` class and populates these on instantiation

- `AFMSlicer.sliced_region_properties`
- `AFMSlicer.pores_per_layer`
- `AFMSlicer.fig_objects_per_layer`
- `AFMSlicer.fig_log_objects_per_layer`
@ns-rse ns-rse added the enhancement New feature or request label Dec 8, 2025
Closes #48

- Adds `plotting.plot_area_by_layer()` to plot the total area (or log of total area) of objects within a layer.
- Adds attributes to the `AFMSlicer` class to store these in.
- Adds steps to `__post_init__` to generate these plots conditional on the configuration.
- Sets `slicing.area: true` in `default_config.yaml` so that statistics of area and plots are always generated.
@ns-rse ns-rse force-pushed the ns-rse/48-aggregate-statistics branch from 1b73aa9 to d5d3654 Compare December 8, 2025 14:45
@ns-rse ns-rse merged commit a9b4be8 into main Dec 8, 2025
3 of 11 checks passed
@ns-rse ns-rse deleted the ns-rse/48-aggregate-statistics branch December 8, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant