pren / poltype

POLTYPE: AMOEBA parametrization tool
https://pren.github.io/poltype
Other
4 stars 11 forks source link

Check for empty file in ReadList #69

Closed mquevill closed 3 years ago

mquevill commented 3 years ago

This is mostly cosmetic, and shouldn't affect any actual behavior. This PR addresses the following UserWarning when trying to load an empty file:

PoltypeModules/databaseparser.py:1672: UserWarning: loadtxt: Empty input file: "torsionsmissing.txt"
  ls=np.loadtxt(filename)