Browse Source

initialize to 1.0 instead of (1.0,)*3

matches docs, and works better in cases where there are more/fewer grids
tags/release
Jan Petykiewicz 1 year ago
parent
commit
e97bd482a9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      gridlock/grid.py

+ 1
- 1
gridlock/grid.py 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):
"""


Loading…
Cancel
Save