ATLAS Installation¶
This page describes the current developer installation procedure for ATLAS.
ATLAS is currently intended to be installed from a local Git checkout. The recommended installation mode is an editable pip installation:
Editable mode keeps the installed package connected to the source code in your local working tree. When you edit files under src/atlas_actris/, the changes are immediately used by Python without reinstalling the package.
Current package status¶
The Python distribution/package name is:
The current project version is:
The project requires:
The source code uses the src package layout:
ATLAS/
├── pyproject.toml
├── README.md
├── docs/
├── tests/
├── tools/
└── src/
└── atlas_actris/
├── __init__.py
├── cli.py
├── __call_atlas_interactive__.py
├── helper_functions/
├── processor/
├── readers/
├── templates/
└── ...
The main installed command-line command is:
The command expects an initialization file argument:
or equivalently:
The command is configured in pyproject.toml as an entry point to the package CLI wrapper. The wrapper runs the main interactive ATLAS script while still allowing developers to open and run src/atlas_actris/__call_atlas_interactive__.py directly in Spyder.
Runtime dependencies¶
The runtime dependencies are installed automatically from pyproject.toml when running python -m pip install -e ..
Current runtime dependencies include:
numpy>=2.0.0pandas>=2.2.3xarray>=2023.6.0netCDF4>=1.6.3scipy>=1.13.0matplotlib>=3.8.0bokeh>=3.4.3Pillow>=11.1.0dask>=2024.8.0requests>=2.0.0
Recommended installation with conda or miniforge¶
Using conda or miniforge is recommended because it makes it easy to create a clean environment with a specific Python version.
Users with an existing conda, miniconda, anaconda, or miniforge installation can skip directly to Create a new environment.
Step 1: Download miniforge¶
Download the installer for your operating system from:
https://conda-forge.org/download/
Step 2: Install miniforge¶
Follow the installation instructions from the miniforge webpage.
On Linux, the installer may ask whether the base environment should be activated automatically when opening a new terminal. Selecting yes is convenient for most users. If you already have another conda installation, be aware that enabling this option may make the new miniforge base environment the default one in your terminal.
On Windows, open the Miniforge Prompt from the Start Menu after installation. This opens a terminal with the base environment activated.
Step 3: Activate the base environment¶
If your base environment is not already active, activate it manually.
Example on Linux:
You should see something like this at the beginning of your terminal prompt:
To verify that the expected conda installation is being used, run:
or on Linux/macOS:
The returned path should point to your expected conda or miniforge installation.
Create a new environment¶
From the base environment, create a dedicated ATLAS development environment:
Activate it:
You can choose a different environment name if you prefer.
Get the source code¶
Clone the repository, or use your existing local checkout.
Example:
If you already have the repository locally, go to the project root, where pyproject.toml is located:
The project root should contain files and folders similar to:
Install ATLAS in editable mode¶
From the project root, with the atlas_box environment activated, run:
This installs ATLAS and its runtime dependencies from pyproject.toml.
Editable mode is important for development: changes made in the local source files are used immediately without reinstalling the package.
Verify the installation¶
Check that the package can be imported:
The printed path should point to your local repository, typically somewhere under:
Check that the command-line entry point is available:
The help output should look similar to:
usage: __call_atlas_interactive__.py [-h] [-i [ini_file]]
arguments
optional arguments:
-h, --help show this help message and exit
-i [ini_file], --ini_file [ini_file]
The path to the initialization file of the calling
script
To run ATLAS, provide the initialization file:
or:
Example:
Adjust the example path to point to an existing initialization file in your local checkout.
Note: The current help output displays the
-i/--ini_fileoption as optional because of the argparse configuration. In practice, the main workflow expects an initialization file path to run correctly.
Install documentation dependencies¶
The documentation dependencies are optional and are defined in pyproject.toml under the docs extra.
To install ATLAS together with the documentation tools, run:
Then serve the documentation locally:
Spyder development workflow¶
For development, it is useful to run the main script directly in Spyder so that variables remain visible in Spyder's Variable Explorer.
Install Spyder in the same environment if needed:
Start Spyder from the activated ATLAS environment:
Open and run:
When running from Spyder, configure the script arguments to provide the initialization file, for example:
This keeps the terminal workflow and the Spyder workflow aligned:
and:
should execute the same underlying script.