Update imports

This commit is contained in:
Tobias Hölzer 2025-12-28 20:48:49 +01:00
parent 45bc61e49e
commit 495ddc13f9
18 changed files with 64 additions and 40 deletions

View file

@ -129,11 +129,22 @@ pixi install # NOT pip install or conda install
pixi run pytest
```
### Running Python Commands
Always use `pixi run` to execute Python commands to use the correct environment:
```bash
pixi run python script.py
pixi run python -c "import entropice"
```
### Common Tasks
- **Generate grids**: Use `spatial/grids.py` CLI
- **Process labels**: Use `ingest/darts.py` CLI
- **Train models**: Use `ml/training.py` CLI with TOML config
**Important**: Always use `pixi run` prefix for Python commands to ensure correct environment.
- **Generate grids**: Use `pixi run create-grid` or `spatial/grids.py` CLI
- **Process labels**: Use `pixi run darts` or `ingest/darts.py` CLI
- **Train models**: Use `pixi run train` with TOML config or `ml/training.py` CLI
- **Run inference**: Use `ml/inference.py` CLI
- **View results**: `pixi run dashboard`
@ -191,6 +202,7 @@ To extend Entropice:
## Important Notes
- **Always use `pixi run` prefix** for Python commands (not plain `python`)
- Grid resolutions: **H3** (3-6), **HEALPix** (6-10)
- Arctic years run **October 1 to September 30** (not calendar years)
- Handle **antimeridian crossing** in polar regions