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.
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
Implement older monocot pipeline #54
Implement older monocot pipeline #54
Changes from 19 commits
3e841ec
92dae9e
9325a1b
1621efa
cb0f13b
e23af0f
4bc568f
ff1fb10
57b8fed
25391b4
dfabf07
890df7f
4843f08
0c42ecb
f33f0e0
797561b
aa59e2b
bd2621b
045a7b4
2364b89
a92be32
1fceb01
1ab5a39
11df884
606af51
3d1109f
57cfbd1
c063a9f
29cdb7a
113ee3e
534d9e6
b372567
93cfe87
7464680
dd06872
2279ac0
655d9cc
ef271da
a9054e3
d175680
5efb4fb
2416fd8
9838314
0c4b4df
1e692b5
10eb050
264dcca
e38b289
880817d
83b6ddd
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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
get_network_length
function has been updated to accept a variable number of root lengths, enhancing its flexibility. This change is well-implemented, correctly handling both scalar and array inputs for root lengths. However, consider adding a unit test to cover scenarios with different types and shapes of inputs to ensure robustness.Would you like me to help with creating these unit tests?
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
get_network_distribution
function now accepts a list of root landmarks and a bounding box to calculate the root length in the lower fraction of the plant. The input validation and calculation logic appear correct. However, the performance could be improved by minimizing the number of timesintersection
is called, as it can be computationally expensive. Consider pre-filtering roots that are entirely outside the lower bounding box before performing the intersection operation.