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

MAINT: A minimal infrastructure for unit-tests, with some initial test files #32

Merged
merged 1 commit into from
Nov 1, 2019
Merged

MAINT: A minimal infrastructure for unit-tests, with some initial test files #32

merged 1 commit into from
Nov 1, 2019

Conversation

oesteban
Copy link
Member

@oesteban oesteban commented Nov 1, 2019

This PR adds a few files for basic testing, and sets-up pytest to run unit tests and doctests.

@arokem
Copy link
Collaborator

arokem commented Nov 1, 2019

Good stuff! Where does that DWI data come from?

@oesteban
Copy link
Member Author

oesteban commented Nov 1, 2019

Good stuff! Where does that DWI data come from?

import numpy as np
import nibabel as nb
aff = nb.load('real_dwi_file.nii.gz').affine
nii = nb.Nifti1Image(np.zeros((10, 10, 10), dtype='uint8'), aff, None)
nii.header.set_qform(aff, code=1)
nii.header.set_sform(aff, code=1)
nii.to_filename('dmriprep/data/tests/dwi.nii.gz')

@oesteban
Copy link
Member Author

oesteban commented Nov 1, 2019

Basically, I'm just using it for the affine header, to check RASB <-> IJK bvec/bval

@oesteban
Copy link
Member Author

oesteban commented Nov 1, 2019

Merging to give a base for @dPys in his vectors PR (#26)

@oesteban oesteban merged commit 3d7c8a6 into nipreps:master Nov 1, 2019
@oesteban oesteban deleted the maint/unit-test-infrastructure branch November 1, 2019 23:38
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