Installation
1. Install Julia
Newtrinos.jl is written in the Julia programming language. Download and install it from the official downloads page.
2. Install Newtrinos.jl
Newtrinos.jl is registered in the Julia General registry, so it is accessible via Pkg.add. For this open a Julia session by running julia in your terminal (or launching the Julia application), then run:
using Pkg
Pkg.add("Newtrinos")It could also be installed directly from GitHub via the Repository-URL:
using Pkg
Pkg.add(url="https://github.com/Newtrinos-org/Newtrinos.jl.git")Julia will download the package and all its dependencies automatically. This may take a few minutes the first time.
Some key dependencies are:
BAT.jlfor Bayesian inference,ForwardDiff.jlfor automatic differentiation,DensityInterface.jlfor the likelihood interface, andCairoMakie.jlfor visualization.
You only need to do this once. After installation the package is available in any Julia session on your machine.
3. Load the Package
After installation, load Newtrinos.jl at the start of any Julia session:
using NewtrinosDevelopment Installation (optional)
If you want to modify the source code or contribute to Newtrinos.jl, clone the repository and activate it as a local project.
Step 1 — Clone the repository:
git clone https://github.com/Newtrinos-org/Newtrinos.jl.git
cd Newtrinos.jlStep 2 — Install dependencies:
julia --project -e 'using Pkg; Pkg.instantiate()'Step 3 — Activate the local project in Julia:
using Pkg
Pkg.activate("/path/to/Newtrinos.jl") # replace with your actual clone path
using Newtrinos