-
Notifications
You must be signed in to change notification settings - Fork 12
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
Refactor pipeline to use grain crop dictionaries #1022
Draft
SylviaWhittle
wants to merge
36
commits into
main
Choose a base branch
from
SylviaWhittle/grain_restructure
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+797
−472
Draft
Changes from 23 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
58757ad
WIP: Scope out refactor for grains.py
SylviaWhittle f49b1e6
WIP: Begin grains > grainstats pipeline overhaul. Outline data struct…
SylviaWhittle 4334027
WIP: Scope out changes to GrainStats.calculate_stats to allow for mul…
SylviaWhittle d106b0f
WIP: Initial proposal for grainstats using grain dictionary refactor
SylviaWhittle 1acee67
Add function: graincrops_merge_classes
SylviaWhittle a7b9075
Add function: graincrops_update_background_class
SylviaWhittle 913e3b5
Update: extract_grains_from_full_image now works in theory, untested
SylviaWhittle 843a606
Fix: extract_grains_from_full_image_mask: allocating region to empty …
SylviaWhittle 535bea8
WIP: Switch vetting, merging and update background to work on dicts o…
SylviaWhittle 36c07e2
WIP: Update vet_grains to take / return dicts of GrainCrops
SylviaWhittle d1e4c1d
WIP: Update grainstats handling of dataframe to use list of dicts for…
SylviaWhittle ace46ea
Fix: validate_full_mask_tensor_shape: Require len(shape) == 3, shape[…
SylviaWhittle e2824f9
Edit: find_grains now stores grains in self.image_grain_crops: ImageG…
SylviaWhittle f21eccd
WIP: Handle ImageGrainCrops between run_grains and run_grainstats
SylviaWhittle 63d0003
WIP: Graintstats handles ImageGrainCrops
SylviaWhittle 02ecf43
Fix: grainstats: process scan no longer needing grain plots returned
SylviaWhittle 651e89c
WIP: Begin grains > disordered_tracing pipeline overhaul
SylviaWhittle a0370cc
Merge branch 'main' into SylviaWhittle/grain_restructure
SylviaWhittle a03524e
[pre-commit.ci] Fixing issues with pre-commit
pre-commit-ci[bot] 8d215fd
WIP: grains > disorderd_tracing pipeline | fix typing and remove whol…
SylviaWhittle 3a18880
[pre-commit.ci] Fixing issues with pre-commit
pre-commit-ci[bot] 7781c86
Add: class index to disordered tracing config
SylviaWhittle 80b711c
[WIP] Fix: Attempt to fix grain_number double index issue
SylviaWhittle 4c6f0f3
remove raising error on empty direction
SylviaWhittle e061001
Add padding to the grains section of config and remove from unet sect…
SylviaWhittle 8855707
[WIP]: Attempt to fix data passing errors between processing and diso…
SylviaWhittle 9f59678
Attempt merge with main (grains.py taken from branch, disorderd.py ta…
SylviaWhittle 6547c59
[pre-commit.ci] Fixing issues with pre-commit
pre-commit-ci[bot] 8030c8e
Add post init script to validate input data to GrainCrop dataclass
SylviaWhittle b2ec80d
Fix bug: wrong (old) graincrops returned from unet masking
SylviaWhittle be9f663
Fix bug: wrong bbox used in construction of GrainCrop dataclass causi…
SylviaWhittle fc938fb
Fix: padding wrongly subtracted in nodestats and ordered_tracing
SylviaWhittle ba08b36
[pre-commit.ci] Fixing issues with pre-commit
pre-commit-ci[bot] 8da84e2
Add: image grain crops to topostats object and fix process scan both …
SylviaWhittle cec5301
Add more rigorous GrainCrop setters and getters
SylviaWhittle 7f75723
[pre-commit.ci] Fixing issues with pre-commit
pre-commit-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pad with could be added into grains? or (see later disordered tracing comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!