Skip to content

Commit 26db2f6

Browse files
committed
add rfid deprecation warning
1 parent 34311bf commit 26db2f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/dataset.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ function load_sim_dataset(;
102102
# theory
103103
Cℓ = nothing,
104104
fiducial_θ = NamedTuple(),
105+
rfid = nothing,
105106

106107
seed = nothing,
107108
D = nothing,
@@ -116,6 +117,10 @@ function load_sim_dataset(;
116117
ℓmax = round(Int,ceil(2*fieldinfo(Flat(θpix=θpix,Nside=Nside)).nyq)+1)
117118

118119
# CMB Cℓs
120+
if rfid != nothing
121+
@warn "`rfid` will be removed in a future version. Use `fiducial_θ=(r=...,)` instead."
122+
fiducial_θ = merge(fiducial_θ,(r=rfid,))
123+
end
119124
Aϕ₀ = get(fiducial_θ, :Aϕ, 1)
120125
fiducial_θ = Base.structdiff(fiducial_θ, NamedTuple{(:Aϕ,)}) # remove Aϕ key if present
121126
if Cℓ==nothing

0 commit comments

Comments
 (0)