Skip to content

Commit

Permalink
Merge pull request #12 from ericpre/fix_hyperspy_api_change
Browse files Browse the repository at this point in the history
Fix tests after api changes in hyperspy
  • Loading branch information
ericpre authored Nov 9, 2023
2 parents 7be640b + 77f9a38 commit 870b571
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 870b571

Please sign in to comment.