diff --git a/src/aiida/orm/nodes/data/array/kpoints.py b/src/aiida/orm/nodes/data/array/kpoints.py index 86525fde4..b4dadf2a8 100644 --- a/src/aiida/orm/nodes/data/array/kpoints.py +++ b/src/aiida/orm/nodes/data/array/kpoints.py @@ -230,7 +230,7 @@ def set_cell_from_structure(self, structuredata): 'An instance of StructureData or aiida-atomistic StructureData should be passed to ' 'the KpointsData, found instead {}'.format(structuredata.__class__) ) - if has_atomistic: + if has_atomistic(): from aiida_atomistic import StructureData as AtomisticStructureData if not isinstance(structuredata, AtomisticStructureData): diff --git a/src/aiida/orm/nodes/data/structure.py b/src/aiida/orm/nodes/data/structure.py index f06d0c22d..875736f4c 100644 --- a/src/aiida/orm/nodes/data/structure.py +++ b/src/aiida/orm/nodes/data/structure.py @@ -1889,7 +1889,7 @@ def to_atomistic(self): """ Returns the atomistic StructureData version of the orm.StructureData one. """ - if not has_atomistic: + if not has_atomistic(): raise ImportError( 'aiida-atomistic plugin is not installed, \ please install it to have full support for atomistic structures'