Skip to content

Commit 65d74d5

Browse files
committed
enable zip output
1 parent 84da138 commit 65d74d5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nf_core/pipelines/rocrate.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,19 +122,20 @@ def create_rocrate(self, json_path: Union[None, Path] = None, zip_path: Union[No
122122

123123
log.info(f"Saving metadata file to '{json_path}'")
124124
self.crate.metadata.write(json_path)
125-
return True
126125

127126
# Save the whole crate zip file
128127
if zip_path is not None:
129128
if zip_path.name != "ro-crate.crate.zip":
130129
zip_path = zip_path / "ro-crate.crate.zip"
131130
log.info(f"Saving zip file '{zip_path}")
132131
self.crate.write_zip(zip_path)
133-
return True
132+
134133
if json_path is None and zip_path is None:
135134
log.error("Please provide a path to save the ro-crate file or the zip file.")
136135
return False
137136

137+
return True
138+
138139
def make_workflow_rocrate(self) -> None:
139140
"""
140141
Create an RO Crate for a pipeline

0 commit comments

Comments
 (0)