Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 3, 2024
1 parent 168f1a8 commit 49b3468
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions aiida_nanotech_empa/plugins/cube_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,22 @@ class CubeHandlerCalculation(engine.CalcJob):
@classmethod
def define(cls, spec):
super().define(spec)
spec.input("parameters", valid_type=orm.Dict, help="CubeHandler input parameters.")
spec.input("parent_calc_folder", valid_type=orm.RemoteData, help="Parent folder containing original cube files.")

spec.input(
"parameters", valid_type=orm.Dict, help="CubeHandler input parameters."
)
spec.input(
"parent_calc_folder",
valid_type=orm.RemoteData,
help="Parent folder containing original cube files.",
)

def prepare_for_submission(self, folder):
"""Create the input files from the input nodes passed to this instance of the `CalcJob`."""

# Create code info.
codeinfo = orm.CodeInfo()
codeinfo.code_uuid = self.inputs.code.uuid
param_dict = self.inputs.parameters.get_dict()
self.inputs.parameters.get_dict()
cmdline = []
codeinfo.cmdline_params = cmdline

Expand All @@ -43,5 +48,3 @@ def prepare_for_submission(self, folder):
calcinfo.remote_copy_list.append(copy_info)

return calcinfo


0 comments on commit 49b3468

Please sign in to comment.