Skip to content

Commit 5e34018

Browse files
lint fixes
1 parent 92f4c54 commit 5e34018

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

omics/cli/run_analyzer/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
[--plot=<directory>]
1414
[--headroom=<float>]
1515
omics-run-analyzer --batch <runId>... [--profile=<profile>] [--region=<region>] [--headroom=<float>]
16-
[--out=<path>]
16+
[--out=<path>]
1717
omics-run-analyzer (-h --help)
1818
omics-run-analyzer --version
1919

omics/cli/run_analyzer/utils.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88

99

1010
def get_engine(workflow_arn, session) -> str:
11+
"""Get the engine name for the workflow_arn"""
1112
omics = session.client("omics")
1213
id = workflow_arn.split("/")[-1]
1314
return omics.get_workflow(id)["engine"]
1415

1516

1617
def task_base_name(name: str, engine: str) -> str:
18+
"""Find the base name of the task assuming the naming conventions used by the engine"""
1719
# WDL
1820
if engine == "WDL":
1921
m = re.match(_wdl_task_regex, name)
@@ -35,7 +37,7 @@ def task_base_name(name: str, engine: str) -> str:
3537

3638

3739
def omics_instance_weight(instance: str) -> int:
38-
40+
"""Compute a numeric weight for an instance to be used in sorting or finding a max or min"""
3941
sizes = {
4042
"": 2,
4143
"x": 4,
@@ -46,7 +48,7 @@ def omics_instance_weight(instance: str) -> int:
4648
"16x": 64,
4749
"24x": 96,
4850
}
49-
families = {"c": 2, "m": 4, "r": 8, "g4dn": 16, "g5": 32}
51+
families = {"c": 2, "m": 4, "r": 8, "g4dn": 16, "g5": 16}
5052
# remove the "omics." from the string
5153
instance.replace("omics.", "")
5254
# split the instance into family and size

0 commit comments

Comments
 (0)