-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add anatomical data for testing #2
Comments
you need nifti input for unit-testing your masking function, not dicom also, i would suggest to separate testing as much as possible, i.e.:
|
I'm thinking of adding the acquisition done in ACDC_108:
Your suggestion is to add an unsorted dicom version of this acquisition and a nifti bids version to facilitate unit tests? |
my suggestion was to separate the tests data when it makes sense. example:
with that in mind:
it sounds trivial, but it is important to always keep that in mind and try to minimize test data size. example: you're planning on uploading a dataset with 8 echoes, but in fact you only need two so you could do:
so, why do you need to upload (68, 128, 20, 8)? you could instead get rid of echoes 3->8 so you save 68x128x20x6xdtype space. the same applies to the XYZ matrix: do you absolutely need the full matrix? can the tests run with equal sensitivity with e.g. 32x32x5 matrix instead? i think you get my point |
Yes this makes things clearer. I'll wait until I start working on the masking function so that I can pinpoint exactly what is required for testing. |
and in fact, you can also generate data on the fly, e.g. https://github.com/neuropoly/spinalcordtoolbox/blob/master/spinalcordtoolbox/testing/create_test_data.py#L120 |
Anatomical data is required to start implementing masking functions. The data could be unsorted dicom data so that we can also improve our bids config file.
The text was updated successfully, but these errors were encountered: