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

Add bladder markers #209

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

elias-soltani
Copy link
Contributor

Markers for Keast nerves

Copy link
Member

@rchristie rchristie left a comment

Choose a reason for hiding this comment

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

We need to discuss the comment and how to fix things.

Comment on lines +1171 to +1185
markerTermNameBrainstemCoordinatesMap = {
# "pudendal nerve": [0.0, 1.0, 0.0],
# "pelvic splanchnic nerve": [0.0, 1.0, 0.0],
# "hypogastric nerve": [0.0, 1.0, 0.0],
# "lumbar splanchnic nerve": [0.0, 1.0, 0.0],
"fundus of urinary bladder": [14.6, 0.01, 23.1],
"external urethral sphincter": [-1.5, 6.7, 110.5],
}
bladder_coordinates = findOrCreateFieldCoordinates(fm)
nodeIdentifier = max(1, getMaximumNodeIdentifier(nodes) + 1)
for termName, brainstemCoordinatesValues in markerTermNameBrainstemCoordinatesMap.items():
annotationGroup = findOrCreateAnnotationGroupForTerm(annotationGroups, region, get_bladder_term(termName))
annotationGroup.createMarkerNode(nodeIdentifier, bladder_coordinates, brainstemCoordinatesValues)
nodeIdentifier += 1

Copy link
Member

Choose a reason for hiding this comment

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

Firstly, this would be OK if bladder_coordinates exist, but they do not.
(And it would need to use "bladder" rather than "brainstem" so the latter word should not appear anyway.)
Currently this will only work for human and when no-one changes any central path or size parameters, since coordinates are being used as material coordinates.
We need to discuss what's best here; I think it's better to use only element & xi until actual material coordinates exist. The above code won't work for other species - the locations will be different/wrong for other species.

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