Skip to content

Commit

Permalink
Merge pull request #12 from ericpre/rename_datasets_to_data
Browse files Browse the repository at this point in the history
Rename `holospy.datasets` to `holospy.data`
  • Loading branch information
ericpre committed Nov 10, 2023
2 parents 113c773 + a391a84 commit f8745f9
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions holospy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from . import datasets, release_info, signals, reconstruct, tools
from . import data, release_info, signals, reconstruct, tools

__all__ = [
"__version__",
"datasets",
"data",
"signals",
"reconstruct",
"tools",
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions holospy/signals/hologram_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def estimate_sideband_position(
Examples
--------
>>> import holospy as holo
>>> s = holo.datasets.Fe_needle_hologram()
>>> s = holo.data.Fe_needle_hologram()
>>> sb_position = s.estimate_sideband_position()
>>> sb_position.data
Expand Down Expand Up @@ -290,7 +290,7 @@ def estimate_sideband_size(
Examples
--------
>>> import holospy as holo
>>> s = holo.datasets.Fe_needle_hologram()
>>> s = holo.data.Fe_needle_hologram()
>>> sb_position = s.estimate_sideband_position()
>>> sb_size = s.estimate_sideband_size(sb_position)
>>> sb_size.data
Expand Down Expand Up @@ -392,7 +392,7 @@ def reconstruct_phase(
Examples
--------
>>> import holospy as holo
>>> s = holo.datasets.Fe_needle_hologram()
>>> s = holo.data.Fe_needle_hologram()
>>> sb_position = s.estimate_sideband_position()
>>> sb_size = s.estimate_sideband_size(sb_position)
>>> wave = s.reconstruct_phase(sb_position=sb_position, sb_size=sb_size)
Expand Down Expand Up @@ -782,7 +782,7 @@ def statistics(
Examples
--------
>>> import holospy as holo
>>> s = holo.datasets.Fe_needle_reference_hologram()
>>> s = holo.data.Fe_needle_reference_hologram()
>>> sb_position = s.estimate_sideband_position(high_cf=True)
>>> s.statistics(sb_position=sb_position)
{'Fringe spacing (nm)': 3.4860442674236256,
Expand Down
2 changes: 1 addition & 1 deletion holospy/tests/signals/test_hologram_image_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
class TestStatistics:
def setup_method(self, method):
# Set the stack
s = holo.datasets.Fe_needle_reference_hologram()
s = holo.data.Fe_needle_reference_hologram()
self.ref_holo = hs.stack([s] * 2)
self.ref_holo = hs.stack([self.ref_holo] * 3)

Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@
package_data={
"": ["LICENSE", "README.rst"],
"holospy": [
"datasets/01_holo_Vbp_130V_0V_bin2_crop.hdf5",
"datasets/00_ref_Vbp_130V_0V_bin2_crop.hdf5",
"data/*.hdf5",
"hyperspy_extension.yaml",
],
},
Expand Down

0 comments on commit f8745f9

Please sign in to comment.