From bccec403592c9f9328ec3c0e6fc864aafd71b024 Mon Sep 17 00:00:00 2001 From: Per A Brodtkorb Date: Sun, 9 Jul 2017 17:28:11 +0200 Subject: [PATCH] Fixed a bug --- wafo/spectrum/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wafo/spectrum/models.py b/wafo/spectrum/models.py index 362333e..c56a578 100644 --- a/wafo/spectrum/models.py +++ b/wafo/spectrum/models.py @@ -1522,7 +1522,7 @@ class Spreading(object): methods = {'n': None, 'm': 'mitsuyasu', 'd': 'donelan', 'b':'banner', 0: None, 1: 'mitsuyasu', 2: 'donelan', 3:'banner', None: None} - m = method if not isinstance(self.method, str) else method[0].lower() + m = method if not isinstance(method, str) else method[0].lower() try: self._method = methods[m] except KeyError: