Skip to content
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

Dps management #248

Merged
merged 11 commits into from
Nov 7, 2024
Merged

Conversation

EmmaRenauld
Copy link
Collaborator

Started adding tests

  • Changed dps from an arg in the script (--dps_keys) to a line in the config file. This works.
  • Copied the file streamline_containers from Jeremi's PR and started testing. Does not seem to work yet. Need to check the data shape. Work to be continued.

@levje
Copy link
Collaborator

levje commented Oct 11, 2024

Not to forget: maybe worth adding tests for 2D data_per_streamline arrays before merging.

@levje
Copy link
Collaborator

levje commented Oct 29, 2024

Sidenote: with DPS management, the test HDF5 will have the following structure:
image

@pep8speaks
Copy link

pep8speaks commented Oct 31, 2024

Hello @EmmaRenauld, Thank you for updating !

Line 377:80: E501 line too long (80 > 79 characters)
Line 433:80: E501 line too long (80 > 79 characters)

Comment last updated at 2024-11-07 21:42:39 UTC

@levje levje self-assigned this Nov 1, 2024
Copy link
Collaborator Author

@EmmaRenauld EmmaRenauld left a comment

Choose a reason for hiding this comment

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

Looks ok. Did you manage to test with 2D data? I would do that before merging.

dwi_ml/data/dataset/streamline_containers.py Outdated Show resolved Hide resolved
@levje
Copy link
Collaborator

levje commented Nov 7, 2024

I did manage to get some tests in the PR in test_dataset.py to make sure the mock_2d_dps is the same as expected. I caught a few errors which those tests which are already fixed. Should I write more tests for 2d data?

@EmmaRenauld
Copy link
Collaborator Author

No it's ok for now! Let's go forward! Merging

@EmmaRenauld EmmaRenauld merged commit 7f0f6d9 into scil-vital:master Nov 7, 2024
2 checks passed
@EmmaRenauld EmmaRenauld deleted the dps_in_config_file branch November 7, 2024 21:54
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.

3 participants