samirelanduk / atomium

Python macromolecular parsing (with .pdb/.cif/.mmtf parsing and production)
https://atomium.bio
MIT License
102 stars 19 forks source link

README error #14

Closed jonathanrd closed 6 years ago

jonathanrd commented 6 years ago

Just spotted a documentation error, in the README you have an example containing:

>>> model.translate(34, -12, 3.5)
>>> model.rotate("x", 45)
>>> model.atom(element="O")

Unfortunately model.rotate("x", 45) returns: ValueError: 45 is not a valid axis

Switching the order to: model.rotate(45, "x") runs as expected though.

Great work on atomium, really simple to integrate within other scripts.. cheers!

samirelanduk commented 6 years ago

Good catch - have fixed in the 0.10 branch.

And cheers! (: