Skip to content

Conversation

@anshuman9468
Copy link

When using load_tractogram_with_reference, loading a .trk file while also providing a reference (e.g., via command-line arguments) previously emitted a warning:

"Reference is discarded for this file format"

This behavior is technically correct—.trk files embed their own spatial reference in the header, so any externally provided reference is ignored. However, emitting this as a WARNING is misleading and unnecessarily noisy, particularly in scripts or pipelines that process mixed file formats (.trk, .tck) and pass a reference by default.

This pull request downgrades the log level of this message from WARNING to DEBUG, preserving the information for debugging purposes while avoiding clutter in normal execution.

Changes

Updated src/scilpy/io/streamlines.py

Changed logging.warning to logging.debug for the message indicating that a provided reference is discarded for .trk files.

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