FileStoreBase write_path_template cannot be "." if read_path_template is None
Closed this issue · 0 comments
DiamondJoseph commented
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
ophyd/ophyd/areadetector/filestore_mixins.py
Line 247 in 5c413cc
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