Browse Source

Add optimize command

Matthias Vogelgesang 7 years ago
parent
commit
760af5b0cd
1 changed files with 4 additions and 2 deletions
  1. 4 2
      cockpit

+ 4 - 2
cockpit

@@ -233,7 +233,7 @@ class Application(object):
 
     def on_flat_correct(self):
         num = 0
-        data = dict(p=self.config.destination, num=num, step=123))
+        data = dict(p=self.config.destination, num=num, step=123)
         cmd = ('tofu flatcorrect --verbose'
                ' --reduction-mode median'
                ' --projections "{p}/foo*.edf"'
@@ -249,7 +249,9 @@ class Application(object):
 
     def on_optimize(self):
         self.log.info("Optimizing ...")
-        return True
+        cmd = ('optimize-parameters --verbose'
+               ' --reco-params "--x-region=-960,960,1 --y-region=-960,960,1 --overall-angle -360')
+        return self.run_command(cmd)
 
     def do_nothing(self):
         return True