require period explicitly
This commit is contained in:
parent
d14e4a72a8
commit
94f66e0816
2
field.py
2
field.py
|
|
@ -1,6 +1,6 @@
|
|||
import numpy
|
||||
class Field3d:
|
||||
def __init__(self,data,origin,spacing,period=(None,None,None)):
|
||||
def __init__(self,data,origin,spacing,bounds,period):
|
||||
assert len(origin)==3, "'origin' must be of length 3"
|
||||
assert len(spacing)==3, "'spacing' must be of length 3"
|
||||
assert len(period)==3, "'period' must be of length 3"
|
||||
|
|
|
|||
Loading…
Reference in New Issue