According to the type hints for prepare_pythonjob_inputs it should accept an instance of orm.Computer for the computer parameter, see
|
computer: Union[str, orm.Computer] = "localhost", |
. However, if you try to pass a
orm.Computer, the following exception is raised:
NotExistent: no Computer found with LABEL<some_computer (some_domain), pk: some_pk>: No result was found
I suspect the issue is here
|
computer = load_computer(computer) |
because you cannot seem to pass an instance of
orm.Computer to
load_computer. Perhaps one should add a check that simply uses the passed computer if it's an instance of
orm.Computer. If you want I could open a PR for this.
According to the type hints for
prepare_pythonjob_inputsit should accept an instance oform.Computerfor thecomputerparameter, seeaiida-pythonjob/src/aiida_pythonjob/launch.py
Line 180 in 4a4264d
orm.Computer, the following exception is raised:I suspect the issue is here
aiida-pythonjob/src/aiida_pythonjob/utils.py
Line 118 in 4a4264d
orm.Computertoload_computer. Perhaps one should add a check that simply uses the passed computer if it's an instance oform.Computer. If you want I could open a PR for this.