Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
EMADL2CPP
Commits
40d080a0
Commit
40d080a0
authored
Jan 31, 2019
by
nilsfreyer
Browse files
python path
parent
b03b3917
Pipeline
#101655
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/monticar/emadl/generator/EMADLGenerator.java
View file @
40d080a0
...
...
@@ -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
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment