コード例 #1
0
ファイル: ijbridge.py プロジェクト: braniti/CellProfiler
 def get_commands(self):
     '''returns a list of the available command strings'''
     return ijmacros.get_commands()
コード例 #2
0
 def get_commands(self):
     '''returns a list of the available command strings'''
     return ijmacros.get_commands()
コード例 #3
0
import cellprofiler.workspace as cpw

import cellprofiler.modules.run_imagej as R

run_tests = (sys.platform.startswith("win"))

INPUT_IMAGE_NAME = "inputimage"
OUTPUT_IMAGE_NAME = "outputimage"

#
# Test for presence of tubeness plugin
#
has_tubeness = False
try:
    import imagej.macros as M
    commands = M.get_commands()
    M.get_plugin('features.Tubeness2_0')
    has_tubeness = True
except:
    print "The Tubeness plugin isn't loaded - using a simplified pipeline"

class TestRunImageJ(unittest.TestCase):
    def test_01_01_load_v1(self):
        data = r"""CellProfiler Pipeline: http://www.cellprofiler.org
Version:1
SVNRevision:9954

RunImageJ:[module_num:1|svn_version:\'Unknown\'|variable_revision_number:1|show_window:True|notes:\x5B\x5D]
    Command or macro?:Command
    Command\x3A:Sharpen
    Macro\x3A:run("Invert");
コード例 #4
0
import cellprofiler.modules.run_imagej as R
from bioformats import USE_IJ2

run_tests = (sys.platform.startswith("win") and not USE_IJ2)

INPUT_IMAGE_NAME = "inputimage"
OUTPUT_IMAGE_NAME = "outputimage"

#
# Test for presence of tubeness plugin
#
has_tubeness = False
try:
    import imagej.macros as M
    commands = M.get_commands()
    M.get_plugin('features.Tubeness2_0')
    has_tubeness = True
except:
    print "The Tubeness plugin isn't loaded - using a simplified pipeline"


class TestRunImageJ(unittest.TestCase):
    def test_01_01_load_v1(self):
        data = r"""CellProfiler Pipeline: http://www.cellprofiler.org
Version:1
SVNRevision:9954

RunImageJ:[module_num:1|svn_version:\'Unknown\'|variable_revision_number:1|show_window:True|notes:\x5B\x5D]
    Command or macro?:Command
    Command\x3A:Sharpen