Skip to content

Commit

Permalink
STY #159 black & isort for workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Oct 4, 2023
1 parent ba7c85a commit cbbfb21
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions hkl/calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit cbbfb21

Please sign in to comment.