From 831c39246a822cdb7ca4483a59f5d5684f4a8946 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Tue, 4 Oct 2022 12:27:10 -0700 Subject: [PATCH] drop pathlib prefix --- examples/bloch.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/bloch.py b/examples/bloch.py index e77c80f..29bd82e 100644 --- a/examples/bloch.py +++ b/examples/bloch.py @@ -4,14 +4,15 @@ from numpy.linalg import norm import logging from pathlib import Path + logging.basicConfig(level=logging.DEBUG) 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): - path = pathlib.Path(path) + path = Path(path) try: import pyfftw import pickle @@ -24,7 +25,7 @@ def pyfftw_save_wisdom(path): def pyfftw_load_wisdom(path): - path = pathlib.Path(path) + path = Path(path) try: import pyfftw import pickle