Skip to content

[ENH] topoDotprops modified#502

Open
dokato wants to merge 1 commit intonatverse:masterfrom
dokato:topodotp
Open

[ENH] topoDotprops modified#502
dokato wants to merge 1 commit intonatverse:masterfrom
dokato:topodotp

Conversation

@dokato
Copy link
Copy Markdown
Contributor

@dokato dokato commented Jul 31, 2022

Modifies topological dotprops by directing the orientation of all vectors so they always point towards soma direction.

@jefferis
Copy link
Copy Markdown
Collaborator

Thanks so much @dokato. Can you remind me during the week to get the test data back up on flybrain? I didn't check yet if this is the only issue in the failures above.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 12, 2023

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.96%. Comparing base (bf22fbd) to head (d4362df).
⚠️ Report is 64 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #502      +/-   ##
==========================================
+ Coverage   76.90%   76.96%   +0.05%     
==========================================
  Files          48       48              
  Lines        5923     5938      +15     
==========================================
+ Hits         4555     4570      +15     
  Misses       1368     1368              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

par_id = topo_features$Parent[[i]]
if (par_id == -1) next
pnt_idx = which(topo_features$PointNo == par_id)
vect_orientations[[i]] <- is_pointing_towards(x[pnt_idx,], x[i,], vect[i])
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this is direction in Euclidean sense not geodesic (across the graph). Can you help me understand why that is @dokato?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I just figured that it's faster to compute with respect to an arbitrary point (soma in this case). Otherwise, I'd need to iterate point by point to change the orientation. I guess, as long as it's consisted it shouldn't matter too much, unless you can think of some counterexample?

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