-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sbachmei/mic 5476/add optional schema arg to config constructor (#127)
- Loading branch information
1 parent
9cbbec1
commit 27555c9
Showing
10 changed files
with
313 additions
and
99 deletions.
There are no files selected for viewing
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
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
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
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
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,9 +1,11 @@ | ||
from easylink.pipeline_schema_constants import development, integration_test | ||
from easylink.pipeline_schema_constants import development, tests | ||
|
||
ALLOWED_SCHEMA_PARAMS = { | ||
"development": development.SCHEMA_PARAMS, | ||
} | ||
|
||
TESTING_SCHEMA_PARAMS = { | ||
"integration": integration_test.SCHEMA_PARAMS, | ||
"integration": tests.SINGLE_STEP_SCHEMA_PARAMS, | ||
"combined_bad_topology": tests.BAD_COMBINED_TOPOLOGY_SCHEMA_PARAMS, | ||
"combined_bad_implementation_names": tests.BAD_COMBINED_TOPOLOGY_SCHEMA_PARAMS, | ||
} |
39 changes: 0 additions & 39 deletions
39
src/easylink/pipeline_schema_constants/integration_test.py
This file was deleted.
Oops, something went wrong.
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,124 @@ | ||
from easylink.graph_components import ( | ||
EdgeParams, | ||
InputSlot, | ||
InputSlotMapping, | ||
OutputSlot, | ||
OutputSlotMapping, | ||
) | ||
from easylink.step import HierarchicalStep, InputStep, LoopStep, OutputStep, Step | ||
from easylink.utilities.validation_utils import validate_input_file_dummy | ||
|
||
SINGLE_STEP_NODES = [ | ||
InputStep(), | ||
Step( | ||
step_name="step_1", | ||
input_slots=[ | ||
InputSlot( | ||
name="step_1_main_input", | ||
env_var="DUMMY_CONTAINER_MAIN_INPUT_FILE_PATHS", | ||
validator=validate_input_file_dummy, | ||
) | ||
], | ||
output_slots=[OutputSlot("step_1_main_output")], | ||
), | ||
OutputStep( | ||
input_slots=[ | ||
InputSlot(name="result", env_var=None, validator=validate_input_file_dummy) | ||
], | ||
), | ||
] | ||
SINGLE_STEP_EDGES = [ | ||
EdgeParams( | ||
source_node="input_data", | ||
target_node="step_1", | ||
output_slot="all", | ||
input_slot="step_1_main_input", | ||
), | ||
EdgeParams( | ||
source_node="step_1", | ||
target_node="results", | ||
output_slot="step_1_main_output", | ||
input_slot="result", | ||
), | ||
] | ||
|
||
SINGLE_STEP_SCHEMA_PARAMS = (SINGLE_STEP_NODES, SINGLE_STEP_EDGES) | ||
|
||
|
||
BAD_COMBINED_TOPOLOGY_NODES = [ | ||
InputStep(), | ||
LoopStep( | ||
template_step=HierarchicalStep( | ||
step_name="step_1", | ||
input_slots=[ | ||
InputSlot( | ||
name="step_1_main_input", | ||
env_var="DUMMY_CONTAINER_MAIN_INPUT_FILE_PATHS", | ||
validator=validate_input_file_dummy, | ||
), | ||
], | ||
output_slots=[OutputSlot("step_1_main_output")], | ||
nodes=[ | ||
Step( | ||
step_name="step_1a", | ||
input_slots=[ | ||
InputSlot( | ||
name="step_1a_main_input", | ||
env_var="DUMMY_CONTAINER_MAIN_INPUT_FILE_PATHS", | ||
validator=validate_input_file_dummy, | ||
), | ||
], | ||
output_slots=[OutputSlot("step_1a_main_output")], | ||
), | ||
Step( | ||
step_name="step_1b", | ||
input_slots=[ | ||
InputSlot( | ||
name="step_1b_main_input", | ||
env_var="DUMMY_CONTAINER_MAIN_INPUT_FILE_PATHS", | ||
validator=validate_input_file_dummy, | ||
), | ||
], | ||
output_slots=[OutputSlot("step_1b_main_output")], | ||
), | ||
], | ||
edges=[ | ||
EdgeParams( | ||
source_node="step_1a", | ||
target_node="step_1b", | ||
output_slot="step_1a_main_output", | ||
input_slot="step_1b_main_input", | ||
), | ||
], | ||
input_slot_mappings=[ | ||
InputSlotMapping( | ||
parent_slot="step_1_main_input", | ||
child_node="step_1a", | ||
child_slot="step_1a_main_input", | ||
), | ||
], | ||
output_slot_mappings=[ | ||
OutputSlotMapping( | ||
parent_slot="step_1_main_output", | ||
child_node="step_1b", | ||
child_slot="step_1b_main_output", | ||
), | ||
], | ||
), | ||
self_edges=[ | ||
EdgeParams( | ||
source_node="step_1", | ||
target_node="step_1", | ||
output_slot="step_1_main_output", | ||
input_slot="step_1_main_input", | ||
), | ||
], | ||
), | ||
OutputStep( | ||
input_slots=[ | ||
InputSlot(name="result", env_var=None, validator=validate_input_file_dummy) | ||
], | ||
), | ||
] | ||
|
||
BAD_COMBINED_TOPOLOGY_SCHEMA_PARAMS = (BAD_COMBINED_TOPOLOGY_NODES, SINGLE_STEP_EDGES) |
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
Oops, something went wrong.