Automation for downloading and processing ALMA calibration target observations.
Project description
almaqso
This repository is a folk of astroysmr/almaqso, which is no longer maintained. Bugs are being removed and some new feature is being implemented.
If you find something or have questions, please refer, report or ask from issue
About
almaqso is an automated package for downloading and analyzing ALMA calibration sources (quasars).
Originally developed for analyzing absorption lines, this package addresses a limitation of the standard calibration scripts attached to ALMA archive data, which often mask absorption lines.
By generating calibration scripts that preserve these lines, this package ensures accurate analysis of absorption features.
Pre-requisites
CASA
Please use CASA with ALMA pipeline.
Version 6 is only supported.
I am using CASA version 6.6.6-17-pipeline-2025.1.0.35.
CASA Modules
Please install analysisUtilites. I strongly recommend you to use the LATEST version of it.
Installation
You can install this package by
pip install almaqso
Then you can use the package like this:
import almaqso
Usage
See sample code in sample folder and documentation.
If you find any problems or questions, feel free to report or ask from issue. I would like you to use English or Japanese.
Citation
Please cite this package (software) if it helps your work!
@software{nishida_2026_18334952,
author = {Nishida, Akimasa and
Ryo, Kishikawa and
Yoshimura, Yuki and
Narita, Kanako},
title = {almaqso},
month = jan,
year = 2026,
publisher = {Zenodo},
version = {1.6.0},
doi = {10.5281/zenodo.18334952},
url = {https://doi.org/10.5281/zenodo.18334952},
swhid = {swh:1:dir:ad33568ee7a116c4377820a5ddc87ec3aa0545ce
;origin=https://doi.org/10.5281/zenodo.14752250;vi
sit=swh:1:snp:3931013c0f76f5ddc4a12e857819b7522897
d68c;anchor=swh:1:rel:2e78a89c6a5fd103e5a5081e988b
3e7eb7ecb1b6;path=almaqso-1.6.0
},
}
Developer Guide
Pre-requisites
You do not have to install all shown below. Please install only what you need.
- uv: Strongly recommended. uv will manage everything about Python.
plantuml&graphviz: Install if you want to builddocsor re-render thedocs/diagrams.imagemagick: Install if you want to build PDF version documentation.
You can reproduce the environment with uv:
uv sync --dev
Then, you can run main.py or something with
uv run main.py # or something
Format code
./scripts/code-check.sh
Test code
For unit tests, run
uv run pytest -m "not integration"
For integration tests, run
uv run pytest -m "integration"
Or, you can run all tests with
uv run pytest
Render diagrams
(Re-)Render all PUML files in docs/diagrams with the command below.
SVG files will be generated in the same directory.
plantuml --svg docs/diagrams/
This is run by documentation building scripts below.
Build documentation
If you change the files in docs/diagrams, please recreate the SVG files first as written in Render diagrams section.
HTML:
./scripts/sphinx-build-html.sh
If you do not use uv, run with python instead:
python sphinx-build -b html docs docs/_build/html
Then, please open docs/_build/html/index.html in your browser.
PDF:
The script file will build PDF file and copy it to docs/almaqso.pdf.
./scripts/sphinx-build-pdf.sh
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file almaqso-1.6.1.tar.gz.
File metadata
- Download URL: almaqso-1.6.1.tar.gz
- Upload date:
- Size: 659.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
800e4c62db1bb57fcc57e6fbf1f5afd053822f5a37092ced19de8e36d389ceba
|
|
| MD5 |
a893652a8041144233a7ec0ca2b21836
|
|
| BLAKE2b-256 |
2c5bc4dd9feda1952619c94a39d06dff35afde73ea3350df0cbb57f0627a3454
|
File details
Details for the file almaqso-1.6.1-py3-none-any.whl.
File metadata
- Download URL: almaqso-1.6.1-py3-none-any.whl
- Upload date:
- Size: 26.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf00505a9852939978898943ef08182b430e03e0f2c74d93faeefd7325a1e51d
|
|
| MD5 |
94041d7cc3470fc701c7426563c1a548
|
|
| BLAKE2b-256 |
c8770cfd5491b7001156bef6abff1a984b07a7594594ef674f3c7710e5b29f83
|