def test_info_html_table(self):
        from jicbioimage.core.image import MicroscopyImage
        microscopy_image = MicroscopyImage('dummy.tif',
            dict(series=0, channel=1, zslice=2, timepoint=3))
        self.assertEqual(
            microscopy_image.__info_html_table__(30).strip().replace(' ', ''),
'''
<table>
    <tr>
        <th>Index</th>
        <th>Series</th>
        <th>Channel</th>
        <th>Z-slice</th>
        <th>Time point</th>
    </tr>
    <tr>
        <td>30</td>
        <td>0</td>
        <td>1</td>
        <td>2</td>
        <td>3</td>
    </tr>
</table>
'''.strip().replace(' ', '')
        ) 
Exemplo n.º 2
0
    def test_info_html_table(self):
        from jicbioimage.core.image import MicroscopyImage
        microscopy_image = MicroscopyImage(
            'dummy.tif', dict(series=0, channel=1, zslice=2, timepoint=3))
        self.assertEqual(
            microscopy_image.__info_html_table__(30).strip().replace(' ', ''),
            '''
<table>
    <tr>
        <th>Index</th>
        <th>Series</th>
        <th>Channel</th>
        <th>Z-slice</th>
        <th>Time point</th>
    </tr>
    <tr>
        <td>30</td>
        <td>0</td>
        <td>1</td>
        <td>2</td>
        <td>3</td>
    </tr>
</table>
'''.strip().replace(' ', ''))