initialize to 1.0 instead of (1.0,)*3

matches docs, and works better in cases where there are more/fewer grids
lethe/LATEST
Jan Petykiewicz 5 years ago
parent 0c4a773b84
commit e97bd482a9

@ -204,7 +204,7 @@ class Grid(object):
def __init__(self, def __init__(self,
pixel_edge_coordinates: List[List or numpy.ndarray], pixel_edge_coordinates: List[List or numpy.ndarray],
shifts: numpy.ndarray or List = Yee_Shifts_E, 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, num_grids: int = None,
periodic: bool or List[bool] = False): periodic: bool or List[bool] = False):
""" """

Loading…
Cancel
Save