dodal.common.udc_directory_provider.PandASubpathProvider#

class dodal.common.udc_directory_provider.PandASubpathProvider[source]#

Directory provider for the HDFPanda. Points to a panda subdirectory within the directory path provided

Parameters:
  • root_directory (Path | None, default: None)

  • suffix (str, default: '')

Methods

data_session()

update(*, directory[, suffix])

Update the root directory into which panda pcap files are written. This will result in the panda subdirectory being created if it does not already exist. Args: directory: Path instance that identifies the root folder. This folder must exist. The panda will attempt to write into the "panda" subdirectory which will be created if not already present. suffix: Optional str that will be appended to the panda device name along with the file type extension to construct the output filename.

Attributes

resource_dir

async update(*, directory: Path, suffix: str = '', **kwargs)[source]#

Update the root directory into which panda pcap files are written. This will result in the panda subdirectory being created if it does not already exist.

Args:
directory: Path instance that identifies the root folder. This folder must exist. The panda will

attempt to write into the “panda” subdirectory which will be created if not already present.

suffix: Optional str that will be appended to the panda device name along with the file

type extension to construct the output filename

Parameters:
  • directory (Path)

  • suffix (str, default: "")