Hi! I am working on a package SGP where I am trying to export the in-struct functions but still getting the error:
sgp = SGP() # Create an instance of the SGP clas
ERROR: UndefVarError: SGP
not defined
Stacktrace:
[1] top-level scope
@ c:\Users\mridu.julia\dev\SparseGaussianProcess\test\runtests.jl:5
Here is my SparseGaussianProcess.jl file code:
module SparseGaussianProcess
export SGP
abstract type AbstractSurrogateModel end
mutable struct SGP <: AbsractSurrogateModel
# Member declarations and functions#
end
And this is the runtests.jl file I have:
using Test
using SparseGaussianProcess # Import the module
using Random
sgp = SGP() # Create an instance of the SGP clas
@testset “SparseGaussianProcess.jl” begin