Skip to content

Commit

Permalink
Improve missing Column Error (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins authored Jan 21, 2025
1 parent c6c9212 commit 849f6b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changelog

X.Y.Z (DD-MM-YYYY)
------------------
* Improve Missing Column error (:pr:`52`)
* Fix `open_datatree` instructions in the README (:pr:`51`)
* Skip test case that segfaults on numpy 2.2.2 (:pr:`50`)
* Upgrade to xarray 2025.1.1 (:pr:`49`)
Expand Down
2 changes: 1 addition & 1 deletion xarray_ms/backend/msv2/main_dataset_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _variable_from_column(self, column: str) -> Variable:
try:
schema = MSV4_to_MSV2_COLUMN_SCHEMAS[column]
except KeyError:
raise KeyError(f"No Column Schema exist for {column}")
raise KeyError(f"Column {column} was not present")

try:
column_desc = main_column_descs[schema.name]
Expand Down

0 comments on commit 849f6b5

Please sign in to comment.