Skip to content

Fix documentation for incrementing VCF positions - #3517

Open
jwgarber wants to merge 1 commit into
tskit-dev:mainfrom
jwgarber:fix-doc
Open

jwgarber wants to merge 1 commit into
tskit-dev:mainfrom
jwgarber:fix-doc

Conversation

@jwgarber

Copy link
Copy Markdown

The suggested documentation for incrementing positions doesn't work, since sometimes the positions will be a list instead of a numpy array (so adding 1 to the list throws an error because + is concatenation). Convert the list to an array first to prevent this.

PR Checklist:

  • Tests that fully cover new/changed functionality.
  • Documentation including tutorial content if appropriate.
  • Changelogs, if there are API changes.

Sometimes the positions will be a list instead of a numpy array,
so adding 1 to the list throws an error (because + is concatenation).
Convert the list to an array first to prevent this.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant