From cbbfb21a47d4185d616b3bf4b8afc794613d58bf Mon Sep 17 00:00:00 2001 From: Pete R Jemian Date: Wed, 4 Oct 2023 00:07:36 -0500 Subject: [PATCH] STY #159 black & isort for workflow --- hkl/calc.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/hkl/calc.py b/hkl/calc.py index d491c2cc..2f43e965 100644 --- a/hkl/calc.py +++ b/hkl/calc.py @@ -27,18 +27,18 @@ """ -import logging import functools +import logging from collections import OrderedDict from threading import RLock import numpy as np -from .engine import Engine, CalcParameter -from .sample import HklSample from . import util -from .util import libhkl from .context import UsingEngine +from .engine import CalcParameter, Engine +from .sample import HklSample +from .util import libhkl __all__ = """ A_KEV @@ -185,7 +185,6 @@ def __init__( lock_engine=False, inverted_axes=None, ): - self._engine = None # set below with property self._detector = util.new_detector() self._degrees = bool(degrees) @@ -683,7 +682,6 @@ def __call__( **kwargs, # fmt: on ): - with UsingEngine(self, engine): for pos in self.get_path(start, end=end, n=n, path_type=path_type, **kwargs): yield self.forward(pos, engine=None, **kwargs)