Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 18, 2023
1 parent c44e1b3 commit 6375da6
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 24 deletions.
6 changes: 2 additions & 4 deletions src/laue_dials/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions src/laue_dials/algorithms/laue.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,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()
Expand Down
3 changes: 1 addition & 2 deletions src/laue_dials/command_line/compute_rmsds.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
import reciprocalspaceship as rs
from cctbx import sgtbx
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 matplotlib import pyplot as plt

from laue_dials.utils.version import laue_version
Expand Down
6 changes: 2 additions & 4 deletions src/laue_dials/command_line/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@

import libtbx.phil
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.monochromatic import (initial_index,
scan_varying_refine)
from laue_dials.algorithms.monochromatic import initial_index, scan_varying_refine
from laue_dials.utils.version import laue_version

# Print laue-dials + DIALS versions
Expand Down
3 changes: 1 addition & 2 deletions src/laue_dials/command_line/integrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
from laue_dials.utils.version import laue_version
Expand Down
3 changes: 1 addition & 2 deletions src/laue_dials/command_line/optimize_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,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.utils.version import laue_version
Expand Down
3 changes: 1 addition & 2 deletions src/laue_dials/command_line/plot_wavelengths.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

import libtbx.phil
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 matplotlib import pyplot as plt

from laue_dials.utils.version import laue_version
Expand Down
3 changes: 1 addition & 2 deletions src/laue_dials/command_line/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions src/laue_dials/command_line/refine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
from laue_dials.utils.version import laue_version

# Print laue-dials + DIALS versions
Expand Down
3 changes: 1 addition & 2 deletions src/laue_dials/command_line/sequence_to_stills.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,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 MosaicCrystalSauter2014
from dxtbx.model.experiment_list import Experiment, ExperimentList
from libtbx.phil import parse
Expand Down

0 comments on commit 6375da6

Please sign in to comment.