Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests after api changes in hyperspy #12

Merged
merged 1 commit into from
Nov 9, 2023
Merged
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 exspy/test/models/test_edsmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def setup_method(self, method):
s.axes_manager.create_axes([{"size": mix.shape[0], "navigate": True}] * 2 + [a])
s.add_elements(s2.metadata.Sample.elements)

for d, m in zip(s._iterate_signal(), mix.flatten()):
for d, m in zip(s._iterate_signal(iterpath="flyback"), mix.flatten()):
d[:] = d * m + (1 - m) * s2.data
self.mix = mix
self.s = s
Expand Down
2 changes: 1 addition & 1 deletion exspy/test/models/test_linear_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_fit_fixed_twinned_components_and_std(self):

class TestWarningSlowMultifit:
def setup_method(self, method):
s = hs.datasets.two_gaussians().inav[0]
s = hs.data.two_gaussians().inav[0]
s.set_signal_type("EELS")
m = s.create_model(auto_background=False, auto_add_edges=False)
g1 = Gaussian(centre=40)
Expand Down
Loading