Skip to content

Commit

Permalink
Merge pull request #443 from pepkit/dev_portable_flag
Browse files Browse the repository at this point in the history
add portable flag to looper report
  • Loading branch information
donaldcampbelljr authored Jan 22, 2024
2 parents 00fb990 + ae1cefa commit 1c9d5ea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions looper/cli_looper.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,12 @@ def add_subparser(cmd):
version="{}".format(" ".join(subparsers.choices.keys())),
)

report_subparser.add_argument(
"--portable",
help="Makes html report portable.",
action="store_true",
)

result.append(parser)
return result

Expand Down
10 changes: 8 additions & 2 deletions looper/looper.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,12 +547,16 @@ def __call__(self, args):
p = self.prj
project_level = args.project

portable = args.portable

if project_level:
psms = self.prj.get_pipestat_managers(project_level=True)
print(psms)
for name, psm in psms.items():
# Summarize will generate the static HTML Report Function
report_directory = psm.summarize(looper_samples=self.prj.samples)
report_directory = psm.summarize(
looper_samples=self.prj.samples, portable=portable
)
print(f"Report directory: {report_directory}")
else:
for piface_source_samples in self.prj._samples_by_piface(
Expand All @@ -567,7 +571,9 @@ def __call__(self, args):
print(psms)
for name, psm in psms.items():
# Summarize will generate the static HTML Report Function
report_directory = psm.summarize(looper_samples=self.prj.samples)
report_directory = psm.summarize(
looper_samples=self.prj.samples, portable=portable
)
print(f"Report directory: {report_directory}")


Expand Down

0 comments on commit 1c9d5ea

Please sign in to comment.