Skip to content

Commit

Permalink
re-formats and lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
markjschreiber committed Sep 27, 2024
1 parent 6edbb73 commit 7584a19
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion omics/cli/run_analyzer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
-t, --time=<interval> Select runs over a time interval [default: 1day]
-s, --show Show run resources with no post-processing (JSON)
-T, --timeline Show workflow run timeline
-h, --help Show help text
--version Show the version of this application
Expand Down
1 change: 0 additions & 1 deletion omics/cli/run_analyzer/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def _aggregate_resources(
run_resources_list: list[list[dict]], task_base_name: str, engine: str, out
):
"""Aggregate resources with the same base name"""

run_tasks_with_name: list[dict] = []

for run_resources in run_resources_list:
Expand Down
3 changes: 2 additions & 1 deletion omics/cli/run_analyzer/writeconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


def create_config(engine, task_resources, filename):
"""Create a config file based on recommended CPU and Memory values"""
if engine == "NEXTFLOW":
with open(filename, "w") as out:
for task in task_resources:
Expand All @@ -24,7 +25,7 @@ def create_config(engine, task_resources, filename):


def get_base_task(engine, task):
# Returns the base task name
"""Return the base task name"""
if engine == "NEXTFLOW":
individual_task = task.split(" ")[0]
return individual_task
Expand Down
2 changes: 1 addition & 1 deletion tests/run_analyzer/unit/test_writeconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def test_get_base_task_nextflow(self):
self.assertEqual(result, "task1")

def test_get_base_task_cwl(self):
result = writeconfig.get_base_task("CWL", "task1 (sample1)")
_ = writeconfig.get_base_task("CWL", "task1 (sample1)")
self.assertRaises(ValueError)


Expand Down

0 comments on commit 7584a19

Please sign in to comment.