Skip to content

Commit

Permalink
Test class documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kmlefran committed Dec 8, 2023
1 parent d94f740 commit 0510bf7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
2 changes: 1 addition & 1 deletion aiida_aimall/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
A plugin to interface AIMAll with AiiDA
"""

__version__ = "0.3.7"
__version__ = "0.3.8"
30 changes: 22 additions & 8 deletions aiida_aimall/calculations.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"""
Calculations provided by aiida_aimall.
"""Calculations provided by aiida_aimall.
Upon pip install, AimqbCalculation is accessible in AiiDA.calculations plugins
Using the 'aimall' entry point
Using the 'aimall' entry point, and GaussianWFXCalculation is accessible with the 'gaussianwfx'
entry point
"""
from aiida.common import CalcInfo, CodeInfo, datastructures
from aiida.engine import CalcJob, ExitCode
Expand All @@ -16,11 +17,24 @@
class AimqbCalculation(CalcJob):
"""AiiDA calculation plugin wrapping the aimqb executable.
parameters = AimqbParameters(parameter_dict={"naat": 2, "nproc": 2, "atlaprhocps": True})
file=SinglefileData(io.BytesIO(file_string.encode()))
File can be wfn, wfx or fchk
Attributes:
parameters (AimqbParameters): command line parameters for the AimqbCalculation
file (SinglefileData): the wfx, wfn, or fchk file to be run
Example:
::
code = orm.load_code('aimall@localhost')
AimqbParameters = DataFactory("aimall")
aim_params = AimqbParameters(parameter_dict={"naat": 2, "nproc": 2, "atlaprhocps": True})
file=SinglefileData(io.BytesIO(file_string.encode()))
AimqbCalculation = CalculationFactory("aimall")
builder = AimqbCalculation.get_builder()
builder.parameters = aim_params
builder.file = file
builder.code = code
builder.metadata.options.resources = {"num_machines": 1, "num_mpiprocs_per_machine": 2}
builder.submit()
"""

Expand Down
2 changes: 1 addition & 1 deletion aiida_aimall/workchains.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def generate_cml_fragments(params, cml_Dict, n_procs):
# dict_list = []
fd = {}
out_frame = pd.DataFrame()
with mp.Pool(n_procs.value) as pool: # pylint:disable=not-callable
with mp.Pool(n_procs.value) as pool: # pylint:disable=not-callable no-member
result_list = list(
pool.map(
partial(parallel_frags, bb_patt=bb_patt, input_type=input_type),
Expand Down

0 comments on commit 0510bf7

Please sign in to comment.