Commit 40d080a0 authored by nilsfreyer's avatar nilsfreyer
Browse files

python path

parent b03b3917
Pipeline #101655 canceled with stages
......@@ -219,7 +219,7 @@ public class EMADLGenerator {
String parsedFullName = componentInstance.getFullName().substring(0, 1).toLowerCase() + componentInstance.getFullName().substring(1).replaceAll("\\.", "_");
String trainerScriptName = "CNNTrainer_" + parsedFullName + ".py";
String trainingPath = getGenerationTargetPath() + trainerScriptName;
String pythonExe = "/home/christopher/anaconda3/bin/python";
String pythonExe = "/usr/bin/python";
if(Files.exists(Paths.get(trainingPath))){
ProcessBuilder pb = new ProcessBuilder(Arrays.asList(pythonExe, trainingPath)).inheritIO();
Process p = pb.start();
......@@ -356,9 +356,7 @@ public class EMADLGenerator {
EMADLCocos.checkAll(componentInstanceSymbol);
if (architecture.isPresent()){
DataPathConfigParser newParserConfig = new DataPathConfigParser(getModelsPath() + "ConfigChainAutomation.properties");
String dPath = newParserConfig.getDataPath(componentSymbol.getFullName());
/*String dPath = DataPathConfigParser.getDataPath(getModelsPath() + "data_paths.txt", componentSymbol.getFullName());*/
String dPath = DataPathConfigParser.getDataPath(getModelsPath() + "data_paths.txt", componentSymbol.getFullName());
architecture.get().setDataPath(dPath);
architecture.get().setComponentName(componentSymbol.getFullName());
generateCNN(fileContents, taggingResolver, componentInstanceSymbol, architecture.get());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment