src-d / modelforge

Python library to share machine learning models easily and reliably.
Apache License 2.0
18 stars 13 forks source link

Manage no index or empty index case #37

Closed r0mainK closed 6 years ago

r0mainK commented 6 years ago

Extracted from https://github.com/src-d/modelforge/pull/36 Adds changes in the case where the index is either empty (meaning really empty, if it contains {} its fine) or non-existant in the repo. This means that there must be an index file in the repo at all time, even before init. If you want me to change this we will need to add some form of boolean so that during the initialization of the index we catche this error instead of aborting