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 년 전
부모 0c4a773b84
커밋 e97bd482a9

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

불러오는 중...
취소
저장