with_name

caqtus.shot_compilation.timed_instructions.with_name(
instruction: TimedInstruction,
name: str,
) TimedInstruction[void]

Change the dtype of the instruction into a structured array with a single field with the given name and the same dtype as the original instruction.