0104f8033eeda694d026adb425bc57d6fa0ddcb2,cellprofiler/gui/tests/test_cpfigure.py,TestCPFigure,test_01_04_imshow_normalized_rgb,#TestCPFigure#,63
Before Change
ax = my_frame.subplot_imshow(0, 0, image, normalize=True)
normed = ((image - np.min(image)) / np.max(image))
assert ((ax.get_array() - normed) < 0.000001).all(), "RGB subplot image was not normalized."
def test_01_05_imshow_log_normalized(self):
"""Make sure the image drawn by imshow is log normalized."""
image = np.zeros((100, 100))
After Change
ax = my_frame.subplot_imshow(0, 0, image, normalize=True)
normed = ((image - np.min(image)) / np.max(image))
shown_im = ax.get_array().astype(float) / 255.0
np.testing.assert_almost_equal(normed, shown_im, decimal=2)
def test_01_05_imshow_log_normalized(self):
"""Make sure the image drawn by imshow is log normalized."""
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: CellProfiler/CellProfiler
Commit Name: 0104f8033eeda694d026adb425bc57d6fa0ddcb2
Time: 2010-04-09
Author: thouis@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/gui/tests/test_cpfigure.py
Class Name: TestCPFigure
Method Name: test_01_04_imshow_normalized_rgb
Project Name: CellProfiler/CellProfiler
Commit Name: 0104f8033eeda694d026adb425bc57d6fa0ddcb2
Time: 2010-04-09
Author: thouis@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/gui/tests/test_cpfigure.py
Class Name: TestCPFigure
Method Name: test_01_06_imshow_log_normalized_rgb
Project Name: CellProfiler/CellProfiler
Commit Name: 0104f8033eeda694d026adb425bc57d6fa0ddcb2
Time: 2010-04-09
Author: thouis@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/gui/tests/test_cpfigure.py
Class Name: TestCPFigure
Method Name: test_01_02_imshow_raw_rgb