-
Notifications
You must be signed in to change notification settings - Fork 0
FEAT: add-Bachmann-Bundle #1085
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
base: main
Are you sure you want to change the base?
Conversation
try: | ||
right_atrium_epi = model.mesh.get_surface(model.right_atrium.epicardium.id) | ||
except AttributeError: | ||
LOGGER.error("Cannot find left atrium to create Bachmann bundle") |
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.
LOGGER.error("Cannot find left atrium to create Bachmann bundle") | |
LOGGER.error("Cannot find left atrium to create Bachmann bundle.") |
Should have concluding punctuation in messages.
try: | ||
left_atrium_epi = model.mesh.get_surface(model.left_atrium.epicardium.id) | ||
except AttributeError: | ||
LOGGER.error("Cannot find left atrium to create Bachmann bundle") |
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.
LOGGER.error("Cannot find left atrium to create Bachmann bundle") | |
LOGGER.error("Cannot find left atrium to create Bachmann bundle.") |
bachmann_start = HeartModelUtils.define_bachman_bundle_start_node(model=model) | ||
bachmann_end = HeartModelUtils.define_bachman_bundle_end_node(model=model) | ||
|
||
# compute bachmann bundle without including it in model due to LS-DYNA bug in R16 |
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.
# compute bachmann bundle without including it in model due to LS-DYNA bug in R16 | |
# compute Bachmann bundle without including it in model due to LS-DYNA bug in R16 |
assert np.allclose(ba_end.xyz, np.array([-48.38608303, 109.46168253, 424.58923502])) | ||
assert ba_end.node_id == 108609 | ||
|
||
|
||
|
||
def test_create_conductionbeams_on_surface(): | ||
"""Test conductionbeams can be initialized correctly on a surface.""" |
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.
"""Test conductionbeams can be initialized correctly on a surface.""" | |
"""Test conduction beams can be initialized correctly on a surface.""" |
Brief descriptions should generally not have code entities. Was "conductionbeams" the name of the test? Maybe reword to "Initialize test of conduction beams on a surface." Is the "correctly" necessary? Would anything ever be initialized incorrectly on a surface?
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.
Minor changes and questions noted in PR. Doc approval isn't the same as technical approval. Ensure that a technical reviewer approves.
@@ -177,7 +178,7 @@ def define_his_bundle_bifurcation_node( | |||
if target_coord is None: | |||
av_coord = LandMarks.AV_NODE.xyz | |||
if av_coord is None: | |||
LOGGER.error("AV node need to be defined before.") | |||
LOGGER.error("AV node needs to be defined before.") |
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.
LOGGER.error("AV node needs to be defined before.") | |
LOGGER.error("AV node must be defined before.") |
Must be defined before what?
@@ -243,7 +244,7 @@ def define_his_bundle_end_node( | |||
# find n-th closest point to bifurcation | |||
bifurcation_coord = LandMarks.HIS_BIF_NODE.xyz | |||
if bifurcation_coord is None: | |||
LOGGER.error("AV node need to be defined before.") | |||
LOGGER.error("AV node needs to be defined before.") |
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.
LOGGER.error("AV node needs to be defined before.") | |
LOGGER.error("AV node must be defined before.") |
Must be defind before what?
if target_coord is None: | ||
sa_coord = LandMarks.SA_NODE.xyz | ||
if sa_coord is None: | ||
LOGGER.error("SA node needs to be defined before.") |
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.
LOGGER.error("SA node needs to be defined before.") | |
LOGGER.error("SA node must be defined before.") |
Must be defind before what?
No description provided.