initialize to 1.0 instead of (1.0,)*3

matches docs, and works better in cases where there are more/fewer grids
This commit is contained in:
Jan Petykiewicz 2019-09-30 23:37:25 -07:00
parent 0c4a773b84
commit e97bd482a9

View File

@ -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):
"""