-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23fb84d
commit fac8b9a
Showing
12 changed files
with
31 additions
and
33 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
utils/filter-array-plugin/ict.yml → ...ss/array-subset/filter-array-tool/ict.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
specVersion: "0.1.0" | ||
name: filter_array | ||
version: 0.1.0 | ||
container: filter-array-plugin | ||
container: filter-array-tool | ||
entrypoint: | ||
title: filter_array | ||
description: Filter array based on input boolean array | ||
author: Data Scientist | ||
contact: [email protected] | ||
author: Brandon Walker, Nazanin Donyapour | ||
contact: [email protected], [email protected] | ||
repository: | ||
documentation: | ||
citation: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
27 changes: 27 additions & 0 deletions
27
utils/post-process/array-subset/filter-array-tool/tests/test_filter_array.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"""Tests for filter_array.""" | ||
from pathlib import Path | ||
|
||
from sophios.api.pythonapi import Step | ||
from sophios.api.pythonapi import Workflow | ||
|
||
|
||
def test_filter_array() -> None: | ||
"""Test filter_array.""" | ||
# Define paths and input properties | ||
cwl_file_str = "filter_array_0@[email protected]" | ||
cwl_file = Path(__file__).resolve().parent.parent / Path(cwl_file_str) | ||
input_array = [1, 2, 3] | ||
input_bool_array = [False, True, False] | ||
|
||
# Create the CWL step | ||
filter_array_step = Step(clt_path=cwl_file) | ||
filter_array_step.input_array = input_array | ||
filter_array_step.input_bool_array = input_bool_array | ||
|
||
# Create the workflow and run it | ||
steps = [filter_array_step] | ||
filename = "filter_array_workflow" | ||
workflow = Workflow(steps, filename) | ||
workflow.run() | ||
|
||
# cant parse stdout |