-
Notifications
You must be signed in to change notification settings - Fork 28
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
fld_write tests fail on windows #58
Comments
I'm not sure if it helps in solving this issue. But generally, it's a good practice to
io = IOBuffer()
ndim = ndims(data)
println(io, "# AVS field file ($(basename(@__FILE__)))")
for line in head
println(io, "# $line")
end
println(io, "ndim=$ndim")
for ii=1:ndim
println(io, "dim$ii=$(size(data,ii))")
end
println(io,
"nspace=", ndim, "\n",
"veclen=1", "\n",
"data=", datatype, "\n",
"field=uniform", "\n")
# only write to disk once
open(file, "w") do fid
write(fid, take!(io))
end |
Thanks for the tip! I've incorporated that suggestion into a PR for BTW, I fixed the |
Clearly that you've worked this issue around. Just FYI, I just realized that I've also met similar issues, and the workaround is to do |
some problem with open/close/rm.
here is part of the output from unittest.
as a workaround i will just disable the test on windows for now.
The text was updated successfully, but these errors were encountered: