just check if file exists rather than trying to open
This commit is contained in:
parent
ad1ec6acfb
commit
31e6e0ec60
1 changed files with 2 additions and 3 deletions
|
|
@ -32,12 +32,11 @@ def pyfftw_load_wisdom(path):
|
|||
except ImportError as e:
|
||||
pass
|
||||
|
||||
try:
|
||||
if path.exists():
|
||||
with open(path, 'rb') as f:
|
||||
wisdom = pickle.load(f)
|
||||
pyfftw.import_wisdom(wisdom)
|
||||
except FileNotFoundError as e:
|
||||
pass
|
||||
|
||||
|
||||
logger.info('Drawing grid...')
|
||||
dx = 40
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue