[docs]defread_signals(filename:str)->list[SignalObj]:"""Read a list of signals from a file. Args: filename: File name. Returns: List of signals. """returnSignalIORegistry.read(filename)
[docs]defread_signal(filename:str)->SignalObj:"""Read a signal from a file. Args: filename: File name. Returns: Signal. """returnread_signals(filename)[0]
defwrite_signal(filename:str,signal:SignalObj)->None:"""Write a signal to a file. Args: filename: File name. signal: Signal. """SignalIORegistry.write(filename,signal)
[docs]defread_images(filename:str)->list[ImageObj]:"""Read a list of images from a file. Args: filename: File name. Returns: List of images. """returnImageIORegistry.read(filename)
[docs]defread_image(filename:str)->ImageObj:"""Read an image from a file. Args: filename: File name. Returns: Image. """returnread_images(filename)[0]
defwrite_image(filename:str,image:ImageObj)->None:"""Write an image to a file. Args: filename: File name. image: Image. """ImageIORegistry.write(filename,image)