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

Replace TypeSpecifier by simpler DataType #63

Merged
merged 4 commits into from
Aug 31, 2021

Conversation

forman
Copy link
Member

@forman forman commented Aug 27, 2021

Required changes as a consequence of xcube-dev/xcube#510, which must be merged first.

@forman forman requested review from TonioF and AliceBalfanz August 27, 2021 09:38
@forman forman self-assigned this Aug 27, 2021
Copy link
Contributor

@TonioF TonioF left a comment

Choose a reason for hiding this comment

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

Mostly very good. The changelog will need an update, though.
Also, I found that one of the tests is not running locally ( CubeWithCredentialsTest.test_open_cube_S2L2A_1D ) but this seems to be (a) unrelated to the changes by this PR and (b) temporarily.

# type_specifier is ignored, xcube-sh only provides "dataset" and "dataset[cube]"
def describe_data(self, data_id: str, data_type: DataTypeLike = None) \
-> DatasetDescriptor:
# data_type is ignored, xcube-sh only provides "dataset" and "dataset[cube]"
Copy link
Contributor

Choose a reason for hiding this comment

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

dataset[cube] does not exist anymore

# type_specifier is ignored, xcube-sh only provides "dataset" and "dataset[cube]"
return super().describe_data(data_id, type_specifier=type_specifier)
def describe_data(self, data_id: str, data_type: str = None) -> DataDescriptor:
# data_type_alias is ignored, xcube-sh only provides "dataset" and "dataset[cube]"
Copy link
Contributor

Choose a reason for hiding this comment

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

see above

@TonioF TonioF marked this pull request as ready for review August 31, 2021 12:30
@TonioF TonioF merged commit 54caba4 into master Aug 31, 2021
@TonioF TonioF deleted the forman-509-simpler_data_type branch August 31, 2021 13:00
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