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
Metadata
Release files for almaqso 1.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| almaqso-1.6.2.tar.gz | 660.7 kB | With provenance | Details for almaqso-1.6.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| almaqso-1.6.2-py3-none-any.whl | Python 3 | none | any | Details for almaqso-1.6.2-py3-none-any.whl |
Total release size: 687.4 kB
Release files / almaqso-1.6.2.tar.gz
| Download URL | almaqso-1.6.2.tar.gz |
|---|---|
| Size | 660.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7481d1fabf69249b1df4180d52868915f0cdd66ec7943af8d8e63f21c7b0aa8a
|
|
BLAKE2b-256 checksum How to use checksums |
4bbe4863b0af31e1a116461141825b169aeaa4b27b5bbe8df90d0708cebb36af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logRelease files / almaqso-1.6.2-py3-none-any.whl
| Download URL | almaqso-1.6.2-py3-none-any.whl |
|---|---|
| Size | 26.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc9f8dbf3c367bb7afcacc0ddc960610f3672f7f54b3bd3c586fe94bd66e4cf7
|
|
BLAKE2b-256 checksum How to use checksums |
e3be6d0aa6c375a00164338249442a65cf4236229a2a6d11a9ea96c32a1b8b75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logSecurity for almaqso 1.6.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for almaqso-1.6.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.