Skip to content

[ENH] add compression parameters#42

Merged
36000 merged 1 commit into
dipy:masterfrom
36000:compression
Jun 3, 2026
Merged

[ENH] add compression parameters#42
36000 merged 1 commit into
dipy:masterfrom
36000:compression

Conversation

@36000
Copy link
Copy Markdown
Collaborator

@36000 36000 commented Jun 3, 2026

No description provided.

Copilot AI review requested due to automatic review settings June 3, 2026 17:53
@36000 36000 merged commit ad4fea0 into dipy:master Jun 3, 2026
1 check failed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances TRX streamline output support by introducing configurable compression/precision controls in the core tracker logic, and adjusts the example runner’s default output format.

Changes:

  • Default --write-method in run_gpu_streamlines.py is changed to trx.
  • GenericTracker gains compression-related configuration (set_compression_parameters) and applies optional streamline compression during TRX generation.
  • TRX vertex dtype is made configurable (via pos_dtype) and is applied during TRX creation.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
run_gpu_streamlines.py Switches the CLI default output format to TRX.
cuslines/generic_tracker.py Adds compression parameter API and applies optional streamline compression + configurable vertex dtype to TRX output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

return getattr(self, "ngpus", 1)

def _pos_dtype(self):
return getattr(self, "pos_dtype", np.float16)
return getattr(self, "tol_error", 0.1)

def _max_segment_length(self):
return getattr(self, "max_segment_length", np.inf)
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