-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENH] Add resample nb points + dps #244
[ENH] Add resample nb points + dps #244
Conversation
Hello @arnaudbore, Thank you for updating !
Comment last updated at 2024-09-27 16:09:03 UTC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last small comments, then I'll merge!
dwi_ml/data/hdf5/hdf5_creation.py
Outdated
@@ -641,11 +675,10 @@ def _process_one_streamline_group( | |||
The Euclidean length of each streamline | |||
""" | |||
tractograms = self.groups_config[group]['files'] | |||
|
|||
if self.step_size and self.compress: | |||
raise ValueError( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nb_points is not checked. But now, you check that in the __init__
, so we can remove the check here.
'kept.') | ||
|
||
for dps_key in self.dps_keys: | ||
logging.debug(" Include dps \"{}\" in the HDF5.".format(dps_key)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a check that the dps_key exists in the tractogram? Else, error, or else, warning?
Description
Add resampling with nb points and skip check header compatible when only tractograms.
Have you