Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Returns grainstats rows when tracing for a grain fails #1047

Merged

Conversation

MaxGamill-Sheffield
Copy link
Collaborator

TopoStats Pull Requests

Closes #1028

This uses "outer" merges instead of "inner" merges so that when combining the grainstats dataframe for the additional stats in the tracing pipeline, they are appended correctly when a grain may have an error in the tracing pipeline e.g. when a grain fails skeletonisation.

A test case for this was to add into the disordered tracing code:

if cropped_grain_index == 14:
	assert False

And now the grainstats are present for this molecule, but the tracing stats a empty whereas before the entire row was dropped, but I'm not quite sure how to add this into the testing code as all the mergers are not yet covered and we'd have to have a grain purposefully fail.

Either way, this is now resolved.

@MaxGamill-Sheffield MaxGamill-Sheffield added v2.3.0 bug Something isn't working labels Dec 11, 2024
Copy link
Collaborator

@ns-rse ns-rse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, glad that has worked, thanks for doing this so quickly @MaxGamill-Sheffield

@ns-rse ns-rse added this to the v2.3.0 milestone Dec 11, 2024
@MaxGamill-Sheffield MaxGamill-Sheffield added this pull request to the merge queue Dec 11, 2024
Merged via the queue into main with commit df4cb02 Dec 11, 2024
11 checks passed
@MaxGamill-Sheffield MaxGamill-Sheffield deleted the maxgamill-sheffield/failed-DT-drops-grainstats-row branch December 11, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v2.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Information missing from all_stats file for some grains
2 participants