Extend the python mussa interface.
[mussa.git] / alg / mussa.cpp
index b538eccf0946bc8f992c62ea8cb81f8b6269c550..0b93e99d24da3ec3e543e3e0e5cde8ad35678cef 100644 (file)
@@ -198,11 +198,13 @@ void
 Mussa::set_soft_threshold(int new_threshold)
 {
   if (new_threshold < threshold) {
-    soft_thres = threshold;
+    new_threshold = threshold;
   } else if (new_threshold > window) {
-    soft_thres = window; 
-  } else {
+    new_threshold = window; 
+  }
+  if (soft_thres != new_threshold) {
     soft_thres = new_threshold;
+    nway();
   }
 }
 
@@ -375,10 +377,6 @@ void Mussa::load_sequence(fs::path seq_file, fs::path annot_file,
   set_dirty(true);
 }
 
-void Mussa::load_mupa_file(std::string para_file_path) {
-  load_mupa_file(boost::filesystem::path(para_file_path));
-}
-
 void
 Mussa::load_mupa_file(fs::path para_file_path)
 {