Skip to content

Commit

Permalink
Added deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fairbrot committed Sep 28, 2018
1 parent 193cf77 commit 85e1595
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/kernels/composite_kernel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ abstract type CompositeKernel <: Kernel end

components(k::CompositeKernel) = k.kernels

@deprecate subkernels components

#################
# CompositeData #
#################
Expand Down
2 changes: 2 additions & 0 deletions src/kernels/fixed_kernel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ struct FixedKernel{K<:Kernel} <: Kernel
free::Vector{Int} # vector of *free* parameters
end

@deprecate FixedKern FixedKernel

get_params(k::FixedKernel) = get_params(k.kernel)[k.free]
get_param_names(k::FixedKernel) = get_param_names(k.kernel)[k.free]
function set_params!(k::FixedKernel, hyp)
Expand Down
2 changes: 2 additions & 0 deletions src/means/composite_mean.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ abstract type CompositeMean <: Mean end

components(m::CompositeMean) = m.means

@deprecate submeans components

include("sum_mean.jl") # Sum mean functions
include("prod_mean.jl") # Product of mean functions

0 comments on commit 85e1595

Please sign in to comment.