SSCHAcode / python-sscha

The python implementation of the Stochastic Self-Consistent Harmonic Approximation (SSCHA).
GNU General Public License v3.0
55 stars 21 forks source link

Raise a warning/Exception if the ensemble is loaded with empty files #22

Closed mesonepigreco closed 4 years ago

mesonepigreco commented 4 years ago

Raise a warning or an exception if, while loading the ensemble, some files are filled with zero. It is most likely due to a mistake in the example, so warn the user and stop the code. Maybe it should be possible to force the loading in this condition, but not by default.

mesonepigreco commented 4 years ago

The EasyFixMode already solves this issue, by avoiding of saving empty files. So this issue is now related to the pull request #29