Error while using `rep.distribution.choice`

Getting the following error while using rep.distribution.choice :

2023-11-08 08:41:51  [Error] [omni.graph.core.plugin] /Replicator/SDGPipeline/OgnSampleSequence: Assertion raised in compute - Tried to set a value on AttributeData '__resolved_outputs:samples' of type 'float' with incompatible data (Unable to cast Python instance to C++ type (compile in debug mode for details))
2023-11-08 08:41:51  [Error] [omni.graph.core.plugin]   File "d:\omniverse\pkg\code-2022.3.3\extscache\omni.replicator.core-1.7.7+104.2.wx64.r.cp37\omni\replicator\core\ogn\python\_impl\nodes\OgnSampleSequence.py", line 117, in compute
2023-11-08 08:41:51  [Error] [omni.graph.core.plugin]     db.outputs.samples = [items[state.get_index_ordered()]]
2023-11-08 08:41:51  [Error] [omni.graph.core.plugin]   File "d:\omniverse\pkg\code-2022.3.3\kit\exts\omni.graph\omni\graph\core\_impl\database.py", line 657, in __setattr__
2023-11-08 08:41:51  [Error] [omni.graph.core.plugin]     super().__setattr__(item, new_value)
2023-11-08 08:41:51  [Error] [omni.graph.core.plugin]   File "d:\omniverse\pkg\code-2022.3.3\extscache\omni.replicator.core-1.7.7+104.2.wx64.r.cp37\omni\replicator\core\ogn\OgnSampleSequenceDatabase.py", line 115, in samples
2023-11-08 08:41:51  [Error] [omni.graph.core.plugin]     self.samples.value = value_to_set
2023-11-08 08:41:51  [Error] [omni.graph.core.plugin]   File "d:\omniverse\pkg\code-2022.3.3\kit\exts\omni.graph\omni\graph\core\_impl\utils.py", line 385, in wrapper_non_const
2023-11-08 08:41:51  [Error] [omni.graph.core.plugin]     return func(self, *args, **kwargs)
2023-11-08 08:41:51  [Error] [omni.graph.core.plugin]   File "d:\omniverse\pkg\code-2022.3.3\kit\exts\omni.graph\omni\graph\core\_impl\runtime.py", line 126, in value
2023-11-08 08:41:51  [Error] [omni.graph.core.plugin]     self.helper.set(new_value, on_gpu=self._on_gpu)
2023-11-08 08:41:51  [Error] [omni.graph.core.plugin]   File "d:\omniverse\pkg\code-2022.3.3\kit\exts\omni.graph\omni\graph\core\_impl\attribute_values.py", line 115, in set
2023-11-08 08:41:51  [Error] [omni.graph.core.plugin]     self._data.set(new_value, on_gpu=on_gpu)
2023-11-08 08:41:51  [Error] [omni.graph.core.plugin] 

You can reproduce the error by running following code:

        camera = rep.create.camera(
            position=(2000, 0, 2000),
            look_at=(0, 0, 0),
            focal_length=1500,
            name='camera_BRFhot')
        # Set the renderer to Path Traced
        rep.settings.set_render_pathtraced(samples_per_pixel=16)
        render_product = rep.create.render_product(camera, (500, 500))
        with rep.trigger.on_frame(num_frames=5):
            rep.modify.time(rep.distribution.sequence([1, 2, 3, 4, 5], name='value'))
        # Initialize and attach writer
        writer = rep.WriterRegistry.get("WorkWriter")
        writer.initialize(
            output_dir=Path(__file__).parent.parent/'result'/'BRF'/'view',
            rgb=True,
            distribution_name=True)
        writer.attach([render_product])
        rep.orchestrator.run()

Thank you for catching this @zzz_zhang666! I believe this works with a distribution.choice, but we were able to observe the same issue with distribution.sequence. We’ve addressed the issue for the next upcoming release.