JuDFTteam / aiida-fleur

AiiDA plugin of the high-performance density functional theory code FLEUR (www.judft.de) for high-throughput electronic structure calculations.
https://aiida-fleur.readthedocs.io
Other
14 stars 7 forks source link

Rework XML modification with new `masci-tools` functionality #116

Closed janssenhenning closed 3 years ago

janssenhenning commented 3 years ago

Replace XML modifying functions with their new version "agnostic" counterparts in masci-tools. The FleurinpModifier now inherits from the FleurXMLModifier defined in masci-tools. This defines the apply_modifications method and all the XML modification functions, that do not take a aiida datastructure as input. The FleurinpModifier only injects those functions and adds a Deprecation layer for the functions that have a changed name. These are:

All of these should still work in their old usage but raise DeprecationWarnings

Additionally masci-tools provides the following new functionality

TODO:

codecov[bot] commented 3 years ago

Codecov Report

Merging #116 (ab33f55) into develop (52f2b7b) will increase coverage by 0.81%. The diff coverage is 86.23%.

:exclamation: Current head ab33f55 differs from pull request most recent head c2e4f71. Consider uploading reports for the commit c2e4f71 to get more accurate results Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #116      +/-   ##
===========================================
+ Coverage    64.97%   65.79%   +0.81%     
===========================================
  Files           69       70       +1     
  Lines         9691     9826     +135     
===========================================
+ Hits          6297     6465     +168     
+ Misses        3394     3361      -33     
Impacted Files Coverage Δ
aiida_fleur/tools/xml_aiida_modifiers.py 80.00% <80.00%> (ø)
aiida_fleur/data/fleurinpmodifier.py 90.85% <87.61%> (-3.94%) :arrow_down:
aiida_fleur/tools/set_nmmpmat.py 91.20% <0.00%> (-1.60%) :arrow_down:
aiida_fleur/calculation/fleur.py 71.25% <0.00%> (+0.08%) :arrow_up:
aiida_fleur/data/fleurinp.py 85.38% <0.00%> (+1.55%) :arrow_up:
aiida_fleur/tools/xml_util.py 77.38% <0.00%> (+10.31%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7460d47...c2e4f71. Read the comment docs.