just check if file exists rather than trying to open

This commit is contained in:
Jan Petykiewicz 2022-10-04 17:09:14 -07:00
parent ad1ec6acfb
commit 31e6e0ec60

View File

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