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

ArgumentError: invalid open mode: w9 #47

Closed
itan1 opened this issue Jan 5, 2021 · 0 comments
Closed

ArgumentError: invalid open mode: w9 #47

itan1 opened this issue Jan 5, 2021 · 0 comments

Comments

@itan1
Copy link
Contributor

itan1 commented Jan 5, 2021

When using niwrite() to write a .nii.gz file I get the error:

ERROR: ArgumentError: invalid open mode: w9
Stacktrace:
 [1] open(::String, ::String; lock::Bool) at ./iostream.jl:346
 [2] open at ./iostream.jl:346 [inlined]
 [3] niwrite(::String, ::NIVolume{Float32,3,Array{UInt8,3}}) at /home/itan/projects/unet-testing/dev/NIfTI/src/NIfTI.jl:420
 [4] top-level scope at REPL[6]:1

Probably because the open mode is still "w9" from before, when gzopen() was used instead of open().

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

No branches or pull requests

1 participant