From 94f66e081667945f8e91bd5b77609bd265883087 Mon Sep 17 00:00:00 2001 From: Michael Krayer Date: Tue, 25 May 2021 18:46:19 +0200 Subject: [PATCH] require period explicitly --- field.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/field.py b/field.py index 4bb27ef..36aa591 100644 --- a/field.py +++ b/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"