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

Feature/vgrid vs arrays shape (This PR shall be merged first) #8

Merged

Conversation

SerGeRybakov
Copy link
Member

VArray shape may be split either by vgrid or by arrays_shape argument:

  • vgrid splits VArray shape and creates the shape of all underlying Arrays
  • arrays_shape sets the shape of all underlying Arrays and creates vgrid

@SerGeRybakov SerGeRybakov temporarily deployed to testpypi August 4, 2023 11:18 — with GitHub Actions Inactive
@SerGeRybakov SerGeRybakov changed the base branch from dev to bugfix/create_array_from_meta August 4, 2023 14:05
@SerGeRybakov SerGeRybakov temporarily deployed to testpypi August 4, 2023 14:27 — with GitHub Actions Inactive
@SerGeRybakov
Copy link
Member Author

This PR shall be merged first

@SerGeRybakov SerGeRybakov changed the title Feature/vgrid vs arrays shape Feature/vgrid vs arrays shape (This PR shall be merged first) Aug 4, 2023
@SerGeRybakov SerGeRybakov self-assigned this Aug 4, 2023
deker/ABC/base_adapters.py Outdated Show resolved Hide resolved
deker/schemas.py Outdated
Comment on lines 342 to 349
splitters = {
attr: getattr(self, attr) for attr in ("vgrid", "arrays_shape") if getattr(self, attr)
}
if len(splitters) < 1:
raise DekerValidationError("Either `vgrid` or `arrays_shape` shall be passed")
if len(splitters) > 1:
raise DekerValidationError("Either `vgrid` or `arrays_shape` shall be passed, not both")
splitter, value = tuple(splitters.items())[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

Same logic as in adapters ? Can't we have it in one place ?

Copy link
Member Author

Choose a reason for hiding this comment

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

@SerGeRybakov SerGeRybakov temporarily deployed to testpypi August 7, 2023 11:11 — with GitHub Actions Inactive
@SerGeRybakov SerGeRybakov marked this pull request as ready for review August 7, 2023 13:30
@SerGeRybakov SerGeRybakov merged commit feeb89b into bugfix/create_array_from_meta Aug 7, 2023
@SerGeRybakov SerGeRybakov deleted the feature/vgrid_vs_arrays_shape branch August 7, 2023 13:31
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.

3 participants