Skip to content

Cast DVARS float outputs to avoid memmap error #1777

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

Merged
merged 1 commit into from
Jan 12, 2017

Conversation

oesteban
Copy link
Contributor

When the input files are not compressed, numpy wraps memmap around the
dtype. This makes the traits.Float validation to fail.

An more robust way would be overloading traits.Float to validate also
these memmap objects. But this is probably overkilling the problem.

For now, this casting is the easiest and safest solution.

When the input files are not compressed, numpy wraps memmap around the
dtype. This makes the traits.Float validation to fail.

An more robust way would be overloading traits.Float to validate also
these memmap objects. But this is probably overkilling the problem.

For now, this casting is the easiest and safest solution.
@oesteban oesteban merged commit 73d6bf8 into nipy:master Jan 12, 2017
@oesteban oesteban deleted the fix/ComputeDVARS branch January 12, 2017 00:41
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.

1 participant