require period explicitly

This commit is contained in:
Michael Krayer 2021-05-25 18:46:19 +02:00
parent d14e4a72a8
commit 94f66e0816
1 changed files with 1 additions and 1 deletions

View File

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