Browse Source

Update task and property names

Tomas Farago 9 years ago
parent
commit
60f6928251
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tests/tests.py

+ 3 - 3
tests/tests.py

@@ -38,7 +38,7 @@ class BasicTests(unittest.TestCase):
     def test_ramp(self):
         outname = self.tmp_path('rmp-%05i.tif')
         ramp = self.pm.get_task('lamino-ramp')
-        writer = self.pm.get_task('writer')
+        writer = self.pm.get_task('write')
 
         ramp.set_properties(width=4096, fwidth=1458, height=2048,
                             theta=1.0921048, tau=0.3)
@@ -52,7 +52,7 @@ class BasicTests(unittest.TestCase):
         self.assertEqual(len(files), 1)
 
     def test_bug_lamino_reco(self):
-        reader = self.get_task('reader', path=data_path('bug/projections/*.tif'))
+        reader = self.get_task('read', path=data_path('bug/projections/*.tif'))
         writer = self.get_task('null')
         reco = self.get_task('lamino-bp')
         padding = self.get_task('padding-2d')
@@ -84,7 +84,7 @@ class BasicTests(unittest.TestCase):
         self.sched.run(self.graph)
 
     def test_3d_edf(self):
-        reader = self.get_task('reader', path=data_path('bug/projections'), end=1)
+        reader = self.get_task('read', path=data_path('bug/projections'), number=1)
         writer = self.get_task('edf-3d-writer', filename=self.tmp_path('vol-%05i.edf'))
         reco = self.get_task('lamino-bp')