qmlcode / qml

QML: Quantum Machine Learning
MIT License
197 stars 84 forks source link

Add ability to create compounds from file-like objects #103

Closed WardLT closed 5 years ago

WardLT commented 5 years ago

This is a simple change that allows Compound objects to be created without needing to have a file on disk. It follows a very similar approach to ase: The function now changes whether user passes a string and, if not, assumes it to be a file object.

I also added a dependency to six for making Python 2 compatibility easier, and a unit test to cover this new functionality.