eradiate.test_tools.types.check_scene_element#

eradiate.test_tools.types.check_scene_element(instance, mi_cls=None, ctx=None)[source]#

Perform kernel dictionary checks on a scene element.

This function checks if the scene element can produce a valid kernel dictionary template, as well as an appropriate parameter table.

The returned Mitsuba object and parameter table can be used to perform additional checks.

Parameters:
Returns:

  • mi_obj (mitsuba.Object) – Mitsuba object the scene element was expanded to. See notes for details.

  • mi_params (dict) – Parameter table of the Mitsuba objects generated by the tested scene element.

Notes