about summary refs log tree commit diff
path: root/sourcecodes/add_evd.php
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/add_evd.php')
-rw-r--r--sourcecodes/add_evd.php24
1 files changed, 14 insertions, 10 deletions
diff --git a/sourcecodes/add_evd.php b/sourcecodes/add_evd.php
index 5c55f8b9..191dc244 100644
--- a/sourcecodes/add_evd.php
+++ b/sourcecodes/add_evd.php
@@ -105,12 +105,16 @@ for($j=0;$j<$nn;$j++)
 
 $dt=$type_d[$s];
  
-if($dt==1)
-   $textdata=reversemap($sym,$textdata,$keyval);
-else
+//if($dt==1)
+//  $textdata=reversemap($sym,$textdata,$keyval);
+//else
+//   $textdata=discretemap($textdata,$sym,$dmapdata);
+
+if($dt!=1)
    $textdata=discretemap($textdata,$sym,$dmapdata);
 
 
+
  $ft=$dir."$keyval"."var.txt"; 
  $f1=fopen("$ft","w");  
  $ft=$dir."$keyval"."vardata.txt";
@@ -188,15 +192,15 @@ else
 }
 
 
-  $file1="./data/".$keyval."run_evidencemodified.sh";
-  $initiallines=file_get_contents("./data/temp_evidence_file");
-  $all_lines="$initiallines"."$keyval\nfi\nexit";
+//  $file1="./data/".$keyval."run_evidencemodified.sh";
+//  $initiallines=file_get_contents("./data/temp_evidence_file");
+//  $all_lines="$initiallines"."$keyval\nfi\nexit";
    
-  $fp = fopen($file1,"w"); 
-  fwrite($fp, "$all_lines\n");
-  fclose($fp);
+//  $fp = fopen($file1,"w"); 
+//  fwrite($fp, "$all_lines\n");
+//  fclose($fp);
   //execute shell script for matlab
-  shell_exec('./runmat_evd.sh '.$keyval);
+  shell_exec('./run_octave_evd '.$keyval);
 
 ?>
 <script>