nxtomomill.utils.frameappender.to_target_rel_path#

nxtomomill.utils.frameappender.to_target_rel_path(file_path, target_path)[source]#

Cast file_path to a relative path according to target_path. This is used to deduce the path of an h5py.VirtualSource.

Parameters:
  • file_path (str) – file path to convert to a relative path.

  • target_path (str) – reference path used to compute the relative path.

Return type:

str

Returns:

relative path of file_path compared to target_path.