Skip to content

axes_type for backend #102

@ahelm

Description

@ahelm

Currently, we only return min and max for the different axes in a
GridBackend. We should consider two things:

  1. Provide an additional Sequence[str] determining what type of axes it is,
    e.g., log, linear, something_else. It should appear in the docs what is possible.
  2. Provide additional attribute axes_values. If this is present discard
    above's logic so that this axes_values are used.

I think the latter point would even provide the possibility to use non-uniform grids.

The updated protocol would be something like this:

class GridBackendType(BackendType, Protocol):
    ...

    axes_type: Sequence[str]

    axes_min: Optional[np.ndarray]
    axes_max: Optional[np.ndarray]

    axes_values: Optional[Sequence[np.ndarray]]

    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendAnything backends

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions