aiidateam / aiida-wannier90

AiiDA plugin for the Wannier90 code
https://aiida-wannier90.readthedocs.io
Other
9 stars 15 forks source link

Use error codes in the parser rather than just outputting human-readable strings #90

Open giovannipizzi opened 4 years ago

giovannipizzi commented 4 years ago

At the moment, warnings that are detected are simply added as human-readable strings into a 'warnings' list in the parsed output.

Task:

greschd commented 4 years ago

@giovannipizzi, is the intent to change this before the 2.0 release, or after?

giovannipizzi commented 4 years ago

I would has said after, but since 2.0 is out, this is now obvious ;-)

I think we can drop py2 support and move on, and do additional improvements for the upcoming release (we needed to have something working with AiiDA 1.0 and both python versions so people in AiiDA 1.0 can use it).

greschd commented 4 years ago

When adding more exit codes, I think it makes sense to follow a convention similar (or equal) to https://github.com/aiidateam/aiida-quantumespresso/issues/296#issuecomment-499590548