drop pathlib prefix

This commit is contained in:
Jan Petykiewicz 2022-10-04 12:27:10 -07:00
parent 6b0182c102
commit 831c39246a

View File

@ -4,14 +4,15 @@ from numpy.linalg import norm
import logging import logging
from pathlib import Path from pathlib import Path
logging.basicConfig(level=logging.DEBUG) logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
WISDOM_FILEPATH = pathlib.Path.home() / '.local' / 'share' / 'pyfftw' / 'wisdom.pickle' WISDOM_FILEPATH = Path.home() / '.local/share/pyfftw/wisdom.pickle'
def pyfftw_save_wisdom(path): def pyfftw_save_wisdom(path):
path = pathlib.Path(path) path = Path(path)
try: try:
import pyfftw import pyfftw
import pickle import pickle
@ -24,7 +25,7 @@ def pyfftw_save_wisdom(path):
def pyfftw_load_wisdom(path): def pyfftw_load_wisdom(path):
path = pathlib.Path(path) path = Path(path)
try: try:
import pyfftw import pyfftw
import pickle import pickle