-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adopt RosettaSciIO's plugin specification architecture
Signed-off-by: Håkon Wiik Ånes <[email protected]>
- Loading branch information
Showing
41 changed files
with
656 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright 2019-2023 The kikuchipy developers | ||
# | ||
# This file is part of kikuchipy. | ||
# | ||
# kikuchipy is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# kikuchipy is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with kikuchipy. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
"""Reader of EBSD data from a Bruker Nano h5ebsd file.""" | ||
|
||
from kikuchipy.io.plugins.bruker_h5ebsd._api import file_reader | ||
|
||
|
||
__all__ = ["file_reader"] | ||
|
||
|
||
def __dir__(): | ||
return sorted(__all__) | ||
|
||
|
||
def __getattr__(name): | ||
if name in __all__: | ||
import importlib | ||
|
||
return importlib.import_module("." + name, __name__) | ||
raise AttributeError(f"module {__name__!r} has no attribute {name!r}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: bruker_h5ebsd | ||
description: > | ||
Read support for electron backscatter diffraction patterns stored in | ||
an HDF5 file formatted in Bruker Nano's h5ebsd format, similar to the | ||
format described in Jackson et al.: h5ebsd: an archival data format | ||
for electron back-scatter diffraction data sets. Integrating Materials | ||
and Manufacturing Innovation 2014 3:4, | ||
doi: https://dx.doi.org/10.1186/2193-9772-3-4. | ||
file_extensions: ['h5', 'hdf5', 'h5ebsd'] | ||
default_extension: 0 | ||
writes: False | ||
manufacturer: bruker nano | ||
footprints: ['manufacturer', 'version'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright 2019-2023 The kikuchipy developers | ||
# | ||
# This file is part of kikuchipy. | ||
# | ||
# kikuchipy is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# kikuchipy is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with kikuchipy. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
"""Reader of EBSD patterns from a dictionary of images.""" | ||
|
||
from kikuchipy.io.plugins.ebsd_directory._api import file_reader | ||
|
||
|
||
__all__ = ["file_reader"] | ||
|
||
|
||
def __dir__(): | ||
return sorted(__all__) | ||
|
||
|
||
def __getattr__(name): | ||
if name in __all__: | ||
import importlib | ||
|
||
return importlib.import_module("." + name, __name__) | ||
raise AttributeError(f"module {__name__!r} has no attribute {name!r}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: ebsd_directory | ||
description: Read support for patterns in image files in a directory | ||
file_extensions: ['tif', 'tiff', 'bmp', 'png'] | ||
default_extension: 0 | ||
writes: False | ||
manufacturer: None | ||
footprints: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Copyright 2019-2023 The kikuchipy developers | ||
# | ||
# This file is part of kikuchipy. | ||
# | ||
# kikuchipy is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# kikuchipy is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with kikuchipy. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
"""Reader of EBSD data from EDAX TSL UP1/2 files. | ||
The reader is adapted from the EDAX UP1/2 reader in PyEBSDIndex. | ||
""" | ||
|
||
from kikuchipy.io.plugins.edax_binary._api import file_reader | ||
|
||
|
||
__all__ = ["file_reader"] | ||
|
||
|
||
def __dir__(): | ||
return sorted(__all__) | ||
|
||
|
||
def __getattr__(name): | ||
if name in __all__: | ||
import importlib | ||
|
||
return importlib.import_module("." + name, __name__) | ||
raise AttributeError(f"module {__name__!r} has no attribute {name!r}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: edax_binary | ||
description: > | ||
Read support for electron backscatter diffraction patterns stored in a | ||
binary EDAX TSL's UP1/UP2 file extension '.up1' or '.up2'. The reader | ||
is adapted from the EDAX UP1/2 reader in PyEBSDIndex. | ||
file_extensions: ['up1', 'up2'] | ||
default_extension: 0 | ||
writes: False | ||
manufacturer: edax | ||
footprints: [] |
Oops, something went wrong.