Skip to content

Commit

Permalink
Fixed bug in typing
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zwicker committed Oct 3, 2023
1 parent 9b59a53 commit 7a7f285
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pde/grids/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

PI_4 = 4 * np.pi
PI_43 = 4 / 3 * np.pi
CoordsType = Literal["cartesian", "grid", "cells"]
CoordsType = Literal["cartesian", "grid", "cell"]


class OperatorInfo(NamedTuple):
Expand Down Expand Up @@ -663,10 +663,7 @@ def _grid_to_cell(
return cells # type: ignore

def transform(
self,
coordinates: np.ndarray,
source: Literal["cartesian", "cell", "grid"],
target: Literal["cartesian", "cell", "grid"],
self, coordinates: np.ndarray, source: CoordsType, target: CoordsType
) -> np.ndarray:
"""converts coordinates from one coordinate system to another
Expand Down

0 comments on commit 7a7f285

Please sign in to comment.