Skip to content

Feature: Add support for average.x code of QE in AverageCalculation#1226

Open
ValkScripter wants to merge 2 commits intoaiidateam:mainfrom
ValkScripter:wip/feature/average
Open

Feature: Add support for average.x code of QE in AverageCalculation#1226
ValkScripter wants to merge 2 commits intoaiidateam:mainfrom
ValkScripter:wip/feature/average

Conversation

@ValkScripter
Copy link
Contributor

This pull request adds support for the Quantum ESPRESSO average.x post-processing code to the AiiDA plugin
It allows to run planar p(z) and macroscopic m(z) average calculations within AiiDA.
I introduced a new calculation and a parser, along with the necessary entry points for integration.

New Calculation and Parser Implementation:

  • Added AverageCalculation class in src/aiida_quantumespresso/calculations/average.py to define inputs, outputs, and error handling for running average.x calculations.
  • Added AverageParser class in src/aiida_quantumespresso/parsers/average.py to parse output files from average.x, convert units, and produce AiiDA data nodes.

- Implement AverageCalculation class for Quantum ESPRESSO's average.x
  - Defines inputs and outputs for the calculation
  - Handles input file preparation and output retrieval
- Create AverageParser class to parse output from average.x
  - Produces output_parameters and output_data nodes
  - Parses data file formatted with z, p(z), and m(z) values
- Update pyproject.toml to include new entry points for average.x
- Update remote_copy_list to include parent folder's computer UUID
- Ensure correct path joining for input data file
@bastonero
Copy link
Collaborator

Many thanks @ValkScripter for your contributions! Please, with new additional features you should also add tests. You should add them under the tests folder. You can copy/paste some existing test and adapt it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants