3MAH / microgen

Microstructure generation
https://3mah.github.io
GNU General Public License v3.0
67 stars 8 forks source link

Add MmgError exception raise when a mmg command fails #37

Closed ricardo0115 closed 7 months ago

ricardo0115 commented 7 months ago

Before this pull request exceptions raised by Mmg calls were completely silent, the idea is to raise an exception of type MmgErrorthat recalls the original causing exception which can be subprocess.CalledProcessError or FileNotFoundError

A minimal test case when no arguments are passed to mmg call is added in test_external.py

kmarchais commented 7 months ago

Thanks!