File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
aiida_common_workflows/cli Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,13 +78,13 @@ def get_code_from_list_or_database(codes, entry_point: str):
78
78
:param entry_point: calculation job entry point name.
79
79
:return: a ``Code`` instance configured for the given entry point or ``None``.
80
80
"""
81
- from aiida .orm import AbstractCode , QueryBuilder
81
+ from aiida .orm import InstalledCode , QueryBuilder
82
82
83
83
for entry in codes :
84
84
if entry .default_calc_job_plugin == entry_point :
85
85
return entry
86
86
87
- result = QueryBuilder ().append (AbstractCode , filters = {'attributes.default_calc_job_plugin ' : entry_point }).first ()
87
+ result = QueryBuilder ().append (InstalledCode , filters = {'attributes.input_plugin ' : entry_point }).first ()
88
88
89
89
if result is not None :
90
90
return result [0 ]
You can’t perform that action at this time.
0 commit comments