44ec2f501ab642fe3e1861e4d3987cbb305b5677,hyperspy/tests/signal/test_map_method.py,TestImage,test_axes_argument,#TestImage#,53
Before Change
def test_axes_argument(self):
im = self.im
im.map(rotate, angle=45, reshape=False, show_progressbar=None)
nt.assert_true(np.allclose(im.data, np.array(
[[[0., 2.23223305, 0.],
[0.46446609, 4., 7.53553391],
[0., 5.76776695, 0.]],
[[0., 11.23223305, 0.],
[9.46446609, 13., 16.53553391],
[0., 14.76776695, 0.]]])))
class TestSignal1D:
After Change
def test_axes_argument(self):
im = self.im
imt = im.deepcopy()
for s, t in zip([im, imt], [False, True]):
s.map(rotate, angle=45, reshape=False, show_progressbar=None,
threaded=t)
np.testing.assert_allclose(s.data, np.array(
[[[0., 2.23223305, 0.],
[0.46446609, 4., 7.53553391],
[0., 5.76776695, 0.]],
[[0., 11.23223305, 0.],
[9.46446609, 13., 16.53553391],
[0., 14.76776695, 0.]]]))
class TestSignal1D:
def setup(self):
self.s = hs.signals.Signal1D(np.arange(0., 6).reshape((2, 3)))
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 9
Instances
Project Name: hyperspy/hyperspy
Commit Name: 44ec2f501ab642fe3e1861e4d3987cbb305b5677
Time: 2016-09-16
Author: t.ostasevicius@gmail.com
File Name: hyperspy/tests/signal/test_map_method.py
Class Name: TestImage
Method Name: test_axes_argument
Project Name: hyperspy/hyperspy
Commit Name: 44ec2f501ab642fe3e1861e4d3987cbb305b5677
Time: 2016-09-16
Author: t.ostasevicius@gmail.com
File Name: hyperspy/tests/signal/test_map_method.py
Class Name: TestSignal0D
Method Name: test_nav_dim_1
Project Name: hyperspy/hyperspy
Commit Name: 44ec2f501ab642fe3e1861e4d3987cbb305b5677
Time: 2016-09-16
Author: t.ostasevicius@gmail.com
File Name: hyperspy/tests/signal/test_map_method.py
Class Name: TestImage
Method Name: test_constant_sigma_navdim0
Project Name: hyperspy/hyperspy
Commit Name: 44ec2f501ab642fe3e1861e4d3987cbb305b5677
Time: 2016-09-16
Author: t.ostasevicius@gmail.com
File Name: hyperspy/tests/signal/test_map_method.py
Class Name: TestImage
Method Name: test_variable_sigma
Project Name: hyperspy/hyperspy
Commit Name: 44ec2f501ab642fe3e1861e4d3987cbb305b5677
Time: 2016-09-16
Author: t.ostasevicius@gmail.com
File Name: hyperspy/tests/signal/test_map_method.py
Class Name: TestImage
Method Name: test_constant_sigma