marius311 / CMBLensing.jl

The automatically differentiable and GPU-compatible toolkit for CMB analysis.

Home Page:https://cosmicmar.com/CMBLensing.jl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug loading CAMB Cls

pdp79 opened this issue · comments

Hi,

I was playing around with CMBLensing.jl and I have found a bug in the 'load_camb_Cls()' function.

If you do try to read some CAMB file and you enter in the 'else' clause of the 'custom_tensor_params != nothing' condition (starting at line 221 on CMBLensing.jl/cls.jl), you would find that neither the 'tensor_filename' or 'r' variables have been previously defined, raising you an error that kills the code.

Maybe you meant to use 'unlensed_tensor_filename' (defined at line 197) instead of 'tensor_filename'?

Just pushed a fix, thanks for catching that!