bluesky/ophyd

FileStoreBase write_path_template cannot be "." if read_path_template is None

Closed this issue · 0 comments

Resolving read_path_template uses self.write_path_template, which is the already resolved self._write_path_template

"." throws an exception while formatting the read_path_template, despite already having been checked for being a valid relative path and allowed by write_path_template

ret = PurePath(self.write_path_template)

Potential fix:

@property
    def read_path_template(self):
        "Returns write_path_template if read_path_template is not set"
        rootp = self.reg_root

        if self._read_path_template is None:
            return self.write_path_template