diff --git a/pom.xml b/pom.xml
index f0a605f6..8dfd77d7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -51,8 +51,7 @@
online-workflow
pclfsim-integration
py-powsybl
-
-
+ sampling-integration
security-analysis-ws
uncertainties-analysis
wca-integration
diff --git a/sampling-integration/src/main/java/eu/itesla_project/sampling/SamplerWp41.java b/sampling-integration/src/main/java/eu/itesla_project/sampling/SamplerWp41.java
index ba39cadc..7c814c02 100644
--- a/sampling-integration/src/main/java/eu/itesla_project/sampling/SamplerWp41.java
+++ b/sampling-integration/src/main/java/eu/itesla_project/sampling/SamplerWp41.java
@@ -291,7 +291,7 @@ private Command createMatm2Cmd() {
.program(wp41cM2)
.args("MOD1_${EXEC_NUM}.mat",
"MOD2_${EXEC_NUM}.mat",
- Command.EXECUTION_NUMBER_PATTERN,
+ CommandConstants.EXECUTION_NUMBER_PATTERN,
"" + config.getIr(),
"" + config.getTflag())
.inputFiles(new InputFile("MOD1_${EXEC_NUM}.mat"))
@@ -300,56 +300,60 @@ private Command createMatm2Cmd() {
}
-
-
private void computeMod1AndMod2(DataMiningFacadeParams dmParams, Path cacheDir) throws Exception {
- try (CommandExecutor executor = computationManager.newCommandExecutor(createEnv(), WORKING_DIR_PREFIX, config.isDebug())) {
- Path workingDir = executor.getWorkingDir();
- LOGGER.info("Retrieving historical data for network {}", network.getId());
- Wp41HistoData histoData = getHistoDBData(dmParams, workingDir);
- int parK = config.getPar_k() == -1 ? (int) Math.round(Math.sqrt(histoData.getHdTable().rowKeyList().size() / 2))
- : config.getPar_k();
- LOGGER.info(" IR: {}, tflag: {}, number of clusters: {} ", config.getIr(), config.getTflag(), parK);
- double[][] dataMatrix = Utils.histoDataAsDoubleMatrixNew(histoData.getHdTable());
- Utils.writeWp41ContModule1Mat(workingDir.resolve(M1INPUTFILENAME), dataMatrix);
-
- if (config.getValidationDir() != null) {
- // store input file, for validation purposes
+ computationManager.execute(new ExecutionEnvironment(createEnv(), WORKING_DIR_PREFIX, config.isDebug()), new AbstractExecutionHandler