Skip to content

Commit

Permalink
Merge pull request #612 from hakonanes/remove-deprecated-functionality
Browse files Browse the repository at this point in the history
Remove deprecated generators and projections modules
  • Loading branch information
hakonanes committed Feb 11, 2023
2 parents 0f7d37a + f1b2317 commit 11b55d7
Show file tree
Hide file tree
Showing 22 changed files with 83 additions and 1,812 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -27,6 +27,8 @@ Deprecated

Removed
-------
- Removed ``generators`` and ``projections`` modules which were deprecated in version
0.8. (`#612 <https://github.com/pyxem/kikuchipy/pull/612>`_)

Fixed
-----
Expand Down
2 changes: 0 additions & 2 deletions doc/reference/index.rst
Expand Up @@ -49,11 +49,9 @@ this:
detectors
draw
filters
generators
imaging
indexing
io
pattern
projections
signals
simulations
2 changes: 0 additions & 2 deletions kikuchipy/__init__.py
Expand Up @@ -86,13 +86,11 @@ def set_log_level(level: Union[int, str]): # pragma: no cover
"detectors",
"draw",
"filters",
"generators",
"imaging",
"indexing",
"io",
"load",
"pattern",
"projections",
"release",
"set_log_level",
"signals",
Expand Down
40 changes: 0 additions & 40 deletions kikuchipy/_util/tests/test_import.py
Expand Up @@ -79,16 +79,6 @@ def test_import_filters(self):
):
_ = kikuchipy.filters.foo

def test_import_generators(self):
import kikuchipy.generators

for obj_name in kikuchipy.generators.__all__:
getattr(kikuchipy.generators, obj_name)
with pytest.raises(
AttributeError, match="module 'kikuchipy.generators' has no attribute 'foo'"
):
_ = kikuchipy.generators.foo

def test_import_imaging(self):
import kikuchipy.imaging

Expand Down Expand Up @@ -144,17 +134,6 @@ def test_import_pattern(self):
):
_ = kikuchipy.pattern.foo

def test_import_projections(self):
import kikuchipy.projections

for obj_name in kikuchipy.projections.__all__:
getattr(kikuchipy.projections, obj_name)
with pytest.raises(
AttributeError,
match="module 'kikuchipy.projections' has no attribute 'foo'",
):
_ = kikuchipy.projections.foo

def test_import_signals(self):
import kikuchipy.signals

Expand Down Expand Up @@ -198,13 +177,11 @@ def test_dir(self):
"detectors",
"draw",
"filters",
"generators",
"imaging",
"indexing",
"io",
"load",
"pattern",
"projections",
"release",
"set_log_level",
"signals",
Expand Down Expand Up @@ -252,13 +229,6 @@ def test_dir_filters(self):
"modified_hann",
]

def test_dir_generators(self):
import kikuchipy.generators

assert dir(kikuchipy.generators) == [
"VirtualBSEGenerator",
]

def test_dir_imaging(self):
import kikuchipy.imaging

Expand Down Expand Up @@ -322,16 +292,6 @@ def test_dir_pattern(self):
"rescale_intensity",
]

def test_dir_projections(self):
import kikuchipy.projections

assert dir(kikuchipy.projections) == [
"GnomonicProjection",
"HesseNormalForm",
"LambertProjection",
"SphericalProjection",
]

def test_dir_signals(self):
import kikuchipy.signals

Expand Down
44 changes: 0 additions & 44 deletions kikuchipy/generators/__init__.py

This file was deleted.

16 changes: 0 additions & 16 deletions kikuchipy/generators/tests/__init__.py

This file was deleted.

0 comments on commit 11b55d7

Please sign in to comment.