Skip to content

ProjectTorreyPines/FusionSyntheticDiagnostics.jl

Repository files navigation

FusionSyntheticDiagnostics.jl

Format Check Docs Tests codecov

Package that defines synthetic diagnostics to generate sensor data based on plasma profile and synthetic actuators for fusion devices. For installation and usage instructions, see the online documentation. For documentation on under development branch, see dev online documentation.

Installation

First install Julia, then:

using Pkg
Pkg.add("FusionSyntheticDiagnostics")

For developers

If you are contributing to this project, you would need to install dvc to fetch sample files for testing. Once installed, please configure your ssh so that you can ssh into omega tunneling through cybele without requiring to enter password. This is optional but will make it much easier for you.

Once you have completed above steps, inside the git repo, simply do:

dvc pull

This would download the sample files in the samples directory. Then to run tests, you would first need to instantiate the project:

julia --project

Then press ]:

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.5 (2025-04-14)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> ]

Then type:

(FusionSyntheticDiagnostics) pkg> instantiate

Once the package has been instantiated, you can run the tests using:

(FusionSyntheticDiagnostics) pkg> test

This would run all the tests though. To run specific tests, you can do following from the command line to see help options (this works after you ahve instantiated the project like mentioned above):

% julia --project test/test.jl help
Usage (from inside FusionSyntheticDiagnostics.jl): 
julia --project test/test.jl [ifo] [langmuir] [magnetics] [gas] [h] [help]

Run tests. Default is all tests.

Optional arguments:
    ifo       Test interferometer            
    langmuir  Test langmuir probes           
    magnetics Test magnetic diagnostics      
    gas       Test gas injection actuators   
    h         Show this help message and exit
    help      Show this help message and exit

About

Package that defines synthetic diagnostics to generate sensor data based on plasma profile and synthetic actuators for fusion devices.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages