Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ShamsUlAzeem committed Apr 28, 2020
1 parent 1c59bdd commit 6019215
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ public void stepSetup(List<PipelineStep> steps) throws Exception {
PythonStep pythonStep = (PythonStep) step;
Map<String, PythonConfig> pythonConfigs = pythonStep.getPythonConfigs();

for(String key : pythonConfigs.keySet()) {
if(pythonStep.getInputNames() == null || !pythonStep.getInputNames().contains(key))
pythonStep.step(key, pythonConfigs.get(key));
if (pythonConfigs != null) {
for (String key : pythonConfigs.keySet()) {
if (pythonStep.getInputNames() == null || !pythonStep.getInputNames().contains(key))
pythonStep.step(key, pythonConfigs.get(key));
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,5 @@ public void testPipelineSerialization() throws Exception {
.step(imageLoadingStepConfig)
.build();
System.out.println(config.toJson());

}

}
8 changes: 5 additions & 3 deletions python/konduit/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,11 @@ def get_python_step(step_config):
:return: konduit.inference.PythonStep instance.
"""

python_config = PythonConfig(**step_config)
step = PythonStep().step(python_config)
return step
python_step = PythonStep()
for key, python_config in step_config:
python_step.step(key, PythonConfig(**python_config))

return python_step


def get_image_load_step(step_config):
Expand Down

0 comments on commit 6019215

Please sign in to comment.