Skip to content

Fix species dump#129

Merged
chengcli merged 1 commit into
mainfrom
cli/fix_specie_dump
May 12, 2026
Merged

Fix species dump#129
chengcli merged 1 commit into
mainfrom
cli/fix_specie_dump

Conversation

@chengcli

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 12, 2026 12:14
@chengcli chengcli requested a review from luminoctum as a code owner May 12, 2026 12:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the xsection “species dump” dataset construction so that the wavenumber dimension/coordinate is renamed cleanly (without leaving the legacy wavenumber_cm1 coordinate behind), and adds a regression test to prevent regressions.

Changes:

  • Update _xsection_dataset() to use xarray.Dataset.rename(...) (instead of rename_vars(...) + swap_dims(...)) so the wavenumber_cm1 dimension/coord is fully renamed to wavenumber.
  • Add a unit test asserting the resulting dataset has only the wavenumber dimension and no leftover wavenumber_cm1 coord/dim.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
python/spectra/dump_cli.py Ensures xsection datasets rename the wavenumber_cm1 dimension/coord to wavenumber without leaving legacy coordinates.
tests/spectra/test_cli.py Adds regression coverage to confirm the legacy wavenumber_cm1 dim/coord is not present after dataset construction.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chengcli chengcli force-pushed the cli/fix_specie_dump branch from 915ec14 to cae7e77 Compare May 12, 2026 12:29
@chengcli chengcli merged commit 774512f into main May 12, 2026
3 checks passed
@chengcli chengcli deleted the cli/fix_specie_dump branch May 12, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants