Commit 14c29770 authored by Nicola Gatto's avatar Nicola Gatto

Merge default data paths

parents 5a35c2f7 ef3859ed
...@@ -53,6 +53,10 @@ integrationGluonJobLinux: ...@@ -53,6 +53,10 @@ integrationGluonJobLinux:
script: script:
- mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean install --settings settings.xml -Dtest=IntegrationGluonTest - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean install --settings settings.xml -Dtest=IntegrationGluonTest
<<<<<<< HEAD
=======
>>>>>>> master
masterJobWindows: masterJobWindows:
stage: windows stage: windows
script: script:
......
...@@ -370,7 +370,9 @@ public class EMADLGenerator { ...@@ -370,7 +370,9 @@ public class EMADLGenerator {
DataPathConfigParser newParserConfig = new DataPathConfigParser(getModelsPath() + "data_paths.txt"); DataPathConfigParser newParserConfig = new DataPathConfigParser(getModelsPath() + "data_paths.txt");
dPath = newParserConfig.getDataPath(EMAComponentSymbol.getFullName()); dPath = newParserConfig.getDataPath(EMAComponentSymbol.getFullName());
} else { } else {
Log.warn("No data path definition found in " + dataPathDefinition + " found: No generation of data loader"); Log.warn("No data path definition found in " + dataPathDefinition + " found: "
+ "Set data path to default ./data path");
dPath = "data";
} }
/*String dPath = DataPathConfigParser.getDataPath(getModelsPath() + "data_paths.txt", componentSymbol.getFullName());*/ /*String dPath = DataPathConfigParser.getDataPath(getModelsPath() + "data_paths.txt", componentSymbol.getFullName());*/
......
...@@ -7,6 +7,10 @@ component Reward { ...@@ -7,6 +7,10 @@ component Reward {
out Q reward; out Q reward;
implementation Math { implementation Math {
reward = 2; if isTerminal
reward = -1;
else
reward = 1;
end
} }
} }
\ No newline at end of file
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