Repository navigation
Conversation
_rewrite_values returns a bare name when a key maps to one name, and
_process_signature extended the positional args with it, unpacking the
string into characters. cf.transpose('Y') on a 1-D array therefore raised
"Dimensions {'o', 't', ...} do not exist".
Closes xarray-contrib#696
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #696.
_rewrite_valuesreturns a bare name (not a list) when a key maps to exactly one name, and_process_signaturethen didposargs.extend(value)for*argsparameters.list.extendon a string appends its characters, soda.cf.transpose("Y")on a 1-D array failed withDimensions {'o', 't', ...} do not exist.The fix wraps the value with
always_iterablebefore extending.Test:
test_pos_args_methods_single_argument(a CF axis name, a standard name and a plain dimension name on a 1-D array). It fails onmainand passes with the change; the full suite passes (283 passed, 22 skipped).This is also what breaks
xroms.order, and soxroms.isosliceon 2-D variables.🤖 Generated with Claude Code