ell*_*inc 2 linux github julia
刚刚从GitHub提取了一个存储库,并保存在“下载”下。尝试运行程序并不断出现这些错误:
julia> using FITSIO
julia> include("readoifits.jl")
ERROR: could not open file /home/ellie/Downloads/readoifits.jl
in include_from_node1(::String) at ./loading.jl:488
julia> include("setupft.jl")
ERROR: could not open file /home/ellie/Downloads/setupft.jl
in include_from_node1(::String) at ./loading.jl:488
julia> include("oichi2.jl")
ERROR: could not open file /home/ellie/Downloads/oichi2.jl
in include_from_node1(::String) at ./loading.jl:488
julia> include("oiplot.jl")
ERROR: could not open file /home/ellie/Downloads/oiplot.jl
in include_from_node1(::String) at ./loading.jl:488
Run Code Online (Sandbox Code Playgroud)
因此,它知道文件存在以及它的位置,但无法打开它们。有人可以解释一下node1和String位的含义以及如何打开这些文件吗?谢谢。
您当前的目录是什么?您似乎在“下载”目录中正在运行REPL –也许其中有您的数据,但没有代码?您可以使用pwd()函数找到当前目录。includeREPL中的功能打开相对于当前工作目录的文件,当前工作目录是您启动Julia进程时所在的目录。(从另一个源文件调用时,include查找相对于该源文件目录的文件。)