[doc] add custom metadata example
Add metadata to a detector if the detector is used in the scan. @matias.guijarro I think this is the best way to check whether a detector is used in a scan (tested in demo session). Feel free to modify if there is a better way.
diffcam_used = any(n.device is diffcam for n in scan.acq_chain.nodes_list)
Edited by Wout De Nolf