Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/aiida_qe_xspec/calculations/xspectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class XspectraCalculation(NamelistsCalculation):
_internal_retrieve_list = [_Spectrum_FILENAME]
_retrieve_singlefile_list = []
_retrieve_temporary_list = []
_default_parser = 'quantumespresso.xspectra'
_default_parser = 'xspec.xspectra'

@classmethod
def define(cls, spec):
Expand Down Expand Up @@ -131,7 +131,7 @@ def prepare_for_submission(self, folder):
parent_folder = self.inputs.parent_folder
parent_calc = parent_folder.creator

if parent_calc.process_type == 'aiida.calculations:quantumespresso.xspectra':
if parent_calc.process_type == 'aiida.calculations:xspec.xspectra':
calcinfo.remote_copy_list.append((
parent_folder.computer.uuid, os.path.join(parent_folder.get_remote_path(),
self._XSPECTRA_SAVE_FILE), '.'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def get_supercell(structure, supercell_min_parameter, is_hubbard_structure, **kw
blank_supercell = StructureData(ase=ase_supercell)
new_supercell = StructureData()
new_supercell.set_cell(blank_supercell.cell)
num_extensions = np.product(multiples)
num_extensions = np.prod(multiples)
types_order = kwargs['types_order']
type_mapping_dict = kwargs['type_mapping_dict']
supercell_types_order = []
Expand Down
5 changes: 4 additions & 1 deletion src/aiida_qe_xspec/workflows/xps.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ def define(cls, spec):
spec.output(
'binding_energies',
valid_type=orm.Dict,
required=False,
help='All the binding energy values for each element calculated by the WorkChain.'
)
spec.output_namespace(
Expand All @@ -366,6 +367,7 @@ def define(cls, spec):
spec.output_namespace(
'binding_energy_spectra',
valid_type=orm.XyData,
required=False,
dynamic=True,
help='The fully-resolved spectra for each element based on binding energy.'
)
Expand Down Expand Up @@ -543,7 +545,8 @@ def get_builder_from_protocol( # noqa
kpoints_mesh = DataFactory('core.array.kpoints')()
kpoints_mesh.set_kpoints_mesh([1, 1, 1])
builder.ch_scf.kpoints = kpoints_mesh
builder.relax.base.pw.settings = orm.Dict(dict={'gamma_only': True})
builder.relax.base_init_relax.pw.settings = orm.Dict(dict={'gamma_only': True})
builder.relax.base_relax.pw.settings = orm.Dict(dict={'gamma_only': True})
# pylint: enable=no-member
return builder

Expand Down
2 changes: 1 addition & 1 deletion src/aiida_qe_xspec/workflows/xspectra/crystal.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from aiida.plugins import CalculationFactory, DataFactory, WorkflowFactory
from aiida_pseudo.data.pseudo import UpfData as aiida_pseudo_upf

from aiida_quantumespresso.calculations.functions.xspectra.get_spectra_by_element import get_spectra_by_element
from aiida_qe_xspec.calculations.functions.xspectra.get_spectra_by_element import get_spectra_by_element
from aiida_quantumespresso.utils.hubbard import HubbardStructureData
from aiida_quantumespresso.utils.mapping import prepare_process_inputs
from aiida_quantumespresso.workflows.protocols.utils import ProtocolMixin, recursive_merge
Expand Down