Skip to content

Fix cell counting related SampleView filling#2036

Merged
marcus-oscarsson merged 2 commits intomxcube:developfrom
matyson:fix-cell-counting
Mar 4, 2026
Merged

Fix cell counting related SampleView filling#2036
marcus-oscarsson merged 2 commits intomxcube:developfrom
matyson:fix-cell-counting

Conversation

@matyson
Copy link
Contributor

@matyson matyson commented Mar 3, 2026

While trying to update the heatmap results after a mesh scan we noticed that the cell filling was not considering the cell counting method (e.g. zig-zag, inverse-zig-zag) to fill the grid's result. This was due to the SampleImage component not being initialized correctly from config params from state.taskForm.defaultParameters.mesh.cell_counting -> state.taskForm.defaultParameters.mesh.acq_parameters.cell_counting.

Then, we included the countCellFun call inside the cell filling function to populate the correct matrix position according to the cellCount order.

@marcus-oscarsson
Copy link
Member

Thanks @matyson, well done !

@marcus-oscarsson marcus-oscarsson merged commit 48ba31e into mxcube:develop Mar 4, 2026
11 checks passed
@matyson matyson deleted the fix-cell-counting branch March 4, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants