Changelog#

[Unreleased]#

[2.9.2] - 2026-12-03#

A bug-fix release on 2.9.1, made from the 2.8.x line (release/2.8.x) with the fixes of master cherry-picked (no phase 7). On this line the failure of the identification on V1 sessions did not occur (the identification is stored in the metadata only from phase 7); the fix is here as a defence and so that the metadata are a dict in every release.

Numerical results. Unchanged: nothing of fitting, identification or the automatic pipelines is touched.

Fixed#

  • Identification on a V1 session (side PR, 2 December 2026; reported by Guido). Identify Absorption Lines, Auto-detect Doublets and the pipelines that identify failed on every session opened from a V1 archive (.acs) with “Illegal value: Identification(…)”: the metadata of a V1 spectrum was kept as a fits.Header, which refuses the structure of the identification stored since PR 7c.3. It is now a dict, as for the other loaders (the same keys and values). No number changes.

  • A long error message no longer hangs the GUI. The message of that error held the whole identification (113 000 characters), and on macOS its box stayed empty, larger than the screen, without answering. The box of a failed recipe shows the first 2000 characters of the message (and of each warning in its details); the log keeps all of it.

  • The GUI hung when a recipe failed (side PR, 2 December 2026; reported by Guido, macOS). The progress dialog called QApplication.processEvents() at each status line of the log, so that the error signal of the recipe, which comes right after its last log line, was delivered inside that slot: the modal message of the error opened within the slot of the progress dialog, which was being closed, and on macOS it stayed empty, larger than the screen, and the GUI did not answer (seen with Auto-detect Doublets and the System Inspector open). The status is now painted at once without processing the other events (the recipe runs in a worker thread, so nothing waits for them). No number changes.

  • The metadata of a spectrum and of a system list are always a dict (side PR, 3 December 2026; after the fix above, F184). SpectrumData and SystemListData convert any other mapping it receives (a fits.Header, which refuses the values that are not FITS ones) to a dict; a dict is kept as it is. No loader or recipe gave a Header besides the V1 one; a test checks every loader that has a test file. No number changes.

[2.9.1] - 2026-11-27#

