Open marcobonici opened 3 years ago
Ah sorry, not your fault, just pushed a fix. You can update your verion from Julia by typing ]
to get the pkg>
prompt (which you probably already figured out), then running up
.
Btw, should you want to mess with the code here, the best way to do it is with this package Revise (which is kind of like %autoreload
for IPython if you ever use that) Basically, install it, then do using Revise, Cosmology
(Revise has to come first in a session) then just edit the source code files and changes will take effect instantly.
Hi @marius311 , I have encountered a problem in the evaluation of the power spectrum using your code. I have installed the 1.5.3 version of julia and your code from githhub as you suggested. When I run "using Cosmology" I find the following error [ Info: Precompiling Cosmology [2b3c750e-bc73-11e8-3d6c-0d23c334b2a7] ERROR: LoadError: LoadError: UndefVarError: Params not defined Stacktrace: [1] top-level scope at /root/.julia/packages/Cosmology/hZdN5/src/Util.jl:24 [2] include(::Function, ::Module, ::String) at ./Base.jl:380 [3] include at ./Base.jl:368 [inlined] [4] include(::String) at /root/.julia/packages/Cosmology/hZdN5/src/Cosmology.jl:1 [5] top-level scope at /root/.julia/packages/Cosmology/hZdN5/src/Cosmology.jl:27 [6] include(::Function, ::Module, ::String) at ./Base.jl:380 [7] include(::Module, ::String) at ./Base.jl:368 [8] top-level scope at none:2 [9] eval at ./boot.jl:331 [inlined] [10] eval(::Expr) at ./client.jl:467 [11] top-level scope at ./none:3 in expression starting at /root/.julia/packages/Cosmology/hZdN5/src/Util.jl:24 in expression starting at /root/.julia/packages/Cosmology/hZdN5/src/Cosmology.jl:27 ERROR: Failed to precompile Cosmology [2b3c750e-bc73-11e8-3d6c-0d23c334b2a7] to /root/.julia/compiled/v1.5/Cosmology/REPw9_ZTOj1.ji. Stacktrace: [1] error(::String) at ./error.jl:33 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305 [3] _require(::Base.PkgId) at ./loading.jl:1030 [4] require(::Base.PkgId) at ./loading.jl:928 [5] require(::Module, ::Symbol) at ./loading.jl:923
I also tried to install the code on a docker image, but I found the very same error. Is there something I am missing? Maybe a required dependency I forgot? Sorry to bother you, as I said you before I have never worked on Julia so this will probably my fault. Cheers, Marco