Repository navigation
Releases
casaVzarr
msutils is now licensed under Apache-2.0. Releases up to and including 3.0.0 were GPL-2.0-or-later; see LICENSE and NOTICE.
Highlights:
gainutils: a new console script for calibration gain tables (CASA caltables and QuartiCal stores), withsmooth,normaliseandfluxscale.- Exact-native MSv2 restoration from a data-only preservation bundle (
exact-nativeextra, now arcae 0.5.4 instead of dask-ms). - Logical identities for Zarr trees and live MSv2 tables:
logical_id()andnative_logical_id(). subset()andaverage(): correlation selection (--corr), CASA-split-style--reindex, andsubset()time/channel binning.average()also takes--taql.
Full details are in the 3.1.0 changelog.
What's Changed
- Standardise AGENTS, CONTRIBUTING and SECURITY across the org by @sphemakh in #41
- feat: average in subset(); add split-style reindex to subset and average by @sphemakh in #42
- gainutils: gain-table operations (fluxscale, normalise, smooth) by @sphemakh in #43
- build(deps): bump tornado from 6.5.7 to 6.5.8 by @dependabot[bot] in #44
- Refactor the package initializers for RUF067, and stop logging on import by @sphemakh in #45
- Adopt Apache 2.0 and add attribution and citation guidance by @sphemakh in #46
- Materialise MSv4 processing sets as MSv2 by @sphemakh in #49
- Probe arcae MSv2 reconstruction capabilities by @sphemakh in #48
- feat: add exact-native MSv2 reconstruction by @sphemakh in #50
- exact-native v2: Zarr payloads bound by a chunk-independent logical hash by @sphemakh in #52
- Add correlation selection to subset and average by @sphemakh in #56
- Assess dask-ms 0.3 alpha and preserve the tested writer pin by @sphemakh in #57
- build(deps): bump urllib3 from 2.7.0 to 2.8.0 by @dependabot[bot] in #58
- build(deps): bump tornado from 6.5.8 to 6.5.9 by @dependabot[bot] in #59
- build(deps): bump multidict from 6.7.1 to 6.9.1 by @dependabot[bot] in #61
- Replace the exact-native dask-ms backend with arcae by @sphemakh in #62
- Support real-MS empty metadata, tiled managers and zero-length cells by @sphemakh in #63
- Support validated lossless PackBits and integer Delta codecs by @sphemakh in #64
- Isolate PyPI token from package build by @sphemakh in #65
- Record active main branch ruleset by @sphemakh in #66
- Prepare the 3.1.0 release by @sphemakh in #67
New Contributors
- @dependabot[bot] made their first contribution in #44
Full Changelog: v3.0.0...v3.1.0
Hotchy
What's Changed
- Dont save nulls by @Athanaseus in #39
- msutils 3.0: msinfo, TaQL flag statistics, new MS tooling, MSv4 support by @sphemakh in #40
Full Changelog: v1.2.0...v3.0.0
phoenix
msutils 2.0.0b1 (pre-release)
First beta of the 2.x line — a top-to-bottom modernization of msutils, with a cleaner API, a command-line tool, real test coverage, and a much smaller default install. Everything from 1.x still works, but old names now emit deprecation warnings and will be removed in a future release.
This is a pre-release; please try it and report issues before the final 2.0.0.
pip install "msutils==2.0.0b1" # core + CLI
pip install "msutils[flagstats]==2.0.0b1" # + flag statistics & plots
pip install "msutils[plots]==2.0.0b1" # + weight estimation
pip install "msutils[all]==2.0.0b1"
- Package renamed MSUtils → msutils (lowercase). MSUtils still imports, with a FutureWarning.
- Flat API. Core functions are on the package root: msutils.summary(...) instead of from msutils import msutils. The old msutils.msutils submodule still works (deprecated).
- Modules renamed: flag_stats → flagstats, ClassESW → weights. Old names remain as deprecated shims.
- imp_plotter removed. Gain/cal-table plotting is superseded by ragavi — and gain tables aren't MSs.
- prep() removed. Defunct: shelled out to old addbitflagcol/flag-ms.py binaries and pulled in distutils.
- Flag-stats plots are now matplotlib PNGs, not Bokeh HTML. plot_statistics(..., htmlfile=) → plotfile=; CLI option --plot.
- Dependencies split into extras. Base = numpy + python-casacore; flag stats need msutils[flagstats], weights need msutils[plots].
- Packaging moved setuptools → hatchling; requires-python >= 3.8.
✨ New
- CLI msutils (click): summary, addcol, copycol, sumcols, addnoise, flagstats.
- python-casacore is now a real dependency — pip install msutils is self-contained.
- Type hints on the public API.
- Safer table handling via context managers (no more lock-hazard from a missed .close()).
- Test suite — smoke tests + behavioural tests against a synthetic MS (simms).
🐛 Bug fixes
- Fixed Python-3 TypeErrors from float division into range() in addcol/addnoise/write_toms.
- Fixed an antenna-position index mismatch in flag statistics.
- numpy.product→numpy.prod (NumPy 2.0), LOGGER.warn→warning, removed bare except:.
- verify_antpos raises RuntimeError instead of a no-op os.abort(...).
- Flag-stats robustness (#39): skip empty fields/antennas; TAQL antenna selection.
🔧 Internals
- src/ layout; modern casacore.tables namespace throughout (dropped pyrap); shared logging; ruff + pytest CI on 3.8–3.11.
Migration
Old imports/module names work this release but warn (FutureWarning). Use lowercase msutils, call msutils., import msutils.flagstats/msutils.weights. See the README's "Migrating from 1.x" section.
G-workflows
- Replace Travis with GitHub actions
- Python requirement >= 3.6
- Add scan flag stats
- Add fields flag stats
- Add correlation flag stats
- Plot summary flags using bokeh
- Save stats to a json file
Flag+Stats
- Add info about antenna position and distance from the array centre in the flag stats
gain3.6
zabalaza
Sphynx
Bobcat
SmellyCat2
Fixes the antenna number bug and version number.