The first release with a license, and the first one on PyPI. Made from the 2.8.x line (release/2.8.x), as 2.9.0: it takes the license and the citation from master (PR #830) and the publication on PyPI, without phase 7.

Numerical results. Unchanged: nothing of fitting, identification or the automatic pipelines is touched (the methods text, which is not a result, cites the software differently, see below).

Added#

  • License and citation. LICENSE (GNU GPL v3 or later; copyright INAF), declared in pyproject.toml (SPDX expression, setuptools>=77); CITATION.cff (authors: Cupani, Calderone, Guarneri) with the Zenodo DOI of the software, 10.5281/zenodo.1346736, and Cupani et al. 2026 (Proc. SPIE 14155, 141551X) as the paper to cite; the DOI badge in the README and the credits page; Claude and Gemini thanked in both.

  • The tagline in the documentation. The home page says “A thousand recipes to cook a spectrum” and what it means for the name (it was only in the credits).

  • The page of PyPI. The README opens with what Astrocook is, how to install it and where the documentation is (the credits follow); the short description, the keywords, the classifiers and the project URLs (documentation, changelog, citation) of pyproject.toml are completed.

  • Publication on PyPI. .github/workflows/publish.yml builds the package and publishes it on PyPI when a release is published (on TestPyPI from a manual run), with trusted publishing: no token is stored. pip install astrocook replaces the installation from GitHub in the documentation.

Changed#

  • The copyright holder is INAF (README, credits, documentation, About dialog).

  • The methods text cites the software by its Zenodo DOI (“Astrocook 2.9.1 (doi:10.5281/zenodo.1346736)”) instead of Cupani et al. 2020, which is no longer cited; the algorithms stay cited as Cupani et al. 2026.

  • Help > About: Cite on ADS opens the page of Cupani et al. 2026.

[2.9.0] - 2026-11-26#

Software Update and Settings in the Help and Edit menus. Made from the 2.8.x line (release/2.8.x) with the PRs U1, U2 and U3 of phase 7-quater, without the work of phase 7 done on master: identification, benchmark and recipes are those of 2.8.0.

Numerical results. Unchanged: only the interface (astrocook/gui/) and the tests are touched, nothing of fitting, identification or the automatic pipelines (the benchmark was not rerun). No setting changes a number.

Added#

  • Help > Software Update… (phase 7-quater, PR U1). Asks GitHub for the latest release and compares its version with the installed one (as versions, not as strings: 2.10.0 is newer than 2.8.0; pre-releases are handled). The request runs in a thread, carries a generic User-Agent and nothing of the user, and fails silently when the network is absent unless the user asked for the check. The dialog shows the release notes and offers what fits the installation: in the macOS app, Download fetches Astrocook.dmg with a progress bar, verifies its SHA-256 against the digest given by the GitHub API (the dialog says so when there is none) and opens it; in the other installations it shows the command to update. A development installation (a checkout, an editable install) is not compared with the releases: its version says little, and the dialog says so. No update is applied without the user. See the section on updates in Installation.

  • Edit > Settings… (phase 7-quater, PR U2). A dialog with three tabs: General (the automatic check for updates at start, off by default, every start / daily / weekly; the number of recent files; the question before closing a changed session; the starting folder of the file dialogs), Appearance (theme and plot colours, also in the View menu; font size; width of the plot lines; initial unit of the x axis; decimals of the wavelengths in the Data Inspector) and Performance (the pixels above which the plot is downsampled). The defaults are the values of before. No setting changes a number or applies to scripts, MCP or the log. See the page Settings of the documentation.

  • Settings applied at once, and the font size as a scale (phase 7-quater, PR U3). The changes of Edit > Settings… take effect as they are made, without an OK button. The font size is a choice, Small / Normal / Large, where Normal is the look of before; it replaces the number of points.

Changed#

  • The tests no longer read or write the user’s real settings (phase 7-quater, PR U2): QSettings is redirected to a folder of its own in every test.

[2.8.0] - 2026-11-21#

The external models: telluric transmissions, continua and absorption models made elsewhere (e.g. the Molecfit fits of a sample) are brought into a spectrum as columns with a role. Made from the 2.7.1 line (release/2.7.x) with the PRs of phase 7-ter, without the work of phase 7 done on master since 2.7.0: identification, benchmark and recipes are those of 2.7.1.

Numerical results. Unchanged for the benchmark of synthetic spectra, which has no telluric column (the benchmark was not rerun: nothing of fitting, identification or the automatic pipelines is touched). The only numbers that change are those of the spectra that carry a telluric transmission read from a file: the trans_molecfit of the ASCII telluric files now enters the normalization (continuum × transmission; before, it was read by nothing), and so does any transmission brought in with import_model. Archives, and spectra without a telluric column, give the same numbers as in 2.7.1.

Changed#

  • The telluric transmission is the column telluric (phase 7-ter, PR T1, FT4). The normalization of the fits (continuum × transmission) reads the column telluric; the column telluric_model, read until now, is renamed telluric when a spectrum is opened or built (archives, files, scripts), so the numbers of the archives and of the spectra that had it do not change, nor those of the spectra without a telluric column. A boolean telluric column (the mask of the telluric bands of Astrocook 1) is renamed telluric_mask and does not enter the normalization; a telluric column found together with telluric_model is kept as telluric_unused. A new flag of the metadata, TELLURIC_CORRECTED (kept in the archive), says that the flux is already corrected: then the normalization is the continuum alone, also when the model is renormalized by Auto-estimate Continuum. It is set with the new parameter telluric_corrected of Edit > Set Properties (yes, no, _current_). The loaders: the Molecfit transmission of an ESO X-Shooter product (mtrans of TELLURIC_DATA, in the column telluric_transmission until now) goes to telluric, with the flag set (its flux is taken as already corrected: the normalization of these spectra does not change); the TELLURIC of a PypeIt telluric model is also written in telluric; the trans_molecfit of the ASCII telluric files was already written in telluric and now enters the normalization (continuum × transmission; before, it was read by nothing). The telluric_corr of the ESPRESSO S2D files is left as it is.

  • File > Import from ASCII checks the wavelengths (phase 7-ter, PR T2, FT3, Guido). A table whose wavelength column (lam, x, …; in nm without a unit) is not that of the spectrum, within a tenth of a pixel, is refused (only the number of rows was checked, so the columns could go to other pixels); a table without a wavelength column is read as before. The log names, at WARNING, the columns of the spectrum that the file replaced (e.g. a dy that replaces the error), which were replaced without a word. The values imported from a valid table do not change.

Fixed#

  • The redshift cursor no longer changes the area of the plot (FT7). Opening the cursor shrank the plot when its first line was out of view, because the label (“z = …”) was laid out outside the axes; the label is now out of the constrained layout and kept inside the axes.

  • Set Properties as a prerequisite (FT8). Opened to set z_em before a recipe, with no resolution, the dialog filled R with “0”, which was refused and dropped the waiting recipe without a word. The field is now empty (“not set”); set_properties(resol="") keeps the current value in scripts too, as the message says ("0" is still refused); a failure of set_properties opened as a prerequisite shows the message and opens the dialog again with what was typed, and any other failure says that the recipe did not run.

Added#

  • File > Import Model… imports an absorption model (role model; phase 7-ter, PR T4). An absorption model of a file or of another session is written in the column model (drawn as the model of a fit), on the grid of the spectrum as the other models; beyond it the column is the normalization of the spectrum (cont × telluric: no absorption there), NaN where the spectrum has no continuum (a warning says on how many pixels). In the unit of the flux, as the model of Astrocook, it is checked and converted as a continuum; normalized (0-1), with the new parameter normalized=True of import_model (a box in the dialog; Guido: said by the user, not recognised from the values), it is multiplied by the normalization at the import, which needs a continuum. A model without a unit that is not on the scale of the flux is refused with a pointer to normalized=True; normalized=True is refused for the other roles. The imported model is not tied to the system list: a fit, or a change of the components that redraws the model, overwrites it. Its column is found by the name model, or given. A log message of the role cont changes its words (“The column … was converted from …”). No number of the other roles changes.

  • File > Import Model… imports a continuum (role cont; phase 7-ter, PR T3). The continuum of a file or of another session is written in the column cont, on the grid of the spectrum as the telluric models, NaN beyond the model (there the flux is not normalized; a warning says on how many pixels). It is in the unit of the flux: a unit of the file is converted (also per unit frequency), and refused if it cannot be; without a unit the values are taken in the unit of the flux, and refused when their median differs from that of the flux by more than a factor 10 (a normalized continuum under a physical flux; Guido). Its column is found by the names cont, continuum, or given. The absorption model of the spectrum follows the new continuum on request, as for Auto-estimate Continuum (the GUI asks; the new parameter renorm_model of import_model, True by default, hidden from the agents as in fit_continuum).

  • File > Import Model… (file.import_model; MCP tool file_import_model; phase 7-ter, PR T2, FT1, FT2). Brings an external model into a spectrum, as a column with a role: for now telluric, a telluric transmission (e.g. a Molecfit fit of the spectrum), which then enters the normalization of the fits (continuum × transmission, unless the flux is flagged as already corrected). The model is read from a file (file_path: a text table with the names of its columns on top, also commented, separated by spaces, tabs or commas, such as # x xmin xmax trans_molecfit dy; the CSV of Export to ASCII; a FITS table of Astrocook or a Molecfit output with mtrans) or from another open session (source_session); its column is found by name (telluric, telluric_model, trans_molecfit, mtrans) or given (column); the other columns are ignored (the dy of the Molecfit models is the error of the science spectrum). It is copied where it is on the grid of the spectrum (within a tenth of a pixel), otherwise averaged over the pixels of the spectrum (the equivalent width conserved); 1 beyond the model; a model that does not overlap the spectrum is refused. No shift is applied: the models are taken in the frame of the spectrum. The dialog has a Browse… button for the file. New tutorial External Models. Text tables open by the names of their columns (FT2): a text file with the columns of a spectrum separated by spaces or tabs and named on top (# x xmin xmax y dy, or lam F dF, wave flux err) opens as a spectrum (it went to the loader of the FITS files and did not open), its further columns kept, a trans_molecfit or mtrans in telluric; without names, by position as a CSV file. A file with a telluric model and no flux is refused with a message that points to File > Import Model… (FT1: the loader of the files with TRANS_MOLECFIT read only the columns wave flux error separated by tabs, and also wrote the transmission in model, the column of the absorption model, which it no longer does). The CSV files are read as before. No number of the fits changes.

[2.7.1] - 2026-11-17#

A bug-fix release on 2.7.0, with two fixes reported by users and nothing else of the work done since (phase 7 is not in it). No number changes.

Fixed#

  • Saving a session after the automatic identification (#781). After Absorbers > Auto-detect Doublets (and the other recipes of the automatic identification), saving the session could fail with “The header keyword ‘region_map_json’ with its value is too long”: the map of the regions, stored as a long string in the metadata, did not fit a card of the FITS header. Long strings are now written in several cards and joined back when the archive is opened. Archives saved by earlier versions open as before.

  • Editing a value in the table of the System Inspector (#794). Since 2.3.0 the Return that confirms a value typed in a cell (z, log N, b, …) also ran Refit Selected on the component, and the value typed was lost: the component was refitted from its old values, so a value set by hand and then frozen (e.g. the column density of a saturated Ly-a, or one line of a blended doublet) came back to the old one. Return and Backspace now act as shortcuts only when the table itself has the focus, not in the editor of a cell: there Return confirms the value (with the model redrawn, without a fit) and Backspace edits the text.

[2.7.0] - 2026-11-13#

Phase 6-quater of the consolidation: the review of the parameters and interfaces of the recipes, recipe by recipe, for the recipes that phase 7 does not rewrite (file, flux, edit and the manual fits of the absorbers). A minor version: the interface of the scripts changes (names, refusals), the results of a valid call do not but in the cases below. What changes for a user or a script:

  • Renamed parameters and classes keep their old names. A parameter renamed by the review (e.g. folder of export_ascii, called path until 2.6.0) still accepts the old name, as an alias. The classes lost the V2 suffix (Spectrum, Session, DataColumn, RecipeAbsorbers, MainWindow, …): the old names are still served, with a DeprecationWarning, for scripts only (archives and logs hold no class names). Session moved to astrocook.session; the old paths astrocook.core.session and astrocook.core.session_manager still work.

  • Invalid values are refused before the recipe runs, with a message that names the parameter, the value and what is accepted, instead of failing in the middle of the recipe or being silently replaced.

  • One set of names of the columns everywhere (expressions, recipes, scripts, MCP server); the labels of the menus come from the registry; the MCP tools have shorter descriptions. For the developers: ruff with the flake8-bugbear rules and mypy on the whole package, with zero errors, in CI.

Numerical results. Unchanged for the benchmark of synthetic spectra (documentation page Accuracy, as for 2.2.0): no PR of the phase touched the continuum, the identification, the fitting or the automatic pipelines, and the full benchmark on the final master (validate_mocks.py --compare, 135 mocks) confirms it (identical to the baseline in all 19 rows, 1884 s; the slow tests pass, 5 of 5). The values of a valid call of the reviewed recipes are unchanged too (checked by fingerprints and snapshots taken before each change). Three changes decided on purpose, none read by the benchmark: (1) the unit of the flux (PR 8-bis): a loader gives a spectrum a physical unit of the flux only when the file says it, otherwise its flux is in arbitrary units, the new unit arb_flux; the values do not change, and the continuum is converted together with the flux (F130, F131); (2) spectra combined in different units (PR 9): Co-add, Stitch and Equalize and Stitch Arms convert to the units of the reference session before scaling (F132-F134, F138), with the same results as before when the sessions are in one unit; (3) the samplers of fit_bayesian (PR 10-bis): nested sampling no longer stops with a TypeError with dynesty 3 and its posterior is weighted (F139, F140), MCMC is unchanged up to 16 free parameters and uses max(32, 2 * ndim) walkers beyond (F141); no pipeline and no slow test call fit_bayesian, a targeted test measures it. Published on GitHub with the macOS app; not on PyPI yet (install with pip from GitHub).

Changed#

  • MCP server: shorter descriptions, workflows and a banner that names the writer (phase 6-quater, PR 12). The descriptions of the four parameters that every recipe tool has (session_id, provide_missing, max_listed, reason) are 34% shorter, which saves the agent about 11 thousand characters of context over the 65 tools (one text for all the tools, kept in astrocook/mcp_server/schemas.py); what they say about defaults and limits is unchanged. The instructions of the server have a paragraph of typical workflows for the manual fits of Absorbers: which tools fit (absorbers_add_component, absorbers_add_linked_system, absorbers_fit_component) and which only change values and links and need a fit after (absorbers_update_component, absorbers_update_constraint), with examples (adapt a system, try a component, link ions). The banner of a session followed by the GUI says the pid and the version of Astrocook of the program that writes it (e.g. a server of an older version left running); a marker of an earlier version, without them, is still read and its banner is as before. No number or behaviour of the recipes changes.

  • The labels of the menus come from the registry, and the Help button opens the documentation (phase 6-quater, PR 11, F107 and F125). Each recipe in a menu has a key menu in the registry ("Edit > Set &Properties"), the only place where its label is written: the menus are built from it, the dialog is titled by it and the text of the methods names the recipe by it. The labels of the menus are the same; what changes is that Absorbers > Auto-detect Doublets… opens Recipe: Auto-detect Doublets (it was Auto-fit metal doublets (Red Side); the same for the other entries: Set Properties, Smooth Spectrum, …), and that the text of the methods (File > Export Log as Text…) writes the entry as the menu does (Continuum > Auto-estimate Continuum, File > Import Systems from Session), and names no menu for a recipe that has no entry (Convert X axis, Add component, …; it named Edit > Convert X axis, which does not exist). The Help button of the dialogs opens the page of this documentation that explains the recipe (every recipe has one; before, a name of a page of the documentation of Astrocook 1, which no browser could open); the section exists on the site from the next release. Help > Online Documentation and the button share the address of the documentation. For scripts and developers: RecipeSpec.menu, .menu_path, .title and .doc_url, registry.DOCS_URL; the url of a recipe is relative to the root of the documentation; four attributes of the window were renamed with the same meaning (auto_cont_action, find_abs_action, fit_cont_action, calibrate_action: now <recipe>_action). No number changes.

  • Optimize system and the Bayesian fit reviewed (phase 6-quater, PR 10-bis). The nested sampling of fit_bayesian works again (F139: with dynesty 3 it stopped with a TypeError after half a second, so almost always) and its values and errors are those of the posterior (F140: the medians and standard deviations were taken from the points of the sampler without their weights; on a CIV component the errors came out 1.7 in log N and 42 km/s in b instead of 0.005 and 0.14, as the MCMC gives); the samples stored for the corner plot have equal weights. The MCMC works with more than 16 free parameters (F141: its 32 walkers are now twice the free parameters when these are more; up to 16 the results are the same as before, and an error of the sampler is a failure of the recipe, not a crash). Refused before the recipe runs, with a message that names the parameter: a component that is not in the session (F142: optimize_system recorded a step that changed nothing, fit_bayesian failed with “cond is not defined on empty arrays”), and fewer than 10 live points per free parameter in nested sampling (with fewer dynesty failed or did not end). fit_bayesian: uuids is required (an empty list was a failure, “No components are selected”); a new parameter seed makes the sampling repeatable (left out, nothing changes); the warnings of dynesty go to the log. optimize_system: a new parameter max_nfev (default 1000, the value that was fixed); the descriptions of z_window_kms (also how far the redshifts move in its fits) and of max_components (the candidates tried, also those rejected) corrected. The results of optimize_system and of the MCMC do not change. The Refit Bayesian (MCMC) entry of the System Inspector no longer passes its own copies of the defaults.

  • The parameters of the manual fits of Absorbers reviewed (phase 6-quater, PR 10: Add component, update_component, update_components, delete_component, Detect doublet anchor redshift, fit_component, update_constraint, update_constraints_column, add_linked_system). No result of a valid call changes, but for the two cases below. Refused before the recipe runs, with a message that names the parameter: a component that is not in the session (F142: update, delete and fit recorded a step that changed nothing, update_constraint stored a constraint for no component); a series that is not in the atomic data (F143: update_component stored it and add_linked_system added a component without lines; Add component failed with “no valid pixels”), and a list of series given to Add component (CIV,SiIV: the message names add_linked_system) or a series given twice to add_linked_system; a call that changes nothing (update_component with the component alone, update_constraint without is_free and without an expression, delete_component without components); and, in update_constraint, an expression that cannot be evaluated (now an InvalidParameter, F117), one that names the component itself, an expression together with is_free=True (the expression was dropped without a word) and a target_uuid that the expression does not name (F146). The link of update_constraint without target_uuid takes as its target the first component its expression names, as the GUI gives it, and is stored frozen: the fits now put the target in the group of the linked component, as for the links made in the GUI (until 2.6.0 a link made by a script or an agent without target_uuid was fitted without its target). Detect doublet anchor redshift reads the flux normalized by the continuum (F145: it took the flux as normalized, so a spectrum in physical units gave a wrong redshift; a normalized one gives the same result), stops when the two transitions cover no redshift in common (it returned 0) or a flux has no continuum and is not normalized, and reads an axis in Å as well as in nm. Defaults: the redshift of Add component and of add_linked_system has none (it was 0, which never fell on the spectrum), nor have the transitions of Detect doublet anchor redshift, series_list of add_linked_system and is_free of update_constraints_column (the defaults the dialogs and the MCP schemas offered were not those of the methods, which had none: an agent that left them out got a TypeError, F144). A resolution of 0 in update_component(s) removes the resolution of the component, which follows the spectrum again (0 was refused, and the override could not be removed); update_components takes series like update_component (the string 'None' of the old logs still means “unchanged”). A required parameter starts empty in the dialogs (Add component: z). MCP server: these parameters are now required in the schemas of the tools.

  • Combining sessions with different units (phase 6-quater, PR 9): Stitch, Equalize and Stitch Arms and Co-add combine the sessions in the units of one of them, the reference (this session, the bluest arm, the first session listed), converting the others’ axis and flux before scaling them. Before, Equalize and Stitch Arms scaled an arm in another unit of the flux on its values and then converted it, so that an arm per nm came out 10 times too faint against one per Å (F132); Co-add co-added the values as they were (F133: 10 times too bright without scaling, right by chance with it); both looked for the overlap of a session with the axis in Å and one in nm in the values and found none, so the session was not scaled without a word, and Equalize and Stitch Arms applied the cuts in Å, keeping the whole arm, and could put the arms in the wrong order (F134). Sessions in one unit give the same results as before, to the bit. A flux in arbitrary units is combined with a physical one only when scaled to it (it takes its unit; Equalize and Stitch Arms refused it, Co-add mixed them), and a normalized flux is never combined with one that is not; an axis in velocity is refused against one in wavelength (convert it with Convert X axis). Equalize (Flux) had the same faults and compares the two sessions in the units of the current one (F138): the scaled flux keeps its unit, a flux in arbitrary units takes that of the reference. In scripts, Spectrum.coadd and Spectrum.equalize_to_reference compare in the units of the reference too, and the latter refuses an axis in velocity against one in wavelength (a ValueError).

  • The recipes that read other sessions (phase 6-quater, PR 9): one rule for all (Import Systems from Session, Trim to common velocity coverage (trim_common), Stitch, Equalize and Stitch Arms, Co-add, Equalize, Resample, Detect doublet anchor redshift (detect_anchor)). The other sessions are named by the names of the Session List (in the MCP server, their session_id), separated by commas where several; the name of the session the recipe runs on is that session. In a Python script they also take the sessions themselves (session.edit.coadd([session, other])), and the log records their names: in a script without the GUI, Co-add, Equalize and Stitch Arms, Import Systems from Session and trim_common crashed with an AttributeError (F135). A name that is not that of an open session stops the recipe and names it: Co-add skipped it without a word, Stitch with a warning, trim_common said “no range in common” (F136). Stitch takes the names as a comma-separated string too (a list, as before, still works); trim_common’s others_names is now other_sessions, as in the other recipes (the old name still accepted).

  • The parameters of the recipes of Edit on several spectra reviewed (phase 6-quater, PR 9). Co-add: the list of sessions must include this session (the result is a new state of it: without it, it held the others only, F137); equalize_order is None for no scaling and 0 to 5 for a polynomial (F123: it was -1, which in Equalize means a spline; -1 is still read as None, so the session logs replay); xstart must be below xend (it gave a spectrum without pixels), and xunit must be a velocity or a wavelength. Split has no default expression (it was (λ > 400) & (λ < 500)); Import Systems from Session requires the session (its default was the string 'None'). Refused before the recipe runs, with a message that says why: Equalize and Stitch Arms with cuts not increasing or an arm without pixels between its cuts, factors not positive (0 zeroed the flux) or a range whose start is not below its end (they failed with “Split expression resulted in an empty spectrum”); Delete Elements with nothing, a column of every spectrum (λ, F, dF, …) or one the spectrum does not have (a warning, and a step recorded as done); Extract Preset Region with an unknown region (skipped with a warning when others were valid); trim_common with a transition not in the atomic data (“no range in common”, or ignored) or not one per session. MCP server: the tools that read several sessions say x-astrocook-kind: sessions in their schema, edit_stitch takes a string, and edit_split requires expression, edit_import_systems source_session. For developers: equalize_and_stitch split into helpers (its complexity from 23 to at most 10).

  • The unit of the flux (phase 6-quater, PR 8-bis): a spectrum gets a physical unit of the flux only when the file says it, otherwise its flux is in arbitrary units, the new unit arb_flux of Astrocook (astrocook.core.units.ARBITRARY_FLUX; astropy.units.Unit('arb_flux') once Astrocook is imported). The values never change, only the unit. Before, most loaders gave the flux erg/(Angstrom s cm2) or no unit whatever the file said. Now: the FITS files of Astrocook, X-Shooter (TUNIT of FLUX, unless FLUXCAL = 'UNCALIBRATED') and the generic FITS loader (TUNIT of the flux) read the unit of the file; ESPRESSO S2D reads BUNIT (per Å, as the loader divides by the width of the pixel); PypeIt, the CSV files without units, the telluric ASCII files, the files with RESVEL, the archives of Astrocook 1 (which write no units) and the archives whose flux has no unit open in arbitrary units (the transmission of a PypeIt telluric model stays dimensionless). An archive with a unit keeps it. With an arbitrary flux the plot says “arbitrary units”, the iso-magnitude grid is not drawn (it was drawn for spectra that were not calibrated; its check box says why), Convert Y axis refuses to convert it, and Flux Calibrate reads it as erg cm⁻² s⁻¹ Å⁻¹ (it failed). Declaring the unit: Set Properties has a new field, yunit (default _current_), which gives the flux, its error, the continuum and the model a unit without changing the values (e.g. 1e-17 erg/(Angstrom s cm^2), or arb_flux); Convert Y axis converts. In the archives arb_flux is written in the TUNIT of the columns (it is not a unit of the FITS standard: Astrocook 2.6.0 reads it with a warning; other FITS readers show the string). MCP server: y_unit is arb_flux for an arbitrary flux; the tool edit_set_properties takes yunit.

  • Convert Y axis converts the continuum and the model also when they have no unit, in archives saved by earlier versions (F130): they were left as they were, so the flux divided by the continuum changed by the factor of the conversion (e.g. 10 from Å to nm). When such an archive is opened, the continuum and the model without a unit take the unit of the flux.

  • Flux Calibrate keeps the unit of a flux that has one (F131): the result was always labelled erg cm⁻² s⁻¹ Å⁻¹, with the values in the unit of the flux, so a spectrum in erg cm⁻² s⁻¹ nm⁻¹ came out labelled 10 times brighter than the magnitudes asked for (2.5 mag). The values do not change; a flux in arbitrary units or without a unit takes erg cm⁻² s⁻¹ Å⁻¹, as before.

  • The CSV files of Export to ASCII (phase 6-quater, PR 8-bis, F129) are written in ECSV, the CSV format of astropy: comment lines with the unit of each column and the emission redshift, then the names and the values separated by commas (pandas.read_csv(path, comment='#') reads them). The columns of the spectrum have the names of the GUI in ASCII, lam, lammin, lammax, F, dF (they were x, xmin, xmax, y, dy); the file of the systems does not change. Opened again, the file gives back all its columns, their units and z_em: before, the loader took the first three columns as wavelength in nm and flux in erg/(Angstrom s cm2), so a flux converted to another unit or an axis in km/s came back with the wrong unit, the continuum was lost, and the file of the whole spectrum (x,xmin,xmax,y,dy,...) came back with xmin as the flux. The files of earlier versions are read by the names of their columns (x, y, dy, …), with the flux in arbitrary units; other CSV files as before, by position. Import from ASCII understands the names of the GUI (a column F replaced an auxiliary column F instead of the flux), skips lam, lammin and lammax as it skips x, keeps the units of the file, and refuses a flux in a unit different from that of the session.

  • One set of names of the columns (phase 6-quater, PR 8, F120): wherever a column is named (the expressions and the fields of the recipes, scripts, the MCP server) the names are those of the table of the GUI, λ, λmin, λmax, F, dF, and the other columns by their own name (cont, model, …); λ can be written lam (lammin, lammax). The names in the data, x, xmin, xmax, y, dy, are still accepted everywhere, so the session logs, the saved expressions and the scripts written with them work as before; the archives keep them (the CSV files of Export to ASCII kept them until PR 8-bis). Calculate Running StdDev now finds F (the button of its dialog: it failed) and its default input is F (it was y, the same column); it no longer writes a column named F, dF or λ, which no expression could read. MCP server: spectrum_read reads F, dF, cont and model by default and gives the axis as λ (or under the name asked for it: x, lam; it was always x); session_describe lists the columns by these names.

  • The parameters of the recipes of Edit on columns and expressions reviewed (phase 6-quater, PR 8). No result of a valid call changes. Apply Expression has no default target and expression any more (they were F and F / dF, which replaced the flux with its S/N; in the MCP tool both are now required); its target must be a name an expression can use (letters, digits and _: '' and 'a b' made columns that no expression could read). Apply Expression, Mask by Expression and Smooth Column refuse the axis (λ, λmin, λmax) as their target (they replaced, masked or smoothed the wavelengths, F127): Convert X axis changes it. Refused before the recipe runs, with a message that says why: a column to mask or smooth that does not exist (the message lists the columns), an empty name of a session in Set Properties (it was ignored), a unit of Convert X axis that is neither a wavelength nor a velocity, a unit of Convert Y axis that the flux cannot take (e.g. Jy: a flux per unit wavelength only). A function the expressions do not have (median, mean, std) is named as such instead of “‘VariableNode’ object is not callable” (F128). The descriptions say where the zero of the velocity axis is (the Lyman-α emission at z_ref).

  • The parameters of the recipes of File and Flux reviewed (phase 6-quater, PR 7). No result of a valid call changes. Export to ASCII: the folder is folder (it was path, still accepted, in scripts and in the MCP tool file_export_ascii), and the items not found in the session (e.g. cont without a continuum, or a misspelt systems) are named in a warning instead of being skipped silently. Equalize and Resample require the session they read (reference_session, target_session; their default was the string 'None', which still fails as before saying that no session is selected; in the MCP tools the parameter is now required). Refused before the recipe runs, where they gave an empty or hidden result without a word: Rebin with xstart not below xend (a spectrum without pixels), Equalize with order below -1 (a spline, as -1), Calculate Running StdDev writing to an empty name or to a column of every spectrum (x, xmin, xmax, y, dy: the result went to a hidden column), Flux Calibrate with magnitudes not written as Filter=Magnitude pairs or with an unknown filter (it failed when it ran; the description lists the filters). Rebin warns that norm is ignored for any true value ('true', 1), not only 'True'. The methods text of Calculate Running StdDev gives the window used (an even window is increased by 1), not the one passed.

  • The classes lost the V2 suffix of their names (phase 6-quater): SpectrumV2 is now Spectrum, SessionV2 is Session, DataColumnV2 is DataColumn, RecipeAbsorbersV2 is RecipeAbsorbers, and so on for the 21 classes of the package. For scripts: the old names still import and give the same class, with a DeprecationWarning; they will not be removed before 3.0. The archives (.acs2) and the session logs are not affected: they hold no class names. The settings saved by the GUI are kept.

[2.6.0] - 2026-11-10#

Phase 6-ter of the consolidation: the full MCP server. Astrocook can be driven by an AI agent through 65 tools: the 48 recipes (each one a tool, generated from the registry), the sessions with undo and redo, the inspection of a session, the notes and gaps of the agent, the log as the text of a methods section, the cancellation of a long recipe, a GUI that follows a session of the server and a headless Docker image. Outputs come from RecipeResult only, and nothing the agent does is lost. A minor version: the interface of the server grows, the results of the recipes do not change but in the two cases below.

Numerical results. Unchanged for the benchmark of synthetic spectra (documentation page Accuracy, as for 2.2.0) and for the fits and the identification in general, with two changes decided on purpose (PR 7-quater). (1) Check associated metals (metals_auto) refitted the session it started from and lost the ions already found, and kept a trial ion if its fit gave logN >= 12 and 2 <= b <= 50 km/s (aic_penalty was accepted and not used). It now keeps the ions found, skips the ions whose lines fall outside the spectrum (with a warning) and keeps a trial ion only if its fit does not end at a bound (b or logN) and its AIC change is below -aic_penalty (F111, F121); on a real spectrum (J0103-1305 raw, 215 thousand pixels) the recipe went from 192 ions kept, 67 of them at b = 50 km/s, to 82 and none at the bound, and from 26.7 to 6.4 minutes for the trials. The benchmark of synthetic spectra does not run metals_auto: a targeted test measures it (the SiIV of the mock of the trials is found). (2) A fit of components with no valid pixel around them no longer fits the whole spectrum: the components are not fitted and keep their first values (F111). Published on GitHub with the macOS app; not on PyPI yet (install with pip from GitHub).

Changed#

  • Using Astrocook from an AI Agent rewritten for the full MCP server (phase 6-ter, closing): installation and Docker, the tools by group, a longer example (a blend fitted with undo and constraints), what a request should say, the review in the GUI and the limits (the automatic recipes, no measure of the fit, z_em and R not estimated, the cost in context of the 65 tools). The server is no longer called a pilot.

  • MCP server for agents (phase 6-ter): every recipe is a tool, named <menu>_<recipe> (e.g. flux_rebin, absorbers_fit_component), made from the description of the recipe that the GUI dialogs use: the same parameters, defaults, bounds and texts, the values checked as in the GUI; a recipe added to Astrocook becomes a tool with no change of the server. The five tools of the pilot keep their names. Every tool returns what the recipe changed, listed (the components removed with the reason, the components changed, the columns, the properties), with the summaries of the pilot where they apply (continuum, identification, fit). A recipe that opens new sessions in the GUI does so in the server too, each with its own session_id, and leaves the session it ran on unchanged: Identify Absorption Lines now opens a new session (in the pilot it changed the same one). A parameter that names another session (e.g. the reference of Equalize) takes its session_id. The messages name the tools that provide what is missing (edit_set_properties, continuum_estimate_auto).

  • MCP server: tools for the sessions, session_list, session_describe, session_history, session_undo, session_redo, session_duplicate and session_close (phase 6-ter). Every state of a session is kept, as in the GUI: what a recipe removed is had back with session_undo, and the result of such a recipe says so. session_close does not close a session with changes not saved unless asked to discard them.

  • MCP server: tools to look into a session without changing it (phase 6-ter): components_list (the components with their errors, flags, fit groups and constraints, filtered by series, redshift and flags), spectrum_read (the columns of the spectrum in a range, as numbers) and spectrum_plot (a plot of a range, as an image). What they compute is in the package, for scripts too: SystemListV2.fit_groups (the groups of components that Refit All fits together, now also used by Refit All itself, with the same results), SpectrumV2.columns_in_range (the columns in a range, averaged in blocks of pixels if asked) and the new module astrocook.plotting (plot_spectrum: a plot of a session without the GUI, with the colours of the GUI; the palettes of the plots moved there from gui/plot_style.py). See Using Astrocook from Python, “Looking at a Session”.

  • MCP server: long recipes (phase 6-ter, F113). After 20 s without a line in the log a recipe sends a heartbeat as a progress notification (“Still running : N s; last: ”), so that a client does not give up; the read-only tools, session_save and session_note answer while a recipe runs, on the state before it (session_list and session_describe say what is running; session_save warns). The [mcp] extra now needs anyio>=4.11.

  • Cancellation of a recipe (phase 6-ter, F111, F113): one signal for the GUI’s Stop and the MCP server. The new tool session_cancel stops the recipe running on a session (the recipes check the signal; RecipeCancelled in a script) and the session keeps its state before it. metals_auto checks it at each trial ion, writes a progress line per trial and reports the AIC change of each ion tried (details.tried).

  • The result of every recipe has a details field with what the recipe reports besides the changes (the optimization trace of Optimize, the candidates Identify lines scored and dropped, with their score, dropped_candidates), no recipe named in the server (F118, F119). update_constraint checks every new link, also with is_free left out, and its example is p['<uuid>'].z (F117). spectrum_read also accepts the names of the columns of the GUI (λ, F, dF, …) (F120). compare_sessions lists a parameter as changed only beyond a relative tolerance of 1e-8, so a refit that changes nothing no longer adds “changed” components to the methods text.

  • Export to ASCII no longer replaces files that exist unless asked (F106): in a script, session.file.export_ascii(..., overwrite=True); without it, the export stops, writes nothing and names the files. The GUI asks, as before, and replaces them if you say so. A script that exports twice to the same files must add overwrite=True. The recipe declares its prefix (the beginning of the file names), so that it is also a tool of the MCP server (file_export_ascii).

  • MCP server: progress notifications (phase 6-ter). The recipes that report their progress in the log (>> PROGRESS: n: the automatic pipelines, Refit All, the Bayesian fit) send it to the client as MCP progress notifications, with the last line of the log as the message, as the GUI shows it under its bar; every recipe sends one notification when it starts and one when it ends, with its duration. A client that does not ask for progress receives nothing. For scripts and developers, the format of the progress lines is read in one place, astrocook.recipes.progress (parse_progress, and watch_progress(callback), which calls a function for each progress line a recipe logs); the GUI uses it, with no change in what it shows.

  • The agent’s decisions in the session log (phase 6-ter): every recipe tool of the MCP server takes reason (why the agent runs it, with these values), stored with the step in the log, and the new tool session_note writes a note at the current state of a session (what the agent did or decided outside the tools). A note is not a step: no new state, skipped by the replay, undone with its state. Both are saved in the .acs2 archive and shown in the session log of the GUI as comments (# reason: ..., # note: ...); Run All keeps them in the log it rebuilds. The archives saved before open and replay as before; Astrocook 2.5.0 and earlier open the new archives and replay them, but ignore the reasons and notes (and lose them if they save the session again). For scripts: log.add_entry(..., reason=...), log.add_note(text), log.timeline() of HistoryLogV2.

  • The gaps of the collection of recipes (phase 6-ter): what an analysis needed and no recipe provided. The MCP server records them, in the log of the session and in a file on your computer (~/Library/Application Support/Astrocook/gaps.jsonl on macOS, $XDG_DATA_HOME/astrocook/gaps.jsonl or ~/.local/share/astrocook/gaps.jsonl on Linux, %APPDATA%\Astrocook\gaps.jsonl on Windows; one JSON line each with date, version, kind, text and the name of the session, never sent anywhere; ASTROCOOK_GAPS_FILE moves it, off turns the record off). The agent declares a gap with session_note(..., kind="gap"); the server records by itself a prerequisite that no recipe estimates (z_em, the resolution), a tool that failed with an unexpected error on a valid request (the error type, not its message) and a recipe whose result the agent undid (session_undo takes a reason). The new command astrocook-gaps and the tool gaps_summary summarize them, grouped, to plan the next recipes. For scripts: astrocook.gaps (record_gap, read_gaps, summarize); the notes of a log have the kinds gap and gap_seen, shown as # gap: in the Log Scripter.

  • The session log as the text of a methods section (phase 6-ter): File > Export Log as Text… shows the log of the active session as English text, ready to paste in a paper and to edit, with Copy and Save…: a first paragraph on the spectrum and the version of Astrocook, one paragraph per recipe (the reason given for it, e.g. by an AI agent; what it did, with its parameters and the works it relies on; what it changed: the components added and removed by ion with their range of redshift, the median and largest changes of a refit, the columns, the parameters left at a bound of the fit; the notes written there), the Voigt fit and the sources of the atomic data of the transitions fitted, and the references. The recipes undone are left out; the menu of each recipe follows it in parentheses, unless Name the menus of the recipes is unchecked. For an archive just opened, the text gives the recipes and their parameters, not what each changed. The MCP server offers it as the tool session_methods; scripts as astrocook.methods_text.methods_text(history). For developers: the keys methods (a template of the parameters, or a function of them) and references of a recipe in the registry; every recipe has them.

  • The GUI follows a session of the MCP server (phase 6-ter): the new tool gui_open opens a session in the Astrocook GUI (the application with open -a Astrocook on macOS, else the astrocook command) and keeps it up to date: the server saves it to an archive of its own after every change (a recipe, the steps provided first, undo and redo, a note), and the GUI reloads it, keeping the view (the range and zoom of the plot, the System Inspector and its selected row). A banner says that the session is followed and read only in the GUI: the recipes that change it, the continuum editor, Undo and Redo, the scripts and renaming are refused, with the offer of an editable copy (Make Editable Copy, with the log of the session); saving, exporting and the recipes that open a new session are allowed. When the agent closes the session or the server stops, the banner says it is no longer followed. Without a display (e.g. a Docker image) the tool says that the GUI is not available. An archive is followed when a small file next to it says so (<archive>.follow.json); the archive is replaced only when complete, so the GUI never reads it half written. For scripts and developers: astrocook.follow (write_archive, write_marker, read_marker, remove, gui_unavailable_reason, gui_command, launch_gui), so that any program can be followed by the GUI.

  • A headless Docker image of the MCP server (phase 6-ter): the Dockerfile of the repository builds an image with the server and no GUI (no PySide6 and no Qt libraries), for those who would rather not install Python and the packages: docker build -t astrocook-mcp ., then docker run -i --rm -v <data>:/data astrocook-mcp, which a client (Claude Code, the Claude desktop app) starts by itself; the files of the user are the folder mounted in /data. The tools are the same as in an installation; gui_open says that the GUI is not available. The image is not published. See Using Astrocook from an AI Agent, section 2.1. For developers: the dependencies of the Dockerfile are checked against pyproject.toml by a test, which also checks that the server imports no Qt; a job of the CI builds the image and runs the server in it.

  • scienceplots is no longer a dependency of Astrocook (F110): no code used it (the plots use matplotlib’s own fast style), and it was installed, and bundled in the macOS app, for nothing. Nothing changes in the plots; a script of your own that imports it must install it by itself.

  • For developers: benchmarks/mcp_trials/, the trials of the MCP server with fresh agents (phase 6-ter): a minimal MCP client that shows an agent only what a client shows a model and logs the times of the calls and of the progress notifications, the inputs of the trials and their prompts (see ROADMAP.md, section 4.3).

  • For developers: benchmarks/bench_gui.py runs again; since phase 6-bis its first refit asked for z_em, the resolution and the continuum and waited forever. It now sets z_em and R and answers Estimate.

Fixed#

  • An archive opened and saved again no longer repeats its log (F109). Each saved archive is a step of the analysis: the data as the session started (the original data, *_orig in the archive), the data as saved, and the log from the first to the second. Opening an archive continued its log instead of starting a new one: saved again, the archive had the data as opened as its original data and the old log with it, so that a replay (or Run All, also on an archive just opened) ran the old recipes a second time, on data already processed (e.g. an expression that doubles the flux doubled it twice). Now, when an archive is opened (GUI, MCP server, the editable copy of a followed session), the data as saved are the new start and the log starts empty; the log of the archive is shown read only (at the top of the Session Log as ## comments, in log_before of session_describe, and in the text of Export Log as Text), never run by Run All nor saved again. The original data now include their metadata too (constraints, identifications: *_meta_orig.json). Archives saved before keep what they hold: one that was opened and saved again has the repeated log in it. Astrocook 2.5.0 opens the new archives and replays them correctly. For scripts: load_session_from_file still gives the log of the archive; HistoryLogV2.opened_from(log) makes the log of a session opened from it, and HistoryLogV2.previous is the log of the archive.

  • Set properties with the object left unchanged (the default) no longer writes it again (F108): on a spectrum without an object it wrote an empty OBJECT (seen as a change “object None → ‘’” when an agent set z_em or R with session_open), it copied OBJECT over the ESO target name of the header, and it added the object to the history of the spectrum. A new object is written as before.

[2.5.0] - 2026-11-05#

Phase 6-bis of the consolidation: the recipe API, for scripts, the GUI and the AI agents. Every recipe is described once (its parameters, their types, limits and values allowed, what it needs from the session and what it provides), and the GUI, scripts and the MCP server read that description. In a script the parameters can be given typed or as strings, and values without a physical meaning are refused. A recipe that cannot do what was asked raises an exception that names it, its step and the reason, instead of returning 0: a script that checked for 0 must catch RecipeError instead. run(session, "absorbers.doublets_auto") gives the whole result (what changed, the warnings, the components removed and why). A recipe that needs a continuum and finds none estimates it first (scripts), asks (GUI) or says so (agents). The descriptions of all the recipes are reviewed, and the dialogs offer lists for the parameters with a few values. The session logs of earlier versions replay with the same results.

Numerical results. Unchanged for the benchmark of synthetic spectra (documentation page Accuracy, as for 2.2.0), and in general, with two changes decided on purpose. (1) Identify lines, the automatic pipelines and Check associated metals, on a spectrum without a continuum (flux not normalized), identified the absorbers on the raw flux; the continuum is now estimated first (F103), so their results change for such spectra (not for normalized ones). (2) Auto-fit Ly-alpha forest no longer refits the components outside the forest in its cleanup (F102): metal lines fitted before on the red side keep their values. A minor version, as 2.4.0: the interface of the recipes for scripts changes, the results do not. Published on GitHub with the macOS app; not on PyPI yet (install with pip from GitHub).

Changed#

  • For developers: the recipes are described by one read-only registry, astrocook.recipes.registry (RECIPES, get_recipe, RecipeSpec, ParamSpec), built from the schemas of the recipe modules; the GUI (menus, dialogs, the request for z_em or the resolution, the new sessions), the log window and the MCP server read it. Whether a recipe opens a new session and what it needs from the session (z_em, the resolution) are now declared with the recipe, instead of in lists of the GUI and of core/utils.py (BRANCHING_RECIPES, get_recipe_schema and is_branching_recipe removed).

  • The parameters of all the recipes are typed: a script can give them as numbers and True/False (session.flux.smooth(sigma_kms=50)) or as strings, as the dialogs and the session log do; they are converted once, before the recipe runs, and a value that cannot be read stops the recipe with an error that names the parameter (e.g. sigma_kms: ‘fifty’ is not a number). Values that were read silently in another way are now refused: a boolean written as 'yes', '' or 'None' (read as False), True for a number (read as 1), NaN for a smoothing length or a threshold, a fractional window in pixels; 'true', '1' and 1 are now True ('true' was False for some recipes). Rebin: an empty start or end wavelength means the range of the data, as None; an empty clipping threshold is an error (use None for no clipping).

  • For scripts and agents: astrocook.recipes.result.run(session, "absorbers.doublets_auto", ...) runs a recipe and returns its whole result (RecipeResult): the new session, what changed (the components added, removed and changed, the columns, the properties), the warnings it logged, the recipes it ran as steps and the values of the parameters it used. The GUI keeps the result of the last recipe.

  • The result of a recipe says why each component was removed (deleted, too weak, narrower than min_b, …) and which components an automatic pipeline made and dropped itself; the result of Identify lines gives the candidate systems with their region and score (F49), which the session keeps too.

  • The GUI says what a recipe removed and why: the status bar counts the components removed, discarded and not fitted (and the candidate systems found), its tooltip and the log say the reasons; scripts read them in result.notes.

  • Refit All flags not_fitted the components of a group whose fit failed: they keep the values from before the fit, and the System Inspector shows them as flagged, with the reason.

  • The session log records the values a recipe used, its defaults included, typed (e.g. kappa=3.0, not '3.0'), so that a later change of a default does not change the replay (#573). Logs written before are read and replayed as before.

  • What a recipe needs from the session (the emission redshift, the resolution, a continuum) is declared with the recipe, with the recipes that provide it, and checked before it runs (astrocook.recipes.prerequisites). A script goes on as before: a missing continuum is estimated first with Auto-estimate Continuum, now with a warning (it was an information), and is a step of its own in the session log, before the recipe; with policy("raise") or run(..., on_missing="raise") the recipe stops instead with an error that says what is missing and which recipe provides it. Refit All, Optimize system, Add linked system, Bayesian fit and Auto-detect components now ask for the resolution in the GUI, as the other fits.

  • The GUI asks for a continuum when a recipe needs one and the spectrum has none: Estimate (with the defaults of Auto-estimate Continuum), Open Auto-estimate Continuum… or Cancel; the recipe then runs, as after Set Properties for z_em and the resolution. It estimated the continuum by itself, without asking (or identified without one, F103).

  • The descriptions of the recipes and of their parameters, shown by the dialogs and read by the AI agents, are reviewed: every recipe says what it does and every parameter what it means, with its unit; wrong ones fixed (the mask of Identify lines is True for the absorbed pixels, F48; Find absorbed regions writes abs_mask, not mask_unabs; Import from ASCII reads columns of the spectrum, not the system list). For developers: the key agents of a parameter in the registry (False for the options of debug and the questions of the GUI), and Merge multiple sessions (stitch) declares its parameters.

  • The dialogs of the recipes keep a reasonable width with the new descriptions: the labels of the parameters wrap (also those of the check boxes, now beside them), and so do the tooltips. The screenshots of the dialogs in the tutorials rebuilt.

  • Auto-detect components, Auto-fit metal doublets and Auto-fit Ly-alpha forest take the parameter Mask: new (the default, as before: a mask made again with the defaults of Find absorbed regions) or session (the mask already in the session, e.g. that of Auto-estimate continuum with other parameters; F50). Identify lines and the pipelines take Margin on z_em (z_em_margin_kms, 3000 km/s as before): how far beyond z_em a candidate system can lie (F55).

  • The parameters with a few values allowed are chosen from a list in the dialogs: the region of Auto-detect components and Refit All (also all_ly_forest, accepted before but not listed), the mask of the pipelines, the sampler of the Bayesian fit, the parameter of the constraints. A value not in the list is refused with the values allowed (an unknown sampler ran MCMC; a constraint on an unknown parameter was stored); the case does not matter. For developers: the keys choices and kind ('session', 'column') of a parameter in the registry.

  • The MCP server for agents runs the recipes through the new API: typed parameters, and in each result what the recipe did (summary) and what else is worth knowing (notes). A recipe that needs something the session lacks does not run: the tool says what is missing and which recipe provides it, and with provide_missing=true provides it with the defaults (a continuum), reported and logged as a step of its own (before, the continuum was estimated without asking). Auto-fit metal doublets takes mask and z_em_margin_kms. For developers: astrocook.mcp_server.schemas.parameters_schema, the JSON schema of the parameters of any recipe from the registry, for the full server.

Changed (failures)#

  • A recipe that cannot do what was asked raises an exception that says in which recipe it happened and why (astrocook.recipes.errors: InvalidParameter for a value that cannot be used, RecipeFailed, MissingPrerequisite), instead of logging the reason and returning 0: all the recipes. An expression that cannot be evaluated (Apply, Mask, Split) says which expression and why (a syntax error reached the GUI as an internal error). The error of a step of a pipeline names both, e.g. Populate components from identification → Auto-estimate continuum (single-click): …. The GUI shows the message as before; a script gets the exception (except RecipeError); an agent gets the message from the MCP server. Export to ASCII says why it failed (it pointed to the log), and says when there is nothing to export.

Fixed#

  • A custom multiplet (e.g. a subset of FeII, FeII_2344,FeII_2382) was added to the table of the standard multiplets for the whole run of Astrocook, when a component used it or a session with it was opened, and then appeared among the standard ones (e.g. as a doublet in the Identifications window). Its transitions are now read from its name, and the table does not change (F12).

  • The buttons of the open sessions in the dialogs of Import systems, Equalize and Resample did nothing (F105): they now fill the session; Detect doublet anchor has them too.

  • Identify lines, the automatic pipelines (Auto-fit metal doublets, Auto-detect components, …) and Check associated metals, on a spectrum without a continuum (in physical units), identified the absorbers on the raw flux, with a continuum of 1, and estimated the continuum only afterwards, for the fit (F103): the continuum is now estimated first (or asked for). The results change for these spectra; on a normalized spectrum they do not.

  • Auto-fit Ly-alpha forest: the refits after the removal of the lines narrower than Min b refitted every component of the session, also those outside the forest (e.g. the doublets of the red side, whose values changed slightly); they are now limited to the forest, as the rest of the pipeline (F102, Guido’s decision). Refit All from the System Inspector fits everything again.

  • The description of Smooth spectrum said that the error is not smoothed: it is, with the continuum, the model and the telluric transmission.

  • Absorbers (phase 6-bis, PR 3c, Guido’s decisions): when the final fit of an automatic pipeline (Auto-fit metal doublets, Auto-fit Ly-alpha forest, …) failed, the pipeline gave back its components unfitted, as a result; it now fails, naming the step and the reason. Refit All, Check associated metals and Clean negligible with nothing to do (no components) give the session back with a warning, instead of failing. The recipes on a component or a selection say when there are no components or none is selected (they gave no result, with nothing in the log). Detect anchor without the GUI failed with an internal error.

  • Absorbers: the parameters of the fits and of the components are checked against the limits of the fitter (Guido): an upper bound on logN outside (10, 23] or on b outside (1, 300] km/s (a max_logN below 10 pinned every logN at 10 without a word), a component with logN outside 10-23, b outside 1-300 km/s, btur outside 0-100 km/s, z of -1 or below or a resolution not positive; a score threshold outside 0-1; negative values where 0 means “none” (the merging velocity, the minimum b, the AIC penalty, …), counts below 1 (iterations, pixels, components per group). Each is refused with an error that names it.

  • Recipes of Absorbers that failed on values given as a script or the GUI could write them: Add linked system failed on any redshift given as a string, Identify lines and Clean negligible on a boolean given as True or False, the automatic pipelines on a value that could not be read (they went on and returned the components unfitted, or failed later with “‘int’ object has no attribute ‘spec’”); update_component(series=None) renamed the series of the component 'None'; a list of components given as text to Delete or Refit All was not read.

  • Values without a physical meaning are refused with an error that names them, instead of being used (F46, found by an AI agent in the pilot of the MCP server): an emission redshift (or the reference redshift of Convert X axis, the target redshift of Trim) of -1 or below, NaN or infinite; a resolution R of 0, negative or NaN (taken as “no change” without a word) or of '0px' (an infinite R); a smoothing length, width or sigma, a clipping threshold, a step of Rebin or Co-add, or a window of 0, negative or not finite (some made the recipe do nothing, others gave meaningless results, a step of 0 crashed Rebin).

  • Import systems: append='true' (lowercase, from a script) replaced the systems of the session instead of adding to them.

  • A script that gave renorm_model='False' (a string, as the other recipes take it) to update_from_knots renormalized the model anyway (the string was taken as true); a script that gave fudge=1.0 (a number) to the continuum recipes failed.

  • Equalize and Stitch: the dialog opened from the Edit menu said how many values to enter for the last stitch started from the session list (e.g. “requires 2 values”) instead of the general description (F79): the number is now shown only in the dialog opened from the session list, for its sessions.

[2.4.0] - 2026-11-03#

Phase 6 of the consolidation: error handling. Astrocook now says when something goes wrong, instead of going on with a result that looked valid: a recipe that cannot do what was asked stops with its reason (in the status bar, a dialog and the log), a bug in the GUI is shown in a dialog with its details, and the messages of the log follow one rule. The results of fitting, identification and the automatic pipelines do not change when nothing goes wrong: the results on the benchmark of synthetic spectra are those of 2.2.0 and 2.3.0 (documentation page Accuracy). What changes is the behaviour on failures, listed under “Fixed”: some operations that returned a result (often the input unchanged) after an error now fail with the reason, for example Auto-fit Ly-alpha Forest without the emission redshift, or a V1 archive whose systems cannot be read. One fix prevents a data loss: a failed save no longer replaces the archive with a partial one (F94). Published on GitHub with the macOS app; not on PyPI yet (install with pip from GitHub).

Added#

  • GUI: an error that nothing handled (a bug) is shown in a dialog, with the message and, under Details, the traceback to attach to a report; it was written only to the terminal, and the action stopped without a sign. Astrocook goes on after it.

Changed#

  • Each module of Astrocook logs with its own logger, named after the module (astrocook.recipes.absorbers, astrocook.fitting.voigt_fitter, …), instead of the root logger: a script can choose the level of Astrocook’s messages, or of a part of it, alone (logging.getLogger("astrocook").setLevel(logging.INFO); see Seeing Astrocook’s Messages in the scripting tutorial). The messages themselves and what the GUI shows do not change.

  • The messages of the core, the fit, the loaders, the recipes and the GUI follow one rule (phase 6): English sentences without the name of the function in front, values with their units, and the level by what the user needs: INFO for what an operation did, WARNING when the result needs a check or something was done instead of what was asked, ERROR when there is no result, DEBUG for the internal steps (e.g. the candidates tried by Optimize System, which were WARNING or INFO, are now DEBUG; its accepted components stay INFO). An error is logged once, where it is caught, with its context (e.g. Could not read bad.fits as astrocook_fits: …, or the expression that could not be evaluated), instead of two or three times along the way.

Fixed#

  • Saving a session no longer risks losing the file it replaces (F94). The .acs2 archive was written directly over the existing file, which was emptied first: if the save failed while writing (e.g. a full disk, or an error in the original data of the session), the previous archive was left partial or empty. The archive is now written to a temporary file in the same folder and replaces the old one only when complete; a failed save leaves the old file as it was, and the error is shown as before. An error in the original data now stops the save at once: it was logged and the save went on, to fail later with a confusing “No such file or directory”.

  • Failures that went unnoticed now stop the operation with a message (phase 6). Before, Astrocook went on with a result that looked valid and wrote the problem only in the log, or nowhere:

    • a link between parameters that could not be evaluated (a syntax error, or a component that no longer exists) kept the parameter at its old value in every fit, silently: such a link is now refused when it is set (in the System Inspector, or with the update_constraint recipe), and a session saved with one opens with an error that names the parameter, kept frozen at its value;

    • the manual continuum with two knots at the same wavelength, a single knot or none was not saved, with an error in the log only: the editor now says why in a dialog; Fit continuum with fewer than two unabsorbed pixels gave back the spectrum unchanged, and now fails with the reason;

    • a V1 archive (.acs) whose system list cannot be read opened without its systems (which a save in .acs2 then lost): it now fails to open, with the reason, as a V2 archive does;

    • the smoothing of a continuum or of the flux, the merging of absorbed regions and the search of doublet candidates gave back their input unchanged (or no candidates) when the x axis could not be converted to km/s: the recipe now fails with the reason;

    • an unknown region (region_limit), or one that cannot be computed because z_em is not set, made the automatic pipelines (Auto-detect Doublets, Auto-fit Ly-alpha Forest) and Refit All Systems work on the whole spectrum, with a warning: they now fail with the reason;

    • deleting components, importing systems from a session that is not open, trimming sessions without a range in common and stitching without sessions gave back the session unchanged, which looked like a success: they now fail with the reason;

    • Equalize and Stitch replaced manual factors or equalize ranges that could not be read (or not one per session) with auto: it now fails with the reason;

    • in Refit All Systems, a group whose fit fails keeps its values, as before, but the groups are now counted in one warning with their redshifts instead of one line each; in Check Associated Metals, the trial fits that fail are counted in a warning (they were reported only at the debug level);

    • a fit on a spectrum without a resolution (fitted with profiles that are not convolved, so the b values include the instrumental broadening) now gives a warning in scripts and to agents too (it was only at the debug level; the GUI asks for the resolution first, as before); when a fit recipe estimates the missing continuum first and that fails, the recipe stops with the reason (it failed with ‘int’ object has no attribute ‘systs’); Refit All Systems now says when it estimates the continuum;

    • saving a session says when the samples of a Bayesian fit are not saved (the archive cannot hold them yet; astropy skipped them with a warning of its own), and no longer prints the warnings of astropy that did not matter (the keywords of the FITS structure in the metadata of a session opened from a V1 archive, the long keywords of an identification);

    • a failed Export to ASCII now says so in a dialog (it showed nothing); an entry of the session log that cannot be written stops the update of the session with an error, instead of being dropped while the result was applied (the log and the replay then differed from the session);

    • when the removal of the narrow lines at the end of the forest pipelines fails, the result is kept, as before, and the warning now says how many narrow lines it still contains; when the refit of imported systems fails, the import is kept with a warning that says so.

  • A .csv file of numbers only (wavelength, flux, error, without a line of names on top) did not open (F100): the first line was taken as the names of the columns, which had to be col1, col2, col3. The first three columns are now read by position, with or without a header of any names; Getting Started says how a CSV file is read.

  • A .csv file of fewer than 10 lines did not open (F97): the detection of the format stopped at the end of the file and sent it to the loader of FITS files, which failed with “No SIMPLE card found”.

  • A script that ran a recipe before configuring logging could no longer configure it (F96): the first message of the recipe set up Python’s logging with its defaults, so a later logging.basicConfig(level=logging.INFO) was ignored. A script that configures nothing still sees the warnings and errors, now without the WARNING:root: prefix.

[2.3.0] - 2026-11-02#

Phases 5 and 5-bis of the consolidation: a faster GUI, split into smaller modules, and a review of its look and ergonomics (dark mode, a status bar, a floating toolbar, colour-blind safe plot colours, recent files, files opened in the background, clearer texts and windows). The results of fitting, identification and the automatic pipelines do not change: the results on the benchmark of synthetic spectra are those of 2.2.0 (documentation page Accuracy). Three fixes change numbers elsewhere: Flux > Flux Calibrate with two or more magnitudes now reaches them (it missed them by ~0.1 mag, F70); the flux methods scale, calibrate and smooth the same columns (the power-law continuum cont_pl is now scaled and smoothed with the flux, the telluric transmission is no longer calibrated, F69); linked parameters get an uncertainty propagated through the link instead of 0 (#630). Published on GitHub with the macOS app; not on PyPI yet (install with pip from GitHub).

Added#

  • GUI: File > Open Recent, the files opened last (up to ten); the welcome screen has the buttons Open Session… and Open Recent (the same drop-down menu) and a hint that files can be dropped on the window. The size and position of the main window are remembered.

  • GUI: several files opened together (from Open Session… or dropped on the window) are loaded in the background, with a window that shows the progress (Opening 2 of 5: …) and can cancel the files not yet opened; each session appears as soon as it is loaded, the status bar says how many were opened and in how long, and the files that could not be opened are listed in one message. They were loaded one after the other with the window frozen and no sign of progress.

  • GUI: a status bar. On the left, how the last recipe went: its name, time, the change of the number of components and the warnings (a recipe that succeeded said nothing; the dialog of the warnings stays). On the right, the position of the mouse, which was at the end of the toolbar: it stays visible when the toolbar is hidden. The System Inspector has the same status line, with the position in the velocity plot (now written as in the main window: Δv = -12.0 km/s, ƒ = 0.500, z = 2.355300).

  • System Inspector: keys in the table, Return refits and Delete (or Backspace) deletes the selected components; Undo and Redo work in the inspector too. The keys are shown in the menu of the table.

  • GUI: View > Plot Colours chooses the colours of the plots (main plot and System Inspector): Standard, the colours as before with a thinner model, or Colour-blind Safe (from the Okabe–Ito palette: a dark grey spectrum, a blue model, vermilion residuals and HI ticks, a reddish purple for the components at a bound of the fit), in which the elements stay apart for every type of colour blindness: with the standard colours the model, the selected component and the residuals of the System Inspector look the same to a deuteranope. The choice is remembered. See Dark Mode and Plot Colours in the Getting Started tutorial.

  • GUI: View > Appearance chooses a light or dark appearance for Astrocook alone, or follows the system (the default); View > Show Toolbar hides the toolbar of the plot. Both choices are remembered.

  • GUI: dark mode. The interface follows the light or dark appearance of the system, and switches with it while Astrocook is open; the plots stay white. The colours that did not read on a dark background (the link colours of the System Inspector, the borders and buttons of the recipe dialogs, warnings) have lighter variants, and the icons follow the colour of the text. See Dark Mode in the Getting Started tutorial.

  • GUI: a Select tool in the toolbar of the main plot (F73: the selection of a region was there, but no button reached it). Drag along the wavelength axis to select a region, then choose Split region, Mask region…, Rebin region… or Zoom to region; the recipe dialogs open with the region filled in. See Navigating the Plot in the Getting Started tutorial.

Changed#

  • GUI: Import Systems from ASCII… and Import Systems from Session… (was Import Systems…: it copies the systems of another open session) are in the File menu, with Import from ASCII… (they were in Edit); the File menu is in groups (open, save, import, export, close); the entries of the menus show their tooltips (e.g. Smooth Column and Smooth Spectrum say how they differ).

  • GUI: the Identifications window is a table of the identifications as the recipe makes them: one row per doublet found (a pair of absorbed regions), with the redshift range of the two regions, its middle, the score and the alternatives (the other pairs with one of its regions); the regions of the forest that no doublet identified are shown as Ly_a (assumed), without a score. Sortable by any column; a click on a row shows its regions together in the main plot, with the flux axis fitted to the spectrum, continuum and model in them. It was a list of redshifts per transition.

  • GUI: the Data Inspector writes each column in its own format: the wavelengths with 5 decimals, the masks and the integer columns as integers, the other values with 5 significant digits (in scientific notation only below 0.001 or from a million, e.g. a flux in cgs units). Every column was in scientific notation, also the wavelength.

  • GUI: the toolbar of the plots (main window and System Inspector) behaves as the side panels: as wide as them in the main window (in the System Inspector as wide as its tools, one less), it floats over the bottom left corner of the plot, flush with it and without a border, with its tools only; it fades while the mouse is on the plot; a tab at its right edge hides it and shows it again (as View > Show Toolbar). The plot takes the whole height of the window. Its keys work as before. The toolbar of the System Inspector is remembered shown or hidden too. The card of the sessions stops above the toolbar (or its tab), its list scrolling, instead of covering it when many sessions are open. The status line of the System Inspector looks as the status bar of the main window (the same line on top and height, across the window).

  • System Inspector: without a continuum, the velocity plot showed empty panels (the flux, not divided by any continuum, fell outside their limits) and the fits failed with an error of the fitter. It now shows a message with a button that opens Auto-estimate Continuum…, and the fits (Refit Selected, Refit All, Bayesian, adding a component from the plot) are disabled with a tooltip. Without systems, the plot says how to start, and the table says “No components”. The transitions and the redshift typed above the plot now show the spectrum also when no component is selected (they showed nothing).

  • System Inspector: the uncertainty of z is shown in km/s (c δz / (1 + z), e.g. 2.355374 ± 0.34 km/s) instead of δz in scientific notation, which was hard to compare between rows; the tooltip of the row gives both, the exported tables keep δz. The btur column, almost always a frozen 0, is hidden while no component uses it, and appears when one does; a right click on the header of the table shows or hides any column (remembered), and Default Columns restores this behaviour; while the column is hidden, Unfreeze ‘btur’ in the menu of the table frees it for the selected components and shows the column. The boxes above the velocity plot are in three groups separated by thin lines (the view; the starting values and fit window of a new component; the residuals), each with a tooltip.

  • GUI: the model is drawn thinner (line width 1.1 instead of 1.6), in the main plot and in the System Inspector: in the Lyman-α forest the thick model covered the data.

  • GUI, main plot: the emission lines are named in spectroscopic notation (Lyα, N V, Si IV, C IV, C III], [O III]…; the others as C II 1334) instead of the internal keys (Ly_a, NV_1238), on a white ground so that they read over the data. The ticks of the components are in two rows, HI below and metals above, shorter and in a softer, translucent red: in the forest they made a solid red block that hid the metals. The plot has no title any more (the name of the session is in the window title and in the session list), which leaves more room to the data. The unit of the flux is written in the usual order, on the axis and in the coordinates under the mouse (erg s⁻¹ cm⁻² Å⁻¹; it was erg Å⁻¹ s⁻¹ cm⁻², with the Å drawn out of place). A full redraw of a session with 764 components takes about 0.26 s instead of 0.31–0.35 s on one machine.

  • GUI: the texts of the interface follow one rule: Title Case in menus, buttons and window titles, sentence case in the labels of options and fields, whole words instead of abbreviations where there is room. In particular: View > Show Session Panel and View > Show Plot Controls (they were Toggle …) are checked when the panel is open; Auxiliary column, λ unit, Error column, Show iso-magnitude grid, Show S/N, Show cursor, Transitions in the plot controls; Set Resolving Power… (was Set R…), Set Value of … and Select Flagged in the System Inspector; Set Emission Redshift to z=… in the menu of the plot; the windows Session Log (was Log Scripter), Session Info (was Session Inspector) and Script Console. Session Info gives the median step of a logarithmic grid in km/s first, and the reduced χ² without abbreviation. The session log and the script console use the fixed-width font of the system.

  • GUI: the redshift cursor writes its redshift on the plot, at the top of its first line: the box in the plot controls fades while the mouse is on the plot, and was hard to read (F92).

  • GUI: the drop-down menus of the plot controls (Aux. Column, λ Unit, Error Col.) are aligned (F88); the sample of the auxiliary column is now inside its menu.

  • GUI: the main plot has no legend any more: the samples next to the plot controls show how each element is drawn, and new samples show the auxiliary column (next to Aux. Column) and each other session shown (next to its name in the session list). Placed automatically, the legend took most of the time of a redraw of a long spectrum: a spectrum of 300 000 pixels now redraws in 0.65 s instead of 6.3 s on one machine (F86).

  • GUI: the toolbar of the plots is redesigned (main plot, System Inspector, corner plot): icons of one family that follow the light or dark appearance, rounded buttons, the tool that is on highlighted in blue, Back and Forward grey when there is no view to go to, and keyboard shortcuts after a click on the plot (H Home, ←/→ Back/Forward, P Pan, Z Zoom, X Select, Esc no tool). All the functions are kept. A click on the plot gives it the keyboard focus.

  • GUI: spectra with more than a million pixels in view are drawn decimated (two points, the minimum and the maximum, every ten pixels) at every redraw, in the full view and in wide zooms, which keeps the plot responsive (F76). Before, only the first plot was decimated, and after Home or any later redraw a long spectrum was drawn in full, or with the decimated points drawn as steps; an auxiliary column failed to plot. The threshold was 2 million pixels.

  • System Inspector: the boxes above the table touched (overlapped on macOS), and “Group View (Selected Component Only)” did not say what it shows (F85). It is now Only group, with a tooltip: the group of the selected components, i.e. those linked to them, blended with them or close in velocity, which are fitted together. The entry of the context menu of the main plot is now Inspect … (its group).

  • GUI: the System Inspector opens much faster, and selecting a component redraws the plots faster (phase 5). On a session with 764 components, on the same machine: the first opening from about 5 s to 0.7 s, the next ones from 3.2 s to 0.5 s, the selection of a row from 0.6 s to 0.2 s, the redraw of the main plot from 0.24 s to 0.17 s, the refit of a group from the inspector (the time of the GUI around the fit) from 2.3 s to 0.9 s. No change of results.

  • The code of the spectrum (SpectrumV2) and of the GUI is split into smaller modules, one per theme (phase 5). Nothing changes for the user or in scripts: SpectrumV2 has the same methods, documented on its page of the API reference as before.

Fixed#

  • Identification: when an automatic pipeline ran on a session that already had absorbed regions (e.g. Auto-fit Ly-alpha Forest after Auto-detect Doublets), the identifications of the old regions were lost and those of the new ones were attached to other regions (F90). The Identifications window then listed only the last run (e.g. Ly-α only), and the tooltip of an absorbed region in the main plot could name the identification of another region. The fits were not affected. Sessions saved before keep the wrong identifications until the pipelines are run again.

  • GUI: moving the redshift cursor after the plot had changed size (e.g. after View > Show Toolbar, or after resizing the window) drew the plot as it was before over the new one (F91).

  • GUI: the tagline of the About dialog was clipped on both sides (F89); it now wraps.

  • GUI: in the dark appearance chosen in Astrocook where the system has none (e.g. Linux), the links (About) stayed dark blue and the placeholder text of the script console was barely visible.

  • Data loss (GUI): File > Export to ASCII… could overwrite an existing _spec.csv file without asking, when the columns to export were written only with the names shown in the GUI (e.g. F, dF, or the default F, cont, systems on a session without continuum): the GUI did not expect a spectrum file, so it did not suggest its name nor check for it (F82). The GUI now asks the export which files it will write. The target spec, documented as “all the columns of the spectrum”, wrote nothing: it now writes them.

  • GUI: when the files to export already existed, File > Export to ASCII… failed silently instead of asking whether to overwrite them (an UnboundLocalError in the console, F83).

  • GUI: on a wavelength axis converted to velocity (x_convert, from a script), the ticks of the absorption systems were drawn relative to z = 0 instead of the emission redshift, so they fell outside the plot (F66). They now use the emission redshift, as the conversion of the axis by default.

  • GUI: saving a continuum edited by hand could log “Failed to save continuum” and leave the plot not redrawn, although the continuum was saved (F74).

  • Importing the GUI from a script that had already imported matplotlib.pyplot without a window failed (F7).

  • GUI: the fields of the Session info dialog did not get the style of the other dialogs: its stylesheet was not valid (F87).

  • GUI: the Logarithmic F box of View Controls was not in the panel, so the flux could not be shown on a logarithmic scale (F78). It is now below Logarithmic λ. In the normalized view the axis starts from 0.01; a non-positive F Min is not applied while the scale is logarithmic.

  • GUI: after any recipe dialog (and after running a script) the main plot was left in zoom mode, even if no tool was on before (F81). The dialogs now switch off only the tool that is on.

  • GUI: in the SNR view with the default error column (dF), each plot logged “Could not get SNR error column ‘dF’” and recomputed the arrays, and the other selected sessions were drawn in flux instead of S/N (F75). Fixed; the values of the active session were already right.

  • Voigt fit: a linked parameter (e.g. the z of SiIV linked to that of CIV, or a b linked thermally) was given uncertainty 0, which File > Export to ASCII… wrote in the list of the systems (#630). Its uncertainty is now propagated from the target through the expression of the link. The values of the fit and the uncertainties of the free parameters do not change.

  • Flux > Flux Calibrate with two or more magnitudes did not reach them: the factor of each band was computed alone and interpolated between the filters, which then also saw the factors of their neighbours, so the calibrated spectrum missed the targets by ~0.1 mag (e.g. g = 17.5 and r = 17.0 gave 17.40 and 17.08 on a flat spectrum, F70). The factors are now solved together, and every magnitude is matched. Magnitudes that no positive curve can match (e.g. the same filter twice) give a warning and the previous result.

  • Flux > Flux Calibrate also multiplied the telluric transmission (telluric_model) by the calibration curve and gave it a flux unit, so the normalization by continuum × transmission was wrong after a calibration (F69). The transmission is now left unchanged. The flux operations now change the same columns: Smooth Spectrum and the scaling of the flux (as in Equalize) also change the power-law continuum (cont_pl), as the calibration already did; Smooth Spectrum also smooths the transmission, the scaling and the calibration do not.

  • Saving a continuum edited by hand (Update from knots) failed with an AttributeError on a spectrum with a model and no continuum (F67): the model is now kept as it is, as when the continuum is fitted.

  • Asking a spectrum for a column it does not have, resampled on another grid (e.g. when spectra are combined), raised a confusing AttributeError instead of the ValueError that names the column (F71).

  • Flux > Calibrate failed at every call with recent versions of NumPy (“module ‘numpy’ has no attribute ‘trapz’”): the synthetic magnitudes used np.trapz, which NumPy has removed. They now use the same trapezoid rule from SciPy, which works with every supported version of NumPy. No change of results where it worked.

[2.2.0] - 2026-10-27#

Phase 4 of the consolidation (scientific correctness), measured on a benchmark of 135 synthetic spectra with known parameters (benchmarks/validate_mocks.py). Results change: the fits use the exact resolution of each pixel and a correct damping parameter, the identification gives one candidate per doublet and none beyond the emission redshift, the automatic continuum is more robust, and the automatic pipelines remove spurious components and flag those at a bound. On the benchmark, against 2.1.0: duplicate doublet candidates reduced by about three times, spurious fitted components from 428 to 11, flagged components from 413 to 22, the spread of the total column of the systems at R = 8900 from 0.39 to 0.095 dex. The pulls of single components are unchanged (~1.1); those of components in systems with several components are wider, because these systems are now fitted with fewer components (see Result of the phase in ROADMAP.md). How accurate the results are on the benchmark is in the new documentation page Accuracy, under Science. Published on GitHub with the macOS app; not on PyPI yet (install with pip from GitHub).

Added#

  • System Inspector: the components with warnings of the fit are marked (#517): the cell of a parameter at a bound of the fit is highlighted, the ID of a component without uncertainties in red, a ⚠ precedes the ID of both, and their ticks in the velocity plot are dashed; the tooltips say what happened and what to do. Only flagged lists them, Select flagged selects them, e.g. for Refit Selected. See Components with warnings of the fit in the tutorial on absorption systems.

  • Documentation: the screenshots of the tutorials are now made by a script, docs/screenshots/make_screenshots.py, which runs the GUI offscreen (one scene per image, see docs/screenshots/README.md), and all of them show the current interface.

  • Voigt fit: each fitted component records the warnings of its last fit, in a new flags field saved in the session archives (#517): a parameter at a bound of the fit (z_at_window, logN_at_lower_bound, logN_at_upper_bound, b_at_lower_bound, b_at_upper_bound; the upper bounds of the automatic pipelines are Max logN and Max b), or uncertainties that could not be computed (nan_errors). Editing a parameter of the component clears them. Refit All and Refit Selected report in the log how many components have warnings. For agents, absorbers_doublets_auto of the MCP server returns these flags, renamed accordingly (b_at_max_b and logN_at_max_logN are now b_at_upper_bound and logN_at_upper_bound). Earlier versions of Astrocook ignore the field. No change of results.

  • MCP server for AI agents (pilot): Claude Code, the Claude desktop app or other MCP clients can open a spectrum, estimate the continuum, identify lines, fit the metal doublets and save the session, through the astrocook-mcp command (install with pip install "astrocook[mcp] @ git+https://github.com/DAS-OATs/astrocook.git"). The tools return structured summaries and Astrocook’s error messages, and record their recipes in the session log, so that the result can be reviewed in the GUI. See the new tutorial Using Astrocook from an AI Agent. No existing behaviour changes.

  • System Inspector: a Fit ± field, after logN and b above the velocity plot, sets how far (km/s) the redshift of each component may move in the fits run from the inspector (adding a component in the velocity plot, Refit Selected, Refit All); left empty, each fit keeps its window (20 km/s when adding, 100 km/s when refitting), so nothing changes unless it is set (#518).

  • Documentation: a new page, Atomic Data, describes the table of atomic data, the source of each value, the choices made and the series and multiplets that Astrocook knows (#568).

Fixed#

  • Data loss (GUI): the dialogs showed “0.0” in the parameters that keep their current value by default, when the spectrum had no attribute with their name (F63). Pressing Run without editing them renamed the session “0.0” and wrote “0.0” into the OBJECT keyword (Set session properties), and computed the velocities relative to z = 0 instead of the emission redshift (Convert x axis, Trim to common coverage). The dialogs now show the current name, object, emission redshift and resolution; a resolution that varies with wavelength is left empty (with the median as a hint), and an empty field keeps the current value.

  • GUI (Linux, Windows): the unchecked boxes of the plot controls were invisible, and the checked ones showed only the tick; macOS was not affected (F64).

  • GUI: the card of the plot controls could cut the last line of the hints of the continuum editor.

  • Voigt fit: sessions saved by earlier versions with pixel edges (xmin, xmax) without a unit could no longer be refitted, with the error “’’ (dimensionless) and ‘Angstrom’ (length) are not convertible” (#623, a regression of the exact convolution of #526, which uses the edges). Edges without a unit now take the unit of the wavelengths when a session is opened; if their values are not around the wavelengths, they are recomputed halfway between the pixels. No change of results for other sessions.

  • System Inspector: the profiles drawn for the selected components and under the cursor now use the physics and the convolution of the fit (#526): the same Voigt function, and each pixel convolved with its own resolution and averaged over its edges. Before, they had their own copy of the Voigt function and a kernel taken at the median wavelength, so they could differ from the model of the fit at low resolution or for narrow lines. No change of results.

  • Voigt fit and System Inspector: the damping wings of the lines were (1 + z) times too strong, because the damping parameter of the Voigt profile was computed with the observed wavelength of the line instead of the rest one (F61). Results change for absorbers whose damping wings matter: the column density of a damped Ly-alpha or Lyman-limit system fitted from its wings was too low by log(1 + z), 0.5-0.7 dex at z = 2.5-4 (on a mock damped Ly-alpha with logN = 20.3: 19.75 at z = 2.5 and 19.64 at z = 3.5 before, 20.29 now). Narrow saturated metal lines change by up to 2% in depth. Astrocook 1 was not affected. Systems fitted with earlier versions should be refitted.

  • Voigt fit: the model is now convolved with the resolution of each pixel and averaged over the pixel (#526). It is computed on a grid finer than the pixels, uniform in velocity, then each pixel takes it convolved with a Gaussian of its own resolution and averaged over its edges. Before, the model was sampled at the pixel centres and convolved with one kernel per fitting window, its width taken at the median wavelength (up to +53%/-26% wrong at the edges of a wide window) and a resolution column that varied was rounded to 100. Against the exact flux of mock spectra the model was off by up to 0.6% of the continuum at R = 45000 and 6% at R = 8900; now the difference is below 0.003% (with the correction of the damping parameter, see above). Results change, mostly at low resolution and for lines narrower than a pixel: on the validation mocks at R = 8900 the spread of the column density of the systems goes from 0.18 to 0.10 dex, the median reduced chi2 from 2.45 to 1.61, the components with suspicious errors from 30 to 16; at R = 45000 and above the results are the same within 0.002 dex. The fit is not slower: a full automatic chain is 25-30% faster, a single blended group up to 15% slower.

  • GUI: the System Inspector read the resolution column always as a FWHM in km/s, so a column of resolving powers (R) gave profiles with the wrong instrumental width; it now reads it by its unit, as the fit does (#526). The session panel, the dialogs and the checks use the same resolution (the median R when it varies with wavelength); Set Properties asks before replacing a resolution only when it varies with wavelength. In tooltips, a component without its own resolution shows “spectrum”.

  • Automatic continuum (Auto-estimate continuum, Find absorbed regions, and the pipelines that use them): upward spikes (cosmic rays, bad pixels, frequent in NIR spectra) no longer pull the continuum up; with 1% of the pixels in spikes it came out 2 to 20 times too high, as reported for X-Shooter and FIRE spectra (#465). At S/N ~3 the continuum on the red side is no longer 26% too high. Results change: the running mean of the clipping is now taken over the smoothing length in km/s, exact at the edges (it was biased low there), and pixels with no signal and spikes are flagged in abs_mask as not continuum. On the validation mocks the forest continuum moves closer to the true one (0.936 → 0.943 of it; 5th percentile 0.820 → 0.830), the red side is unchanged, and more weak metal doublets are found (CIV completeness 0.857 → 0.874; systems detected at 5-10 sigma 35% → 44%). The forest continuum is still ~5% low at S/N 30.

  • Automatic pipelines (doublets_auto, lya_auto, components_auto): the absorbed mask of the session (abs_mask, e.g. from Auto-estimate continuum with other parameters) is no longer replaced by the mask the pipeline makes for itself, nor cleared outside the region of the pipeline (the forest after doublets_auto), so a later Fit continuum uses the mask of the user (F50). The results of the pipelines do not change.

  • Atomic data: the wavelengths of OIII 832, PIII 913, PV 1117 and FeI 2501 were wrong by 0.2-0.7 A (mistyped in the conversion from nm to Angstrom, e.g. 913.397 instead of 913.968 A), and the damping constant of ArI 1066 was ten times too small; they now agree with Morton (2003) and with the table of V1 (#568). Results change for absorbers fitted or identified with these lines.

  • Atomic data: AlII 1670 at 1670.7886 A (was 1670.7874, 0.2 km/s); the forbidden emission lines [NeIII] 3869 and [NeV] 3346 at their vacuum wavelengths, as the rest of the table (they were in air, 1.1 and 1.0 A shorter); TiII_3066, a line that no reference lists, has f = 0 as in V1, and the real TiII_3067 (3067.2379 A) is added (#568).

  • Redshift cursor and identification viewer (GUI): with a series of the V1 syntax such as Ly, D or H the redshift refers to the strongest line (Ly-a), not to the Lyman limit or to the weakest line, as the series followed the order of the V1 table; the aliases Ly-ab and Ly-abg also start from Ly-a (#568, F39).

Changed#

  • Auto-fit Lyman Series (forest_auto): Min b is now applied, as in Auto-fit Ly-alpha Forest: the Lyman systems narrower than it are removed and the rest refitted (F65; before, the parameter was taken and not used). Results change for this pipeline.

  • Automatic pipelines: the output is cleaner (#517, F21). Auto-fit Ly-alpha Forest removes the Ly-alpha lines narrower than Min b also after its last fit: before, the filter ran before that fit, which could narrow other lines, and 33 Ly-alpha with b < 10 km/s were left on J0103-1305. All the pipelines remove the components that end at the lower bound of the column density (logN = 10), which absorb nothing measurable. On J0103-1305 the forest has 40 components fewer and its model is slightly closer to the data. Results change for the automatic fits.

  • Automatic pipelines (components_auto, doublets_auto, lya_auto, forest_auto, metals_auto): a new parameter, Max logN (max_logN, default 19), bounds the column density in their fits, as Max b bounds the Doppler parameter (F62). In a saturated trough of the forest that the detected lines do not fill, a single component could fill it with its damping wings and grow to logN 20-23, blacking out the model for hundreds of km/s around it. This was already possible before and became worse once the damping wings were corrected (see Fixed). On J0103-1305 the model of the forest is now much closer to the data: chi2 per pixel 31 against 98 before the correction of the wings, and 2-3% of the pixels over-absorbed against 28%. Damped Ly-alpha systems and sub-DLAs are to be fitted by hand: Refit All (whose Max logN defaults to 23), the System Inspector and the other manual fits keep the physical limit. Results change for the automatic fits of the forest; the metal doublets are unchanged.

  • GUI: the session list and the plot controls are now cards as tall as their contents, below the menu bar, that fade out while the mouse is on the plot and come back when it returns; they still float over the plot, so that opening them does not change the aspect of the spectrum. They open with a list icon (sessions) and a cog (plot controls) instead of the arrows. All the sections of the plot controls can be opened and closed with a click on their title, and Astrocook remembers their state. While Plot Elements is open, each checkbox shows a sample of how its element is drawn, and those entries leave the legend of the plot, which used to show through the panel. Long session names are shortened in the middle, with the full name on hover. No change of results.

  • Voigt fit: components whose lines are closer than the instrumental FWHM are now fitted together (the FWHM from the resolution of the spectrum at the lines, or of the component if set), besides those closer than 4 b or 30 km/s as before (F14). Before, at low resolution (R below ~10000, e.g. X-Shooter) lines of different systems whose profiles overlapped could be fitted one at a time, with the other frozen. Results change only for such blends at R below ~10000; the results on the validation mocks are identical (they fit only the sparse metal doublets). The System Inspector highlights the same groups.

  • Resolution: the resol column of the spectrum is now its only source, R or a FWHM in km/s according to its unit (#526). The resolution stored elsewhere by earlier versions (spectrum attribute, header keywords) is moved into the column when a session is opened, so existing sessions open as before. The Voigt fit no longer writes the resolution it used into the fitted components: a component keeps its own resolution only if set on purpose, and those written by earlier fits are cleared when a session is opened, so that changing the resolution of the spectrum applies to all its components. Set Properties keeps a resolution column that varies with wavelength unless asked to replace it, and no longer flattens it when the resolution is left unchanged. No change of results for spectra with a single resolution. Astrocook no longer writes the resolution into the header keywords resol, resol_fwhm (and RESOL in archives): the resolution is saved in the resol column only, which earlier versions of Astrocook 2 also read; the keywords of files from earlier versions are still read when there is no column.

  • Line identification: no candidate system lies beyond the emission redshift by more than 3000 km/s, a margin for absorbers associated with the quasar and for the uncertainty of z_em (F55). Before, the metal doublets had no limit: a SiIV 16000 km/s beyond z_em, in a telluric band, was identified and fitted. Results change only for spectra with such candidates.

  • Line identification: a metal doublet gives one candidate system per absorption component, from the stronger line (e.g. CIV 1548); before, the other line gave a second candidate ~1 km/s away, and the automatic pipelines (doublets_auto, components_auto) added a component for each (F49). Results change: on the validation mocks the spurious components drop from 428 to 11 and those with meaningless errors from 413 to 38; the total column of each system stays right, but systems with several close components are now fitted with fewer components (the second candidate sometimes ended on one of them).

  • Atomic data: a single table, astrocook/data/atomic_data.ecsv, replaces the table in the code and the V1 file atom_par.dat, and records the source of each wavelength, oscillator strength and damping constant (#568). Newer values replace those of Morton (2003), as in the atom.dat of VPFIT (decided by Guido): the oscillator strengths of ZnII 2026 and 2062 (Kisielius et al. 2015; 26% higher, logN(ZnII) 0.10 dex lower), of NiII 1317-1751 (Boissé & Bergeron 2019; up to 32% lower, logN(NiII) up to 0.17 dex higher) and of SII 1250-1259 (Kisielius et al. 2014; 5% lower, logN 0.02 dex higher), and the wavelengths of CIV 1548 and 1550 (Petitjean & Aracil 2004; 0.2 and 0.5 km/s). The damping constant of CI 1560 is the one of Morton (2003), 1.27e8 s^-1 (was 1.17e8). Results change for absorbers with these lines. The transitions of the V1 file that V2 never used (H2, CO, Paschen and Brackett series, …) are not in the table; the V1 series names made only of them (H2, COJ0, …) are no longer recognised.

  • The defaults of the recipes are now the same in the GUI dialogs and in scripts (#573): before, 15 parameters had a different default in each, so the same recipe gave different results from a dialog, from a script, or from the System Inspector (which passes only some parameters). The values of the dialogs are kept, with three exceptions decided by Guido. Results change where a default changes:

    • refit_all from a script and from the Refit button of the System Inspector: grouping depth 2 and 200 iterations per group (were 0 and 100), as the Refit All dialog; slower, and better on blends. The automatic pipelines (metals_auto, forest_auto, the refit after importing systems) keep the values they always used.

    • optimize_system from a script: an AIC improvement of at least 5 to accept a new component (was 0); the dialog now offers up to 5 extra components and a residual threshold of 2.5 sigma, the values of the API.

    • fit_component: the dialog now offers 2000 iterations, the value the System Inspector and scripts always used.

    • rebin: the dialog now clips upward outliers at 5 sigma by default (was off), as scripts did.

    • coadd from a script: a grid of 10 km/s (was 0.01 nm), as the dialog; choose the native pixel size for high-resolution data.

    • x_convert from a script: velocities relative to the emission redshift of the session (was z = 0). The dialog meant to do the same, but showed z = 0 because of F63, fixed in this release.

    • No change of results: estimate_auto takes fudge='auto' (the same as '1.0'), two parameter names of the dialogs follow the methods (uuids of fit_bayesian, file_path of import_ascii), and the maps of populate_from_identification default to an empty string, as before treated as missing.

[2.1.0] - 2026-10-21#

First consolidated release (phases 3 and 3-bis of the consolidation): Astrocook no longer depends on the V1 code, which is removed, and V1 .acs archives are read by a new native reader. Published on GitHub with the macOS app; not on PyPI yet (install with pip from GitHub). Some results change: refitting a V1 session with links between parameters (now kept as constraints), and the dbtur column of the fitted components (now updated; 0 when btur is frozen). Nothing else changes numerically with respect to 2.0.3.

Added#

  • .acs2 archives record the version of Astrocook that saved them (astrocook_version in the metadata file); a session opened from an archive reports it as saved_with_version (None for archives saved by 2.0.3 or earlier). Older versions of Astrocook ignore it.

Fixed#

  • Data loss: a session that could not be read (an .acs2 archive without its metadata file, a damaged .acs archive, a file in a format without a loader) was opened with mock data in place of the spectrum, and saving it overwrote the file. An .acs2 archive without metadata now opens with its spectrum and systems (without constraints, session log and identifications); the other cases report an error.

  • V1 .acs archives: the turbulent broadening (btur) and its error, and the reduced chi2 of each component are now read (they were set to 0 or dropped); the flux keeps its unit, erg/(cm2 s Angstrom), so that unit conversions (Edit > Convert y axis) work on V1 sessions.

  • V1 .acs archives: the links between parameters (e.g. SiIV z and b tied to CIV) are now kept as V2 constraints. Before, the linked parameters were frozen at their V1 values, did not follow their target in a refit, and the System Inspector showed no target; constraints on logN were lost. Refitting a V1 session with links gives different (correct) results.

  • Session log (GUI): a recipe that opens a new session (extract_preset, split, stitch, equalize_and_stitch, coadd, resample, identify_lines) was also recorded in the log of the session it was run from, whose data do not change; after an undo, it also deleted that log’s redo entries. It is now recorded only in the log of the new session. Note: .acs2 archives saved with 2.0.2 or 2.0.3 may still contain such an entry in their log; it is left as it is (it cannot be told apart from a correct one), so check the log before replaying it as a script.

  • System Inspector: a link created or removed while its group is selected is now coloured (or uncoloured) at once, and the colours of the other links no longer change when a link is added.

  • Voigt fit: the uncertainty of the turbulent broadening (dbtur) was never updated and kept its value from before the fit. It is now set like the other errors: computed when btur is free, 0 when it is frozen (the default), unchanged for the components outside the fitted group. The dbtur column of the fitted components changes (usually from empty to 0); no other result changes.

Changed#

  • Scripts that use Astrocook show only warnings and errors unless they configure logging (logging.basicConfig(level=logging.INFO) shows the progress messages too, see the new tutorial Using Astrocook from Python): the package no longer configures logging when imported, as is usual for libraries. The GUI is unchanged.

  • Using Astrocook from Python (scripts, notebooks) no longer imports the GUI toolkit (PySide6): the core requested its debug plots through the GUI.

  • V1 .acs archives are read by a new reader that does not use the V1 code; apart from the fixes above, the result is the same as before.

  • Rebin (Flux > Rebin): the option “Return normalized spectrum, if continuum exists” (norm) is no longer offered: it was never applied in V2, the spectrum was not normalized. Scripts that pass norm='True' still run, with a warning; the normalized flux is shown by the normalized view of the plot, or computed with apply_expression (y / cont).

Removed#

  • The V1 code (astrocook/legacy/, ~22,500 lines, with the old wxPython interface): Astrocook no longer depends on it. Dependencies no longer installed: lmfit, tqdm and cycler (the latter still comes with matplotlib); the [legacy] extra (wxPython) and the broken V1 Docker image (containers/) are gone too.

  • Data files used only by the V1 code (~140 MB): telluric.fits, sky_telluric.fits (identical to each other), telluric.dat, defaults.json, espr_spec_form.dat, table2_inoue.dat. The telluric data are kept for a future telluric correction as assets of the GitHub pre-release data-telluric-2026.

  • Saving sessions in the V1 .acs format: sessions are saved as .acs2 only (.acs2 is added to a file name without it, and an .acs name is refused with a message). V1 .acs archives can still be opened; Astrocook 1.9.0 can still write them.

[2.0.3] - 2026-10-19#

Packaging release. No numerical result changes with respect to 2.0.2.

Added#

  • astrocook [file ...] command to launch the GUI; python -m astrocook now works from any directory (it needed the root of a source checkout).

  • Installation with pip directly from GitHub: pip install git+https://github.com/DAS-OATs/astrocook.git (see the installation page; Astrocook is not on PyPI yet).

  • Optional extras [docs] (to build the documentation) and [build] (to build the macOS app).

Fixed#

  • Security: opening a crafted .acs2 or .acs archive could write files outside the temporary folder; such archives are now refused.

  • Installed with pip, the GUI started without its window icon and splash screen: the images now ship with the package.

  • The macOS build (Astrocook.spec) worked only on one machine (absolute paths); build_app.sh ran PyInstaller twice.

  • The online documentation is now published automatically after each change.

  • The documentation and build scripts stop at once with the command to run when Sphinx or PyInstaller is missing.

Removed#

  • Unused dependencies statsmodels and specutils; the minimum NumPy version is now 1.26.

  • Backup data files that were shipped in every package (~54 MB), the old V1 launchers (legacy_home/), unused identification code, and the Gemfile of the V1 documentation (the source of all the Dependabot security alerts).

[2.0.2] - 2026-10-16#

Corrective release. Some numerical results change: see “Changed behaviour” below.

Fixed#

  • Data loss: Bayesian fit (MCMC) with 200 steps or fewer overwrote the component parameters with NaN; the burn-in now adapts to the number of steps.

  • Data loss: the .acs2 archive did not keep the session log; it is now saved and restored (also in the GUI).

  • Voigt fits of broad lines (b > 50 km/s) were biased (e.g. b = 80 fitted as ~50, logN 0.1 dex low): the soft penalty is removed (see below).

  • Rebinned and co-added errors did not decrease with the number of pixels per bin (#490).

  • Rebin clipping could empty bins and removed the cores of narrow absorption lines; it now clips spikes only (upward, against a running median) and never empties a bin.

  • The Voigt model was zero on pixels whose resolution column held non-round or NaN values (e.g. co-added spectra).

  • The automatic pipelines (doublets_auto, lya_auto, …) gave different results at every run; they are now reproducible.

  • Components could not be deleted from a spectrum without a continuum.

  • group_depth was ignored in the fits (“Fit component”, Bayesian fit).

  • Rebin with a non-numeric parameter raised an error instead of aborting cleanly.

  • The identification viewer failed on sessions reloaded from .acs2.

  • NaN uncertainties (ill-conditioned fits) are now reported in the log with the components involved.

  • ASCII export (#476, #481); warning when saving a session with a V2 log to the V1 .acs format.

Added#

  • Edit > Import Systems from ASCII: read absorption components from a CSV or whitespace-separated table (columns series, z, optionally logN, b, …) (#480).

  • Stitching overlapping regions switches the plot to scatter style (#442).

  • max_b parameter of the automatic pipelines (default 50 km/s) and of Refit All (default 300 km/s).

Changed behaviour#

  • Uncertainties: the errors of the fitted parameters are scaled by sqrt(reduced chi2), as in Astrocook v1; the reduced chi2 is computed on the pixels that constrain the fit and, after the automatic pipelines, on the final model. Errors become larger where the model does not describe the data well (e.g. unresolved blends).

  • Broad lines: the automatic pipelines bound b to 50 km/s (as the former penalty did, but without biasing the fits); manual fits use only the physical limit (300 km/s). Components that end at 50 km/s may be broader and can be refitted by hand.

  • Continuum smoothing: the width is now given as a FWHM (smooth_fwhm, default 800 km/s, which reproduces the v1 continuum). The former smooth_std (a standard deviation, default 500 km/s) is still accepted. The default continuum is smoothed less than in 2.0.1, so continua and the results of the automatic pipelines change slightly.

[2.0.1] - 2026-04-21#

  • Feature: Added “Equalize and Stitch” to the GUI with dynamic parameters.

  • Fix: Prevented FITS save crashes from Ly-α identifications and ensured tooltips render safely upon reloading.

[2.0.0] - 2026-04-07#

  • Added an experimental Bayesian fitting engine supporting MCMC (emcee).

  • Introduced interactive Corner Plots to visualize Bayesian posteriors with asymmetric uncertainties and auto-refresh capabilities.

  • Fixed a critical group definition bug to ensure physically linked components are always correctly grouped during fitting.

  • Improved continuum fitting and smoothing methods, including dynamic re-normalization of the Voigt model.

  • Polished the GUI with publication-ready plot formatting, stacked asymmetric error labels, and scientific notation for redshift uncertainties.

  • Finalized the transition to the immutable V2 data architecture and removed legacy dead code.

[2.0.0-beta.3] - 2026-02-18#

  • Improved robustness (crash recovery) and fitting (weak lines, Lyman forest)

  • Updated line lists (FeII, SiII, etc.) and set turbulent broadening (btur) to default to frozen.

  • Added batch actions (refit, freeze, delete), group highlighting, and visual feedback for frozen parameters

  • Introduced a Data Inspector and a recipe to equalize flux across sessions

  • Added Drag-and-Drop support to the main window

[2.0.0-beta.2] - 2026-01-22#

  • More flexible way to manually edit continuum

  • More robust fitting engine (when parameters hit boundary values)

  • More options in adding/fitting components (single doublet component; stop button for refitting)

  • Optional refitting of systems upon import into a session

[2.0.0-beta.1] - 2026-01-02#

  • Fixed a typo in the Continuum menu.

[2.0.0-beta] - 2025-12-23#

Includes

  • a fully redesigned architecture, with immutable structures and exposed APIs;

  • a new PySide6 QUI

  • countless improvements to the V1 algorithms and new algorithms (especially for continuum and absorber fitting)

Also downloadable as a macOS App.