From e97bd482a91a7f4d3c352a40a97611e3bb586b5c Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Mon, 30 Sep 2019 23:37:25 -0700 Subject: [PATCH] initialize to 1.0 instead of (1.0,)*3 matches docs, and works better in cases where there are more/fewer grids --- gridlock/grid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gridlock/grid.py b/gridlock/grid.py index 0ba2f62..bde7d98 100644 --- a/gridlock/grid.py +++ b/gridlock/grid.py @@ -204,7 +204,7 @@ class Grid(object): def __init__(self, pixel_edge_coordinates: List[List or numpy.ndarray], shifts: numpy.ndarray or List = Yee_Shifts_E, - initial: float or numpy.ndarray or List[float] or List[numpy.ndarray] = (1.0,)*3, + initial: float or numpy.ndarray or List[float] or List[numpy.ndarray] = 1.0, num_grids: int = None, periodic: bool or List[bool] = False): """