mcocdawc / chemcoord

A python module for manipulating cartesian and internal coordinates.
GNU Lesser General Public License v3.0
72 stars 19 forks source link

Allow arbitrary starting index when reading xyz file #10

Closed sgill2 closed 7 years ago

sgill2 commented 7 years ago

Currently the Cartesian.read_xyz() function has a pythonic_index boolean argument to specify if indexing starts at 0 or 1. A more general form of this pythonic_index argument could allow any integer to be used as the starting index.

This could be handy in the case where you're looking at a fragment of a larger system; it would allow the indices between both to remain consistent.