Code Monkey home page Code Monkey logo

Comments (7)

juliohm avatar juliohm commented on May 27, 2024

Hi @masiddique, the tests are passing here, perhaps you are trying to run the runtests.jl scripts directly in the Julia prompt?

The way we test packages in Julia is by running:

Pkg.test("GeoStats")

Can you please give more information?

from geostats.jl.

masiddique avatar masiddique commented on May 27, 2024

Yes, I was running it at the prompt. Running Pkg.test("GeoStats") works fine, so my mistake.

However, I was wondering how to pass covariance models to unikrig() function since we don't have the functions to generate such models, like GaussianCovariance() or SphericalCovariance()?

from geostats.jl.

juliohm avatar juliohm commented on May 27, 2024

I will document it better, thank you for your feedback. See if the example below works for you:

using GeoStats

# create some data
dim = 3; nobs = 10
X = rand(dim, nobs); z = rand(nobs)
x₀ = rand(dim)

# define a covariance model
cov = GaussianCovariance(1.,1.) # sill and range

# estimation
μ, σ² = kriging(x₀, X, z, cov=cov)
μ, σ² = unikrig(x₀, X, z, cov=cov)

from geostats.jl.

masiddique avatar masiddique commented on May 27, 2024

I get error:

UndefVarError: GaussianCovariance not defined
in include_string(::String, ::String) at loading.jl:441
in eval(::Module, ::Any) at boot.jl:234
in (::Atom.##65#68)() at eval.jl:40
in withpath(::Atom.##65#68, ::Void) at utils.jl:30
in withpath(::Function, ::Void) at eval.jl:46
in macro expansion at eval.jl:109 [inlined]
in (::Atom.##64#67{Dict{String,Any}})() at task.jl:60

from geostats.jl.

juliohm avatar juliohm commented on May 27, 2024

Thank you for catching this @masiddique, I had it fixed in the master branch but forgot to tag a new version of the package in the Julia ecosystem. I will be sending the new version for approval today, meanwhile you can get it working in the development branch by typing:

Pkg.checkout("GeoStats")

This will download the latest (unstable) version of GeoStats.

from geostats.jl.

masiddique avatar masiddique commented on May 27, 2024

Thank you @juliohm . The example given above works now.

from geostats.jl.

juliohm avatar juliohm commented on May 27, 2024

@masiddique you should now be able to use the stable version again:

Pkg.free("GeoStats")

The fix was merged. Thank you again.

from geostats.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.