vispy.visuals.tests.test_volume module

vispy.visuals.tests.test_volume.test_all_render_methods(method_name)[source]

Test that render methods don’t produce any errors.

vispy.visuals.tests.test_volume.test_changing_cmap()[source]

Test that changing colormaps updates the display.

vispy.visuals.tests.test_volume.test_equal_clims(texture_format)[source]

Test that equal clims produce a min cmap value.

vispy.visuals.tests.test_volume.test_set_data_does_not_change_input()[source]
vispy.visuals.tests.test_volume.test_volume()[source]
vispy.visuals.tests.test_volume.test_volume_bounds()[source]
vispy.visuals.tests.test_volume.test_volume_clims_and_gamma(texture_format, input_dtype, clim_on_init)[source]

Test volume visual with clims and gamma on shader.

Test is parameterized based on texture_format and should produce relatively the same results for each format.

Currently just using np.ones since the angle of view made more complicated samples challenging, but this confirms gamma and clims works in the shader. The VolumeVisual defaults to the “grays” colormap so although we compare data using RGBA arrays, each R/G/B channel should be the same.

vispy.visuals.tests.test_volume.test_volume_draw()[source]