Skip to content

Commit b9d739c

Browse files
committed
Bugfix has_atomistic.
1 parent 21897d9 commit b9d739c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/aiida/orm/nodes/data/array/kpoints.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def set_cell_from_structure(self, structuredata):
230230
'An instance of StructureData or aiida-atomistic StructureData should be passed to '
231231
'the KpointsData, found instead {}'.format(structuredata.__class__)
232232
)
233-
if has_atomistic:
233+
if has_atomistic():
234234
from aiida_atomistic import StructureData as AtomisticStructureData
235235

236236
if not isinstance(structuredata, AtomisticStructureData):

Diff for: src/aiida/orm/nodes/data/structure.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,7 @@ def to_atomistic(self):
18891889
"""
18901890
Returns the atomistic StructureData version of the orm.StructureData one.
18911891
"""
1892-
if not has_atomistic:
1892+
if not has_atomistic():
18931893
raise ImportError(
18941894
'aiida-atomistic plugin is not installed, \
18951895
please install it to have full support for atomistic structures'

0 commit comments

Comments
 (0)