XY

class kgpy.grid.XY(x=None, y=None)

Bases: Y, X

__init__(x=None, y=None)
Parameters
Return type

None

Attributes

broadcasted

components

coordinates

ndim

shape

size

value

x

y

Methods

__init__([x, y])

copy()

rtype

typing.TypeVar(CopyableT, bound= Copyable)

copy_shallow()

rtype

typing.TypeVar(CopyableT, bound= Copyable)

flatten(axis_new)

rtype

typing.TypeVar(GridT, bound= Grid)

from_dict(value)

rtype

typing.TypeVar(GridT, bound= Grid)

subspace(subgrid)

rtype

typing.TypeVar(OtherGridT, bound= Grid)

Inheritance Diagram

Inheritance diagram of kgpy.grid.XY

copy()
Return type

typing.TypeVar(CopyableT, bound= Copyable)

Parameters

self (CopyableT) –

copy_shallow()
Return type

typing.TypeVar(CopyableT, bound= Copyable)

Parameters

self (CopyableT) –

flatten(axis_new)
Return type

typing.TypeVar(GridT, bound= Grid)

Parameters
  • self (GridT) –

  • axis_new (str) –

classmethod from_dict(value)
Return type

typing.TypeVar(GridT, bound= Grid)

Parameters

value (Dict[str, AbstractArray]) –

subspace(subgrid)
Return type

typing.TypeVar(OtherGridT, bound= Grid)

Parameters
  • self (GridT) –

  • subgrid (OtherGridT) –

property broadcasted: GridT
property components: List[str]
property coordinates: List[AbstractArray]
property ndim: int
property shape: Dict[str, int]
property size: int
property value: Dict[str, AbstractArray]
x: typing.Optional[typing.TypeVar(CoordinateX, bound= kgpy.labeled.AbstractArray)] = None
y: typing.Optional[typing.TypeVar(CoordinateY, bound= kgpy.labeled.AbstractArray)] = None