Skip to content

Commit

Permalink
Improve the _symlink_in_place apidoc example.
Browse files Browse the repository at this point in the history
  • Loading branch information
FredLoney committed Jun 22, 2017
1 parent c7b8bdd commit 2a578a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qipipe/pipeline/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ def _create_profile(technique, configuration, sections, reference, dest):
prf_cfg['registration'].update(reg_cfg)
else:
prf_cfg['registration'] = reg_cfg

return metadata.create_profile(prf_cfg, sections, dest=dest)


Expand All @@ -610,7 +610,7 @@ def _symlink_in_place(in_file, link_name):
within the same parent directory, e.g. for current directory
``/a/b/``::
>> _symlink_in_place('/a/b/c/d/src.txt', 'tgt.txt')
>> _symlink_in_place('c/d/src.txt', 'tgt.txt')
"/a/b/c/d/tgt.txt"
where the link source is ``src.txt``.
Expand All @@ -628,6 +628,7 @@ def _symlink_in_place(in_file, link_name):

return dest_file


def _base_name(in_file):
"""
:param in_file: the input file path
Expand Down

0 comments on commit 2a578a5

Please sign in to comment.