Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
# Version can be updated by running "pre-commit autoupdate"
rev: 25.12.0
rev: 26.1.0
hooks:
- id: black
ci:
Expand Down
1 change: 0 additions & 1 deletion diffsims/generators/diffraction_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
lorentzian_precession,
)


__all__ = [
"AtomicDiffractionGenerator",
"DiffractionGenerator",
Expand Down
1 change: 0 additions & 1 deletion diffsims/generators/library_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from diffsims.utils.sim_utils import get_points_in_sphere
from diffsims.utils.vector_utils import get_angle_cartesian_vec


__all__ = [
"DiffractionLibraryGenerator",
"VectorLibraryGenerator",
Expand Down
1 change: 0 additions & 1 deletion diffsims/generators/rotation_list_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
beam_directions_grid_to_euler,
)


__all__ = [
"get_beam_directions_grid",
"get_fundamental_zone_grid",
Expand Down
1 change: 0 additions & 1 deletion diffsims/generators/sphere_mesh_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

from diffsims.utils.vector_utils import vectorised_spherical_polars_to_cartesians


__all__ = [
"beam_directions_grid_to_euler",
"get_cube_mesh_vertices",
Expand Down
1 change: 0 additions & 1 deletion diffsims/generators/zap_map_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import numpy as np
from transforms3d.euler import axangle2euler


__all__ = [
"corners_to_centroid_and_edge_centers",
"generate_directional_simulations",
Expand Down
1 change: 0 additions & 1 deletion diffsims/libraries/diffraction_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import numpy as np


__all__ = [
"DiffractionLibrary",
"load_DiffractionLibrary",
Expand Down
7 changes: 2 additions & 5 deletions diffsims/libraries/vector_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import pickle


__all__ = [
"DiffractionVectorLibrary",
"load_VectorLibrary",
Expand Down Expand Up @@ -48,10 +47,8 @@ def load_VectorLibrary(filename, safety=False):
with open(filename, "rb") as handle:
return pickle.load(handle)
else:
raise RuntimeError(
"Unpickling is risky, turn safety to True if \
trust the author of this content"
)
raise RuntimeError("Unpickling is risky, turn safety to True if \
trust the author of this content")


class DiffractionVectorLibrary(dict):
Expand Down
1 change: 0 additions & 1 deletion diffsims/pattern/detector_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from numpy.random import default_rng
from scipy import ndimage as ndi


__all__ = [
"add_dead_pixels",
"add_detector_offset",
Expand Down
1 change: 0 additions & 1 deletion diffsims/sims/diffraction_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from diffsims.pattern.detector_functions import add_shot_and_point_spread
from diffsims.utils import mask_utils


__all__ = [
"DiffractionSimulation",
"ProfileSimulation",
Expand Down
1 change: 0 additions & 1 deletion diffsims/structure_factor/structure_factor.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
get_doyleturner_atomic_scattering_factor,
)


rest_mass = physical_constants["atomic unit of mass"][0]
# rest_mass = 9.109383709e-31 # Used by EMsoft

Expand Down
1 change: 0 additions & 1 deletion diffsims/utils/atomic_diffraction_generator_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
)
from diffsims.utils.generic_utils import to_mesh


__all__ = [
"get_diffraction_image",
"grid2sphere",
Expand Down
1 change: 0 additions & 1 deletion diffsims/utils/fourier_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
from numpy.fft import fftfreq
import numba


__all__ = [
"convolve",
"fast_abs",
Expand Down
2 changes: 1 addition & 1 deletion diffsims/utils/generic_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@

@author: Rob Tovey
"""

from numpy import isscalar, zeros, array
import numba


__all__ = [
"GLOBAL_BOOL",
"get_grid",
Expand Down
2 changes: 1 addition & 1 deletion diffsims/utils/kinematic_simulation_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

@author: Rob Tovey
"""

from numpy import array, pi, sin, cos, empty
from scipy.interpolate import interpn

Expand All @@ -36,7 +37,6 @@
)
from diffsims.utils.generic_utils import to_mesh


__all__ = [
"get_diffraction_image",
"grid2sphere",
Expand Down
1 change: 1 addition & 0 deletions diffsims/utils/probe_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

@author: Rob Tovey
"""

import numba
from math import sqrt as c_sqrt
from numpy import empty, maximum, sqrt, arange, pi, linspace, ones
Expand Down
1 change: 0 additions & 1 deletion diffsims/utils/shape_factor_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import numpy as np
from scipy.integrate import quad


__all__ = [
"atanc",
"binary",
Expand Down
1 change: 0 additions & 1 deletion diffsims/utils/sim_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
from diffsims.utils.lobato_scattering_params import ATOMIC_SCATTERING_PARAMS_LOBATO
from diffsims.structure_factor.atomic_scattering_parameters import get_element


__all__ = [
"acceleration_voltage_to_relativistic_mass",
"acceleration_voltage_to_velocity",
Expand Down
1 change: 0 additions & 1 deletion diffsims/utils/vector_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import numpy as np


__all__ = [
"get_angle_cartesian",
"get_angle_cartesian_vec",
Expand Down
1 change: 0 additions & 1 deletion examples/creating_a_simulation_library/migration_guide.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from diffsims.generators.diffraction_generator import DiffractionGenerator
from diffsims.generators.library_generator import DiffractionLibraryGenerator


latt = Lattice(4, 4, 4, 90, 90, 90)
atoms = [
Atom(atype="Al", xyz=[0.0, 0.0, 0.0], lattice=latt),
Expand Down
Loading