Skip to content

Installation ​

AsteroidPipeline comes two ways. Install the one you need — or both.

You want to…InstallNeeds
open image sets, look at the candidates and copy the report, without writing codethe app, from PyPI (Python)Python 3.11+
analyze from scripts, process many sets, change the settingsthe library, from Julia's registryJulia 1.11+

The app carries the library inside it: installing the app is enough to use the program, and it sets up Julia by itself.

The app, with Python ​

sh
pipx install asteroidpipeline
asteroidpipeline

pipx installs it in an environment of its own, so it doesn't mix with your other Python packages; pip install asteroidpipeline works too. The first run sets up the analysis engine — Julia (downloaded if you don't have it) and its packages — which takes several minutes, once; asteroidpipeline --setup does it ahead of time.

Without pipx, the installer makes its own environment:

sh
curl -fsSL https://raw.githubusercontent.com/Richard7987/AsteroidPipeline.jl/main/install.sh | sh

To upgrade: pipx upgrade asteroidpipeline.

The library, with Julia ​

julia
using Pkg
Pkg.add("AsteroidPipeline")

The package is in Julia's General registry, so no URL is needed; the development version, main, is Pkg.add(url="https://github.com/Richard7987/AsteroidPipeline.jl").

Then:

julia
using AsteroidPipeline
result = analyze_set("images.zip"; observatory="F51", workdir="work")

Getting started goes on from there. To upgrade: Pkg.update("AsteroidPipeline").

Getting Python, pipx and Julia ​

Most Linux distributions have Python 3.11 or newer already. pipx and Julia:

Distributionpipx
Debian, Ubuntu, Mintsudo apt install pipx
Fedorasudo dnf install pipx
Arch, Manjarosudo pacman -S python-pipx
macOS (Homebrew)brew install pipx

Julia, on any of them, with juliaup, its official installer (which also keeps it up to date: juliaup update):

sh
curl -fsSL https://install.julialang.org | sh

The app doesn't need it: it downloads Julia itself if there is none.

Checking it works ​

appasteroidpipeline --version
libraryjulia -e 'using AsteroidPipeline; println(pkgversion(AsteroidPipeline))'

Both need an internet connection when they run: positions are calibrated against Gaia, and known asteroids come from the MPC and SkyBoT.