Skip to content

Commit

Permalink
Start docstring for extension
Browse files Browse the repository at this point in the history
  • Loading branch information
UnHumbleBen committed May 4, 2022
1 parent 04b25df commit 6a2c101
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scadnano/scadnano.py
Original file line number Diff line number Diff line change
Expand Up @@ -2260,7 +2260,15 @@ def loopout(self, helix: int, length: int, offset: Optional[int] = None, move: O

def extension(self, length: int) -> 'StrandBuilder[StrandLabel, DomainLabel]':
"""
TODO: write doc
Add extension.
If called before any domains have been created, then the extension will only be added
when a domain has been created.
If called after domains have been created, then the extension will be added to the end
of the strand.
Extensions can either be at the start or end of a strand and not in the middle.
"""
if self._strand is None:
# 5' extension
Expand Down

0 comments on commit 6a2c101

Please sign in to comment.