Giter Site home page Giter Site logo

huginn.jl's People

Contributors

facusapienza21 avatar github-actions[bot] avatar jordibolibar avatar vivekag7 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

huginn.jl's Issues

Create out-of-place workflow

Right now everything is implemented in-place in order to be memory efficient for the PDE solving. This is great for the forward PDE runs, but we need an out-of-place version to be run with AD, particularly for ReverseDiff.jl.

This implies to basically reproduce the same workflow as in place, changing all functions like SIA2D! -> SIA2D, to indicate that it's out-of-place. All the code is available in the current ODINN.jl repo.

Add `test_mode` to `SimulationParameters`

We already have a test flag for some workflows to have specific configurations during tests. However, this should become more systematic, especially following recent issues during tests.

For example, there seems to be an issue when removing workers in GH CI. If there is first a test which uses 4 workers and then comes another one which asks only for 1 worker, the code is made in such a way that 3 workers will be removed. This works fine in local, but seems to crash in GH CI. By using that flag in the parameters, we could avoid removing workers when it test. Such idea could be re-used for many future issues like this.

Error when running `pde_solver_test()` with all glaciers

The test pde_solve_test,

@testset "PDE solving integration tests" pde_solve_test(; rtol=0.01, atol=0.01, save_refs=false, MB=false, fast=true)

fails when fast=false. This just runs the test with a larger list of glaciers, but there is some of them with missing data that make the test fail.

    if fast
        rgi_ids = ["RGI60-11.03638", "RGI60-11.01450", "RGI60-08.00213", "RGI60-04.04351", "RGI60-01.02170"]
    else
        rgi_ids = ["RGI60-11.03638", "RGI60-11.01450", "RGI60-08.00213", "RGI60-04.04351", "RGI60-01.02170",
        "RGI60-02.05098", "RGI60-01.01104", "RGI60-01.09162", "RGI60-01.00570", "RGI60-04.07051",                	
        "RGI60-07.00274", "RGI60-07.01323",  "RGI60-01.17316"]
    end

It will be good idea to omit those or fix the problem in some other way.

Investigate multithreading to accelerate PDE solving (and maybe UDEs)

Right now we're using multiprocessing to parallelize the solve of the SIA for each glacier. This is effective in accelerating the simulations, but we still haven't explored the use of multithreading. Multithreading could be used inside each process for each glacier, in order to solve the SIA in parallel. I'm aware DifferentialEquation.jl enables this, so it might be fairly easy to implement.

Fetch Python environment from Sleipnir.jl for CI

Right now we are duplicating the environment.yml file in each of the repos for the CI to have access to the Python environment. This is problematic, since any update to the Python environment will have to be extended to the 4 ODINN repositories.

For that, we should update the CI to download (e.g. using wget) the environment.yml file from Sleipnir.jl's GitHub repo.

CI not working with tests

Currently Huginn.jl has implemented the same workflow that is working in Sleipnir.jl to run the tests automatically after every commit to main. However, in Huginn this is not working, and the problem seems to be comming from PyCall. Observing both stacktraces, we observe that in Huginn it seems that the conda environmnet is not properly set:

Screen Shot 2023-08-08 at 11 02 48 AM

This error does't not show in Sleipnir. The problem is probably coming from the fact that here Sleipnir is being installed and imported as a separate module. Here is something in the PyCall documentation that may help find the solution.

Screen Shot 2023-08-08 at 11 04 35 AM

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

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.