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

Error during reading stage #10

Closed
ChrisRackauckas opened this issue Aug 6, 2016 · 4 comments
Closed

Error during reading stage #10

ChrisRackauckas opened this issue Aug 6, 2016 · 4 comments

Comments

@ChrisRackauckas
Copy link
Contributor

I am trying to use SnoopCompile on DifferentialEquations and I am getting the following error. I am pretty much following exactly the readme:

julia> using DifferentialEquations

julia> data = SnoopCompile.read("/tmp/diffeq_compiles.csv")
ERROR: unexpected character 'e' after quoted field at row 198 column 2
 in dlm_parse(::Array{UInt8,1}, ::UInt8, ::UInt8, ::UInt8, ::UInt8, ::Bool, ::Bool, ::Bool, ::Int64, ::Bool, ::Base.DataFmt.DLMOffsets) at ./datafmt.jl:553
 in dlm_parse(::String, ::Char, ::Char, ::Char, ::Char, ::Bool, ::Bool, ::Bool, ::Int64, ::Bool, ::Base.DataFmt.DLMOffsets) at ./datafmt.jl:399
 in readdlm_string(::String, ::Char, ::Type{T}, ::Char, ::Bool, ::Dict{Symbol,Union{Char,Integer,Tuple{Integer,Integer}}}) at ./datafmt.jl:268
 in #readdlm_auto#11(::Array{Any,1}, ::Function, ::String, ::Char, ::Type{T}, ::Char, ::Bool) at ./datafmt.jl:57
 in #readdlm#7(::Array{Any,1}, ::Function, ::String, ::Char, ::Char) at ./datafmt.jl:39
 in #readdlm#6(::Array{Any,1}, ::Function, ::String, ::Char) at ./datafmt.jl:37
 in read(::String) at /home/crackauc/.julia/v0.5/SnoopCompile/src/SnoopCompile.jl:130
 in eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:64
 in macro expansion at ./REPL.jl:95 [inlined]
 in (::Base.REPL.##3#4{Base.REPL.REPLBackend})() at ./event.jl:46

For reference:

Julia Version 0.5.0-rc0+99
Commit c10667f* (2016-08-01 07:45 UTC)
Platform Info:
  System: Linux (x86_64-redhat-linux)
  CPU: Intel(R) Xeon(R) CPU E5-2667 v4 @ 3.20GHz
  WORD_SIZE: 64
  BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblasp.so.0
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, broadwell)
@ChrisRackauckas
Copy link
Contributor Author

There's the relevant line in vim

capture

@timholy
Copy link
Owner

timholy commented Aug 7, 2016

What happens if you just copy/paste that one line into a separate file and call readdlm(filename, '\t') on it?

@ChrisRackauckas
Copy link
Contributor Author

It's able to read that one line when I paste it into a different file. Odd.

Well I got it to work by changing the read function to use readtable (and using Dataframes) instead of readdlm.

@timholy
Copy link
Owner

timholy commented Aug 7, 2016

OK. It might help base, though, if you could "bisect" it (get rid of successive halves of the file until you've narrowed it down to a minimal example that causes the problem).

I'll close since it's not really a SnoopCompile issue.

@timholy timholy closed this as completed Aug 7, 2016
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

2 participants