Repository navigation
Conversation
daducci
requested changes
Nov 19, 2026
| #include <math.h> | ||
| #include <iostream> | ||
| #include <thread> | ||
| #include <functional> |
|
|
||
| if ( isTRK ) | ||
| if ( isTRX ) | ||
| N = read_fiberTRX( trxFile, fiber, idx, ptrToVOXMM ); |
Owner
There was a problem hiding this comment.
Is this correct? As far as I understand, idx is the index of the current thread reading the tractogram, but this is passed to the function read_fiberTRX which would then read the idx-th streamline from the input. Shouldn't this be the loop’s streamline index, i.e. f?
…mory mapping. avoids adding cpp dependency and avoids using too much memory on large tractograms
Author
|
@daducci you were right about the bug. I ended up doing a rewrite anyway that has less impact on the build system and uses trx python instead. It takes advantage of the memory mapping feature directly now. functional was used for std::ref, but it is no longer needed. |
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This is a first draft of adding TRX support to COMMIT. I opted to use and require the trx cpp package, which required changing the installation system to use scikit build and cmake. This is so that we do not have to reimplement things like handling the different offset data types/index data types/compression methods / etc. that trx supports. I have tested this locally, and it seems to work, but more testing is needed.