Commit 9e13d6a
committed
Cast DVARS float outputs to avoid memmap error
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.1 parent 589659d commit 9e13d6a
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
0 commit comments