Giter VIP home page Giter VIP logo

fabparticleda's Introduction

FabParticleDA

This is a ParticleDA example plugin for FabSim3. It is meant to provide support for using ParticleDA with FabSim3.

Installation

Simply type fabsim localhost install_plugin:FabParticleDA anywhere inside your FabSim3 install directory.

To install the Julia dependencies for ParticleDA, type: fabsim localhost install_particleda_dependencies

(remote dependency installation support will be added if users need it [just raise a GitHub issue in the repo])

Testing

  1. To test a ParticleDA model, type fabsim localhost test_community_model.

By default it will run llw2d.jl as model (which produces no output if run correctly). It is possible to run other community models using: fabsim localhost test_community_model:model=<name of julia script> Examples models include:

  • llw2d.jl
  • lineargaussian.jl
  • lorenz63.jl

(a separate command to run user-made models will be added as soon as users need it, but no later than the end of Q2 2023)

Explanation of files

  • FabParticleDA.py - main file containing command implementations.
  • config_files/ParticleDA_test - directory containing input data for the community model command.
  • templates/test_community_model - template file for running a community model command on the remote machine.

fabparticleda's People

Contributors

djgroen avatar

Watchers

 avatar  avatar

fabparticleda's Issues

bug with run_community_model

As reported by James Cook :).

I'm just reviewing your FabParticleDA work for the Excalibur deliverable. I'm having a problem running the community_models though. Everything installed as expected, so I can run fabsim -l machines and get an output. The problem comes when trying to run the community_models where it appears to delete a file before trying to copy it (error preceded by evidence that fabsim is installed correctly). Is there a problem with my set up or is the problem something else? I've tried running specific community_models by ... :model=foo but the same problem arose.


(.venv) ┌─03-Apr 13:36:06 cookj ~/code/FabSim3 [master*]
└─$fabsim -l machines
[loading plugin] FabParticleDA ...

           List of available remote machines                

╭─────────────────────┬────────────────────────────────────────╮
│ remote machine name │ remote machine address │
├─────────────────────┼────────────────────────────────────────┤
│ cartesius │ cartesius.surfsara.nl │
│ prometheus │ prometheus.cyfronet.pl │
│ cirrus │ login.cirrus.ac.uk │
│ supermuc2 │ hw.supermuc.lrz.de │
│ ohm │ ohm.chem.ucl.ac.uk │
│ Kathleen │ kathleen-hpc-prod-10-313.gtm.ucl.ac.uk │
│ bluejoule │ login.joule.hartree.stfc.ac.uk │
│ bluewonder2 │ phase2.wonder.hartree.stfc.ac.uk │
│ oppenheimer │ oppenheimer.chem.ucl.ac.uk │
│ localhost │ localhost │
│ qcg │ eagle.man.poznan.pl │
│ eagle_vecma │ eagle.man.poznan.pl │
│ eagle_hidalgo │ eagle.man.poznan.pl │
│ eagle_seavea │ eagle.man.poznan.pl │
│ supermuc_vecma │ skx.supermuc.lrz.de │
│ training_hidalgo │ 62.3.171.192 │
│ archer2 │ archer2 │
│ marenostrum4 │ mn1.bsc.es │
│ piz_daint │ daint.cscs.ch │
│ monsoonfab │ “monsoonfab” │
╰─────────────────────┴────────────────────────────────────────╯
[ 0s444 | Apr 03 01:36pm ]
(.venv) ┌─03-Apr 13:36:14 cookj ~/code/FabSim3 [master*]
└─$cd ../FabParticleDA/
[ 0s003 | Apr 03 01:36pm ]
(.venv) ┌─03-Apr 13:36:22 cookj ~/code/FabParticleDA [master]
└─$git status
On branch master
Your branch is up-to-date with 'origin/master'.

nothing to commit, working tree clean
[ 0s019 | Apr 03 01:36pm ]
(.venv) ┌─03-Apr 13:36:26 cookj ~/code/FabParticleDA [master]
└─$fabsim localhost test_community_model
[loading plugin] FabParticleDA ...
[Executing task] test_community_model
[local] rm community_models/llw2d.jl
[local] cp community_models/llw2d.jl /home/cookj/code/FabSim3/plugins/FabParticleDA/config_files/ParticleDA_test
cp: cannot stat 'community_models/llw2d.jl': No such file or directory
Traceback (most recent call last):
File "/home/cookj/code/FabSim3/fabsim/bin/fabsim", line 46, in
sys.exit(fabsim_main.main())
File "/home/cookj/code/FabSim3/fabsim/base/fabsim_main.py", line 157, in main
env.exec_func(*env.task_args, **env.task_kwargs)
File "/home/cookj/code/FabSim3/fabsim/base/decorators.py", line 74, in wrapper
return func(*args, **kwargs)
File "/home/cookj/code/FabSim3/plugins/FabParticleDA/FabParticleDA.py", line 35, in test_community_model
local("cp community_models/{} {}".format(model,path_to_config))
File "<@beartype(fabsim.base.networks.local) at 0x7f066aac8160>", line 54, in local
File "/home/cookj/code/FabSim3/fabsim/base/networks.py", line 59, in local
raise RuntimeError(
RuntimeError:
local() encountered an error (return code 1)while executing 'cp community_models/llw2d.jl /home/cookj/code/FabSim3/plugins/FabParticleDA/config_files/ParticleDA_test'

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.