Add warning for fslr32k histology data resolution mismatch#373
Merged
zihuaihuai merged 2 commits intomasterfrom Nov 25, 2025
Merged
Add warning for fslr32k histology data resolution mismatch#373zihuaihuai merged 2 commits intomasterfrom
zihuaihuai merged 2 commits intomasterfrom
Conversation
Known issue: The fslr32k histology profile data on the server contains fs_LR_64k resolution (64984 vertices) instead of fs_LR_32k (32492 vertices). - Add warning in read_histology_profile() when template is fslr32k - Add warning in download_histology_profiles() when downloading fslr32k data - Reference issue #369 in warnings for users to track the status - Remove skip for fslr32k test in test_histology.py (netneurotools issue fixed) This is a server-side data hosting issue. The correct fix requires uploading the proper 32k resolution data file to the server. Fixes #369
There was a problem hiding this comment.
Pull request overview
This PR addresses a known data resolution mismatch issue (#369) where the fslr32k histology profile data on the server contains fs_LR_64k resolution (64984 vertices) instead of the expected fs_LR_32k resolution (32492 vertices). The changes add user-facing warnings to inform users about this server-side data hosting issue.
- Add warning messages in both
read_histology_profile()anddownload_histology_profiles()when using fslr32k template - Remove pytest skip for fslr32k test that was related to a now-fixed netneurotools Unicode bug
- Reference issue #369 in warnings to help users track the status of this known issue
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| brainstat/context/histology.py | Adds warning messages (lines 160-168, 208-213) to alert users about the fslr32k data resolution mismatch when reading or downloading histology profiles |
| brainstat/tests/test_histology.py | Removes the pytest skip for fslr32k template testing (lines 21-23 removed) now that the netneurotools Unicode bug has been fixed |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Add retry mechanism with 3 attempts and exponential backoff - Handle RemoteDisconnected, URLError, and TimeoutError exceptions - Add timeout=30 to urlopen to prevent hanging - Improves CI test reliability when downloading from box.bic.mni.mcgill.ca This fixes intermittent CI failures like: 'http.client.RemoteDisconnected: Remote end closed connection without response'
e8463cc to
bd93ef1
Compare
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.
Known issue: The fslr32k histology profile data on the server contains fs_LR_64k resolution (64984 vertices) instead of fs_LR_32k (32492 vertices).
This is a server-side data hosting issue. The correct fix requires uploading the proper 32k resolution data file to the server.
Fixes #369