diff --git a/src/laue_dials/__init__.py b/src/laue_dials/__init__.py index 5e28345..e451f10 100644 --- a/src/laue_dials/__init__.py +++ b/src/laue_dials/__init__.py @@ -2,11 +2,9 @@ if sys.version_info[:2] >= (3, 8): # TODO: Import directly (no need for conditional) when `python_requires = >= 3.8` - from importlib.metadata import (PackageNotFoundError, # pragma: no cover - version) + from importlib.metadata import PackageNotFoundError, version # pragma: no cover else: - from importlib_metadata import (PackageNotFoundError, # pragma: no cover - version) + from importlib_metadata import PackageNotFoundError, version # pragma: no cover try: # Change here if project is renamed and does not equal the package name diff --git a/src/laue_dials/algorithms/laue.py b/src/laue_dials/algorithms/laue.py index 491eccf..7b989d1 100644 --- a/src/laue_dials/algorithms/laue.py +++ b/src/laue_dials/algorithms/laue.py @@ -100,8 +100,9 @@ def gen_beam_models(expts, refls): # Imports from copy import deepcopy - from dials.algorithms.refinement.prediction.managed_predictors import \ - ExperimentsPredictorFactory + from dials.algorithms.refinement.prediction.managed_predictors import ( + ExperimentsPredictorFactory, + ) # Instantiate new ExperimentList/reflection_table new_expts = ExperimentList() diff --git a/src/laue_dials/command_line/initial_solution.py b/src/laue_dials/command_line/initial_solution.py index d1c1abf..b18bec1 100644 --- a/src/laue_dials/command_line/initial_solution.py +++ b/src/laue_dials/command_line/initial_solution.py @@ -11,8 +11,11 @@ from dials.util import show_mail_handle_errors from dials.util.options import ArgumentParser -from laue_dials.algorithms.monochromatic import (find_spots, initial_index, - scan_varying_refine) +from laue_dials.algorithms.monochromatic import ( + find_spots, + initial_index, + scan_varying_refine, +) logger = logging.getLogger("laue-dials.command_line.initial_solution") diff --git a/src/laue_dials/command_line/integrate.py b/src/laue_dials/command_line/integrate.py index 560a734..ec91cf0 100644 --- a/src/laue_dials/command_line/integrate.py +++ b/src/laue_dials/command_line/integrate.py @@ -17,8 +17,7 @@ from cctbx import sgtbx from dials.array_family import flex from dials.util import show_mail_handle_errors -from dials.util.options import (ArgumentParser, - reflections_and_experiments_from_files) +from dials.util.options import ArgumentParser, reflections_and_experiments_from_files from laue_dials.algorithms.integration import SegmentedImage diff --git a/src/laue_dials/command_line/optimize_indexing.py b/src/laue_dials/command_line/optimize_indexing.py index d7db198..7a8ee7e 100644 --- a/src/laue_dials/command_line/optimize_indexing.py +++ b/src/laue_dials/command_line/optimize_indexing.py @@ -13,8 +13,7 @@ import numpy as np from dials.array_family.flex import reflection_table from dials.util import show_mail_handle_errors -from dials.util.options import (ArgumentParser, - reflections_and_experiments_from_files) +from dials.util.options import ArgumentParser, reflections_and_experiments_from_files from dxtbx.model import ExperimentList logger = logging.getLogger("laue-dials.command_line.optimize_indexing") diff --git a/src/laue_dials/command_line/predict.py b/src/laue_dials/command_line/predict.py index 1170d80..a9cbe58 100644 --- a/src/laue_dials/command_line/predict.py +++ b/src/laue_dials/command_line/predict.py @@ -16,8 +16,7 @@ from dials.array_family import flex from dials.array_family.flex import reflection_table from dials.util import show_mail_handle_errors -from dials.util.options import (ArgumentParser, - reflections_and_experiments_from_files) +from dials.util.options import ArgumentParser, reflections_and_experiments_from_files from dxtbx.model import ExperimentList from laue_dials.algorithms.outliers import gen_kde diff --git a/src/laue_dials/command_line/refine.py b/src/laue_dials/command_line/refine.py index a3dfc71..61bdb4b 100644 --- a/src/laue_dials/command_line/refine.py +++ b/src/laue_dials/command_line/refine.py @@ -19,8 +19,11 @@ from dxtbx.model import ExperimentList from dxtbx.model.experiment_list import ExperimentListFactory -from laue_dials.algorithms.laue import (gen_beam_models, remove_beam_models, - store_wavelengths) +from laue_dials.algorithms.laue import ( + gen_beam_models, + remove_beam_models, + store_wavelengths, +) logger = logging.getLogger("laue-dials.command_line.refine") diff --git a/src/laue_dials/command_line/sequence_to_stills.py b/src/laue_dials/command_line/sequence_to_stills.py index 64ce98b..704df89 100644 --- a/src/laue_dials/command_line/sequence_to_stills.py +++ b/src/laue_dials/command_line/sequence_to_stills.py @@ -13,8 +13,7 @@ from dials.array_family import flex from dials.array_family.flex import reflection_table from dials.util import show_mail_handle_errors -from dials.util.options import (OptionParser, - reflections_and_experiments_from_files) +from dials.util.options import OptionParser, reflections_and_experiments_from_files from dxtbx.model import MosaicCrystalSauter2014 from dxtbx.model.experiment_list import Experiment, ExperimentList from libtbx.phil import parse