Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add name based getter for dimension #688

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

jdries
Copy link
Collaborator

@jdries jdries commented Dec 17, 2024

No description provided.

@jdries jdries requested a review from soxofaan December 17, 2024 06:28
@@ -379,6 +394,11 @@ def add_dimension(self, name: str, label: Union[str, float], type: str = None) -
dim = Dimension(type=type or "other", name=name)
return self._clone_and_update(dimensions=self._dimensions + [dim])

def add_dimension(self, dimension: Dimension) -> CubeMetadata:
Copy link
Member

Choose a reason for hiding this comment

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

this overwrites the existing add_dimension method
(which makes some tests fail)

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