Skip to content

Commit 42f3ec0

Browse files
Fixes input/output keys
1 parent 35eb73c commit 42f3ec0

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

wfcommons/common/task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ def specification_as_dict(self) -> Dict:
129129
'id': self.task_id,
130130
'parents': [],
131131
'children': [],
132-
'input_files': [f.file_id for f in self.input_files],
133-
'output_files': [f.file_id for f in self.output_files]
132+
'inputFiles': [f.file_id for f in self.input_files],
133+
'outputFiles': [f.file_id for f in self.output_files]
134134
}
135135
return task_obj
136136

wfcommons/wfchef/chef.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,14 @@ def uninstall_recipe(module_name:str,
199199
Uninstalls a recipe installed in the system.
200200
"""
201201

202-
dst = pathlib.Path("wcommons.wfchef.recipes", f"{savedir.stem}").resolve()
202+
dst = pathlib.Path(this_dir.joinpath(f"recipes/{savedir.stem}")).resolve()
203203
try:
204204
subprocess.run(["pip", "uninstall", "-y", dst])
205205
traceback.print_exc()
206206

207207
except Exception as e:
208208
traceback.print_exc()
209209
print(f"Could not uninstall recipe for {module_name}")
210-
# print(f"Could not find recipe with module name {module_name} installed")
211210

212211

213212
def create_recipe(path_to_instances: Union[str, pathlib.Path],

0 commit comments

Comments
 (0)