code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
# -*- coding: utf-8 -*- """ markupsafe._constants ~~~~~~~~~~~~~~~~~~~~~ Highlevel implementation of the Markup string. :copyright: (c) 2010 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ HTML_ENTITIES = { 'AElig': 198, 'Aacute': 193, 'Acirc': 194, 'Agrave': 1...
[ [ 8, 0, 0.0225, 0.0337, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.5243, 0.9551, 0, 0.66, 1, 955, 0, 0, 0, 0, 0, 6, 0 ] ]
[ "\"\"\"\n markupsafe._constants\n ~~~~~~~~~~~~~~~~~~~~~\n\n Highlevel implementation of the Markup string.\n\n :copyright: (c) 2010 by Armin Ronacher.\n :license: BSD, see LICENSE for more details.", "HTML_ENTITIES = {\n 'AElig': 198,\n 'Aacute': 193,\n 'Acirc': 194,\n 'Agrave': 192,\n ...
# -*- coding: utf-8 -*- """ jinja2.exceptions ~~~~~~~~~~~~~~~~~ Jinja exceptions. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ class TemplateError(Exception): """Baseclass for all template errors.""" def __init__(self, message=None): i...
[ [ 8, 0, 0.042, 0.0629, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.1364, 0.0979, 0, 0.66, 0.1111, 179, 0, 2, 0, 0, 645, 0, 4 ], [ 8, 1, 0.0979, 0.007, 1, 0.89, ...
[ "\"\"\"\n jinja2.exceptions\n ~~~~~~~~~~~~~~~~~\n\n Jinja exceptions.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD, see LICENSE for more details.", "class TemplateError(Exception):\n \"\"\"Baseclass for all template errors.\"\"\"\n\n def __init__(self, message=None):\n i...
# -*- coding: utf-8 -*- """ jinja2.sandbox ~~~~~~~~~~~~~~ Adds a sandbox layer to Jinja as it was the default behavior in the old Jinja 1 releases. This sandbox is slightly different from Jinja 1 as the default behavior is easier to use. The behavior can be changed by subclassing the environm...
[ [ 8, 0, 0.0295, 0.048, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0554, 0.0037, 0, 0.66, 0.0417, 616, 0, 1, 0, 0, 616, 0, 0 ], [ 1, 0, 0.059, 0.0037, 0, 0.66, ...
[ "\"\"\"\n jinja2.sandbox\n ~~~~~~~~~~~~~~\n\n Adds a sandbox layer to Jinja as it was the default behavior in the old\n Jinja 1 releases. This sandbox is slightly different from Jinja 1 as the\n default behavior is easier to use.", "import operator", "from jinja2.runtime import Undefined", "fr...
# -*- coding: utf-8 -*- """ jinja2.meta ~~~~~~~~~~~ This module implements various functions that exposes information about templates that might be interesting for various kinds of applications. :copyright: (c) 2010 by the Jinja Team, see AUTHORS for more details. :license: BSD, see LICENSE fo...
[ [ 8, 0, 0.0637, 0.098, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1176, 0.0098, 0, 0.66, 0.2, 436, 0, 1, 0, 0, 436, 0, 0 ], [ 1, 0, 0.1275, 0.0098, 0, 0.66, ...
[ "\"\"\"\n jinja2.meta\n ~~~~~~~~~~~\n\n This module implements various functions that exposes information about\n templates that might be interesting for various kinds of applications.\n\n :copyright: (c) 2010 by the Jinja Team, see AUTHORS for more details.", "from jinja2 import nodes", "from ji...
# -*- coding: utf-8 -*- """ jinja2.defaults ~~~~~~~~~~~~~~~ Jinja default filters and tags. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ from jinja2.utils import generate_lorem_ipsum, Cycler, Joiner from gettext import gettext as _ ##ADDD # defaults for...
[ [ 8, 0, 0.1463, 0.2195, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2683, 0.0244, 0, 0.66, 0.0625, 677, 0, 3, 0, 0, 677, 0, 0 ], [ 1, 0, 0.2927, 0.0244, 0, 0.66...
[ "\"\"\"\n jinja2.defaults\n ~~~~~~~~~~~~~~~\n\n Jinja default filters and tags.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD, see LICENSE for more details.", "from jinja2.utils import generate_lorem_ipsum, Cycler, Joiner", "from gettext import gettext as _ ##ADDD", "BLOCK_START_S...
# -*- coding: utf-8 -*- """ jinja2._stringdefs ~~~~~~~~~~~~~~~~~~ Strings of all Unicode characters of a certain category. Used for matching in Unicode-aware languages. Run to regenerate. Inspired by chartypes_create.py from the MoinMoin project, original implementation from Pygments. :co...
[ [ 8, 0, 0.0615, 0.1, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1231, 0.0077, 0, 0.66, 0.0278, 924, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1385, 0.0077, 0, 0.66, ...
[ "\"\"\"\n jinja2._stringdefs\n ~~~~~~~~~~~~~~~~~~\n\n Strings of all Unicode characters of a certain category.\n Used for matching in Unicode-aware languages. Run to regenerate.\n\n Inspired by chartypes_create.py from the MoinMoin project, original", "Cc = u'\\x00\\x01\\x02\\x03\\x04\\x05\\x06\\x0...
# -*- coding: utf-8 -*- """ jinja.constants ~~~~~~~~~~~~~~~ Various constants. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ #: list of lorem ipsum words used by the lipsum() helper function LOREM_IPSUM_WORDS = u'''\ a ac accumsan ad adipiscing aenean a...
[ [ 8, 0, 0.1875, 0.2812, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.7188, 0.5938, 0, 0.66, 1, 350, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "\"\"\"\n jinja.constants\n ~~~~~~~~~~~~~~~\n\n Various constants.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD, see LICENSE for more details.", "LOREM_IPSUM_WORDS = u'''\\\na ac accumsan ad adipiscing aenean aliquam aliquet amet ante aptent arcu at\nauctor augue bibendum blandit cla...
# -*- coding: utf-8 -*- """ jinja2 ~~~~~~ Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment. Nutshell -------- Here a small example of a Jinja2 template:: {% ...
[ [ 8, 0, 0.2055, 0.3699, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3973, 0.0137, 0, 0.66, 0.1, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.4384, 0.0685, 0, 0.66, ...
[ "\"\"\"\n jinja2\n ~~~~~~\n\n Jinja2 is a template engine written in pure Python. It provides a\n Django inspired non-XML syntax but supports inline expressions and\n an optional sandboxed environment.", "__docformat__ = 'restructuredtext en'", "try:\n __version__ = __import__('pkg_resources'...
# -*- coding: utf-8 -*- """ jinja2.bccache ~~~~~~~~~~~~~~ This module implements the bytecode cache system Jinja is optionally using. This is useful if you have very complex template situations and the compiliation of all those templates slow down your application too much. Situations whe...
[ [ 8, 0, 0.0321, 0.0536, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0607, 0.0036, 0, 0.66, 0.0714, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0643, 0.0036, 0, 0.66...
[ "\"\"\"\n jinja2.bccache\n ~~~~~~~~~~~~~~\n\n This module implements the bytecode cache system Jinja is optionally\n using. This is useful if you have very complex template situations and\n the compiliation of all those templates slow down your application too\n much.", "from os import path, li...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 14, 0, 0.8571, 0.0357, 0, 0.66, 0, 335, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.8929, 0.0357, 0, 0.66, 0.25, 884, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.9286, 0.0357, 0, 0.6...
[ "DEFAULT_LOCALE = \"en\"", "locale = \"locale\"", "appName = \"app_name\"", "appSubject = \"app_subject\"", "domain = \"domain\"" ]
""" Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and ...
[ [ 8, 0, 0.0523, 0.1008, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1124, 0.0039, 0, 0.66, 0.0909, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.1163, 0.0039, 0, 0.66...
[ "\"\"\"\nCopyright (c) 2008, appengine-utilities project\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n- Redistributions of source code must retain the above copyright notice, this\n list of ...
""" Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and ...
[ [ 8, 0, 0.028, 0.0539, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0602, 0.0021, 0, 0.66, 0.0455, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0622, 0.0021, 0, 0.66,...
[ "\"\"\"\nCopyright (c) 2008, appengine-utilities project\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n- Redistributions of source code must retain the above copyright notice, this\n list of ...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 2, 0, 0.7973, 0.4324, 0, 0.66, 0, 366, 0, 1, 1, 0, 0, 0, 11 ], [ 14, 1, 0.6216, 0.027, 1, 0.25, 0, 496, 3, 2, 0, 0, 107, 10, 1 ], [ 14, 1, 0.6486, 0.027, 1, 0.25,...
[ "def loadProperties(fileName):\n propFile = file(fileName, \"rU\" )\n propDict = dict()\n for propLine in propFile:\n propDef = propLine.strip()\n if len(propDef) == 0:\n continue\n if propDef[0] in ( '!', '#' ):", " propFile = file(fileName, \"rU\" )", " propDict ...
""" Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and ...
[ [ 8, 0, 0.1776, 0.3421, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3553, 0.0132, 0, 0.66, 0.25, 593, 0, 1, 0, 0, 593, 0, 0 ], [ 3, 0, 0.6711, 0.5658, 0, 0.66, ...
[ "\"\"\"\nCopyright (c) 2008, appengine-utilities project\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n- Redistributions of source code must retain the above copyright notice, this\n list of ...
""" Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and ...
[ [ 8, 0, 0.1392, 0.268, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2887, 0.0103, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.299, 0.0103, 0, 0.66, ...
[ "\"\"\"\nCopyright (c) 2008, appengine-utilities project\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n- Redistributions of source code must retain the above copyright notice, this\n list of ...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.2018, 0.0092, 0, 0.66, 0, 722, 0, 1, 0, 0, 722, 0, 0 ], [ 1, 0, 0.211, 0.0092, 0, 0.66, 0.25, 123, 0, 1, 0, 0, 123, 0, 0 ], [ 1, 0, 0.2202, 0.0092, 0, 0.6...
[ "import model", "import PropertiesUtil", "import Constant", "from google.appengine.api import memcache", "class AppProperties (object):\n __instance = None\n __appDic = None\n __env = None\n\n def __new__(cls, *args, **kargs): \n if cls.__instance is None:\n cls.__instance = ob...
#!/usr/bin/env python version = "1.7" version_info = (1,7,0,"rc-2") __revision__ = "$Rev: 72 $" """ Python-Markdown =============== Converts Markdown to HTML. Basic usage as a module: import markdown md = Markdown() html = md.convert(your_text_string) See http://www.freewisdom.org/projects/python-mark...
[ [ 14, 0, 0.0016, 0.0005, 0, 0.66, 0, 623, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0021, 0.0005, 0, 0.66, 0.0079, 342, 0, 0, 0, 0, 0, 8, 0 ], [ 14, 0, 0.0026, 0.0005, 0, 0...
[ "version = \"1.7\"", "version_info = (1,7,0,\"rc-2\")", "__revision__ = \"$Rev: 72 $\"", "\"\"\"\nPython-Markdown\n===============\n\nConverts Markdown to HTML. Basic usage as a module:\n\n import markdown\n md = Markdown()", "import re, sys, codecs", "from logging import getLogger, StreamHandler, ...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software ...
[ [ 1, 0, 0.4694, 0.0204, 0, 0.66, 0, 709, 0, 1, 0, 0, 709, 0, 0 ], [ 1, 0, 0.5102, 0.0204, 0, 0.66, 0.1429, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.5306, 0.0204, 0, ...
[ "import wsgiref.handlers", "import os", "from handlers import *", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp import template", "class NotAvailable(webapp.RequestHandler):\n\n\tdef get(self):\n\t\tself.response.clear()\n\t\tself.response.set_status(501)\n\t\tself.response....
#!/usr/bin/env python import struct from StringIO import StringIO from google.appengine.api import images def resize(image, maxwidth, maxheight): imageinfo = getimageinfo(image) width = float(imageinfo[1]) height = float(imageinfo[2]) ratio = width / height dwidth = maxheight * ratio dheight = ma...
[ [ 1, 0, 0.026, 0.013, 0, 0.66, 0, 399, 0, 1, 0, 0, 399, 0, 0 ], [ 1, 0, 0.039, 0.013, 0, 0.66, 0.25, 609, 0, 1, 0, 0, 609, 0, 0 ], [ 1, 0, 0.0649, 0.013, 0, 0.66, ...
[ "import struct", "from StringIO import StringIO", "from google.appengine.api import images", "def resize(image, maxwidth, maxheight):\n\timageinfo = getimageinfo(image)\n\twidth = float(imageinfo[1])\n\theight = float(imageinfo[2])\n\tratio = width / height\n\t\n\tdwidth = maxheight * ratio\n\tdheight = maxhe...
import simplejson import cgi class JSONFilter(object): def __init__(self, app, mime_type='text/x-json'): self.app = app self.mime_type = mime_type def __call__(self, environ, start_response): # Read JSON POST input to jsonfilter.json if matching mime type response = {...
[ [ 1, 0, 0.025, 0.025, 0, 0.66, 0, 386, 0, 1, 0, 0, 386, 0, 0 ], [ 1, 0, 0.05, 0.025, 0, 0.66, 0.3333, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 3, 0, 0.5125, 0.85, 0, 0.66, ...
[ "import simplejson", "import cgi", "class JSONFilter(object):\n def __init__(self, app, mime_type='text/x-json'):\n self.app = app\n self.mime_type = mime_type\n\n def __call__(self, environ, start_response):\n # Read JSON POST input to jsonfilter.json if matching mime type\n r...
""" Implementation of JSONDecoder """ import re import sys from simplejson.scanner import Scanner, pattern try: from simplejson import _speedups except: _speedups = None FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL def _floatconstants(): import struct import sys _BYTES = '7FF800...
[ [ 8, 0, 0.006, 0.0091, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0121, 0.003, 0, 0.66, 0.0333, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0151, 0.003, 0, 0.66, ...
[ "\"\"\"\nImplementation of JSONDecoder\n\"\"\"", "import re", "import sys", "from simplejson.scanner import Scanner, pattern", "try:\n from simplejson import _speedups\nexcept:\n _speedups = None", " from simplejson import _speedups", " _speedups = None", "FLAGS = re.VERBOSE | re.MULTILINE...
""" Iterator based sre token scanner """ import sre_parse, sre_compile, sre_constants from sre_constants import BRANCH, SUBPATTERN from re import VERBOSE, MULTILINE, DOTALL import re __all__ = ['Scanner', 'pattern'] FLAGS = (VERBOSE | MULTILINE | DOTALL) class Scanner(object): def __init__(self, lexic...
[ [ 8, 0, 0.0312, 0.0469, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0625, 0.0156, 0, 0.66, 0.125, 22, 0, 3, 0, 0, 22, 0, 0 ], [ 1, 0, 0.0781, 0.0156, 0, 0.66, ...
[ "\"\"\"\nIterator based sre token scanner\n\"\"\"", "import sre_parse, sre_compile, sre_constants", "from sre_constants import BRANCH, SUBPATTERN", "from re import VERBOSE, MULTILINE, DOTALL", "import re", "__all__ = ['Scanner', 'pattern']", "FLAGS = (VERBOSE | MULTILINE | DOTALL)", "class Scanner(obj...
""" Implementation of JSONEncoder """ import re try: from simplejson import _speedups except ImportError: _speedups = None ESCAPE = re.compile(r'[\x00-\x1f\\"\b\f\n\r\t]') ESCAPE_ASCII = re.compile(r'([\\"/]|[^\ -~])') ESCAPE_DCT = { '\\': '\\\\', '"': '\\"', '\b': '\\b', '\f': '...
[ [ 8, 0, 0.0053, 0.008, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0106, 0.0027, 0, 0.66, 0.0714, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 7, 0, 0.0173, 0.0106, 0, 0.66,...
[ "\"\"\"\nImplementation of JSONEncoder\n\"\"\"", "import re", "try:\n from simplejson import _speedups\nexcept ImportError:\n _speedups = None", " from simplejson import _speedups", " _speedups = None", "ESCAPE = re.compile(r'[\\x00-\\x1f\\\\\"\\b\\f\\n\\r\\t]')", "ESCAPE_ASCII = re.compile(...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Aff...
[ [ 1, 0, 0.0614, 0.0026, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.0639, 0.0026, 0, 0.66, 0.037, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.0665, 0.0026, 0, 0...
[ "from google.appengine.ext import db", "from google.appengine.api import users", "from google.appengine.ext import search", "class UserData(search.SearchableModel):\n\tnickname = db.StringProperty(required=True)\n\tpersonal_message = db.StringProperty()\n\temail = db.StringProperty(required=True)\n\tavatar = ...
import copy from logging_mixin import LoggingMixin import os from simple_api_mixin import SimpleAPIMixin class ScriptInterface(SimpleAPIMixin, LoggingMixin): def __init__(self, devide_app): self.devide_app = devide_app # initialise logging mixin LoggingMixin.__init__(self) print ...
[ [ 1, 0, 0.0233, 0.0233, 0, 0.66, 0, 739, 0, 1, 0, 0, 739, 0, 0 ], [ 1, 0, 0.0465, 0.0233, 0, 0.66, 0.25, 424, 0, 1, 0, 0, 424, 0, 0 ], [ 1, 0, 0.0698, 0.0233, 0, 0....
[ "import copy", "from logging_mixin import LoggingMixin", "import os", "from simple_api_mixin import SimpleAPIMixin", "class ScriptInterface(SimpleAPIMixin, LoggingMixin):\n\n def __init__(self, devide_app):\n self.devide_app = devide_app\n\n # initialise logging mixin\n LoggingMixin....
# simple api mixin to be used by RPC and command line interfaces # of DeVIDE that require simple methods for speaking to a running # instance class SimpleAPIMixin: def __init__(self, devide_app): self.devide_app = devide_app def close(self): del self.devide_app def load_and_realise_netwo...
[ [ 3, 0, 0.5397, 0.9365, 0, 0.66, 0, 850, 0, 8, 0, 0, 0, 0, 12 ], [ 2, 1, 0.119, 0.0317, 1, 0.67, 0, 555, 0, 2, 0, 0, 0, 0, 0 ], [ 14, 2, 0.127, 0.0159, 2, 0.61, ...
[ "class SimpleAPIMixin:\n\n def __init__(self, devide_app):\n self.devide_app = devide_app\n\n def close(self):\n del self.devide_app", " def __init__(self, devide_app):\n self.devide_app = devide_app", " self.devide_app = devide_app", " def close(self):\n del sel...
# logging mixin for use by DeVIDE interfaces import logging import sys class LoggingMixin: def __init__(self): # this sets things up for logging to stderr logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(levelname)s %(message)s', ...
[ [ 1, 0, 0.0476, 0.0159, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0635, 0.0159, 0, 0.66, 0.5, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 3, 0, 0.5317, 0.8889, 0, 0.6...
[ "import logging", "import sys", "class LoggingMixin:\n\n def __init__(self):\n # this sets things up for logging to stderr\n logging.basicConfig(level=logging.DEBUG,\n format='%(asctime)s %(levelname)s %(message)s',\n stream=sys.stdout)", ...
from logging_mixin import LoggingMixin from SimpleXMLRPCServer import SimpleXMLRPCServer import time class ServerProxy: def test_function(self): return "Hello World!" class XMLRPCInterface(LoggingMixin): def __init__(self, devide_app): self._devide_app = devide_app # initialise loggi...
[ [ 1, 0, 0.0233, 0.0233, 0, 0.66, 0, 424, 0, 1, 0, 0, 424, 0, 0 ], [ 1, 0, 0.0465, 0.0233, 0, 0.66, 0.25, 73, 0, 1, 0, 0, 73, 0, 0 ], [ 1, 0, 0.0698, 0.0233, 0, 0.66...
[ "from logging_mixin import LoggingMixin", "from SimpleXMLRPCServer import SimpleXMLRPCServer", "import time", "class ServerProxy:\n def test_function(self):\n return \"Hello World!\"", " def test_function(self):\n return \"Hello World!\"", " return \"Hello World!\"", "class XM...
# required for this dir to be recognised as package.
[]
[]
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. # we use psutil for keeping an eye on memory (and crashes) # if you don't have this yet, install with: # dre shell # pip install psutil import psutil import string import sys import time import webbrowser import wx import wx....
[ [ 1, 0, 0.0211, 0.0023, 0, 0.66, 0, 155, 0, 1, 0, 0, 155, 0, 0 ], [ 1, 0, 0.0258, 0.0023, 0, 0.66, 0.1111, 890, 0, 1, 0, 0, 890, 0, 0 ], [ 1, 0, 0.0281, 0.0023, 0, ...
[ "import psutil", "import string", "import sys", "import time", "import webbrowser", "import wx", "import wx.html", "import resources.graphics.images", "import main_frame", "class WXInterface(wx.App):\n \"\"\"WX-based graphical user interface for DeVIDE.\n\n This contains all functionality th...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import vtk from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor import wx from module_kits.wx_kit import utils as wxutils import wx.lib.agw.aui as aui wx.aui = aui from wx.html import HtmlWindow class ...
[ [ 1, 0, 0.0114, 0.0023, 0, 0.66, 0, 665, 0, 1, 0, 0, 665, 0, 0 ], [ 1, 0, 0.0137, 0.0023, 0, 0.66, 0.1111, 201, 0, 1, 0, 0, 201, 0, 0 ], [ 1, 0, 0.016, 0.0023, 0, 0...
[ "import vtk", "from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor", "import wx", "from module_kits.wx_kit import utils as wxutils", "import wx.lib.agw.aui as aui", "wx.aui = aui", "from wx.html import HtmlWindow", "class SimpleHTMLListBox(wx.HtmlListBox):\n \"\"\"Simple clas...
from main import WXInterface
[ [ 1, 0, 1, 1, 0, 0.66, 0, 624, 0, 1, 0, 0, 624, 0, 0 ] ]
[ "from main import WXInterface" ]
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. """Collection of module utility functions. @author: Charl P. Botha <http://cpbotha.net/> """ import wx import resources.graphics.images def create_eoca_buttons(d3module, viewFrame, viewFramePanel, o...
[ [ 8, 0, 0.0207, 0.0127, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0318, 0.0032, 0, 0.66, 0.1111, 666, 0, 1, 0, 0, 666, 0, 0 ], [ 1, 0, 0.035, 0.0032, 0, 0.66,...
[ "\"\"\"Collection of module utility functions.\n\n@author: Charl P. Botha <http://cpbotha.net/>\n\"\"\"", "import wx", "import resources.graphics.images", "def create_eoca_buttons(d3module, viewFrame, viewFramePanel,\n ok_default=True, \n cancel_hotkey=True):\n ...
# python rules. severely. # (c) 2007 cpbotha import glob import sys import os import shutil import zipfile def main(): cwd = os.path.abspath(os.curdir) hhp_dir = os.path.join(cwd, 'devidehelp_tmphhp') os.chdir(hhp_dir) htb_list = glob.glob('*.html') + \ glob.glob('*.png') + \ glob....
[ [ 1, 0, 0.1212, 0.0303, 0, 0.66, 0, 958, 0, 1, 0, 0, 958, 0, 0 ], [ 1, 0, 0.1515, 0.0303, 0, 0.66, 0.1667, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1818, 0.0303, 0, ...
[ "import glob", "import sys", "import os", "import shutil", "import zipfile", "def main():\n cwd = os.path.abspath(os.curdir)\n hhp_dir = os.path.join(cwd, 'devidehelp_tmphhp')\n\n os.chdir(hhp_dir)\n\n htb_list = glob.glob('*.html') + \\\n glob.glob('*.png') + \\", " cwd = os.path...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import math class MarschnerLobb(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_mana...
[ [ 1, 0, 0.0446, 0.0089, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0536, 0.0089, 0, 0.66, 0.2, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0625, 0.0089, 0, 0.6...
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "import math", "class MarschnerLobb(ScriptedConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\n ...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class manualTransform(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._config.scale = (1.0, 1.0, 1.0) ...
[ [ 1, 0, 0.012, 0.012, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0241, 0.012, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0361, 0.012, 0, 0.66, ...
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "class manualTransform(ScriptedConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\n self._conf...
# $Id$ class advectionProperties: kits = ['vtk_kit'] cats = ['Sources'] help = """Given a series of prepared advection volumes (each input is a timestep), calculate a number of metrics. The first input HAS to have a VolumeIndex PointData attribute/array. For example, the output of the pointsT...
[ [ 3, 0, 0.0972, 0.1481, 0, 0.66, 0, 13, 0, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.037, 0.0093, 1, 0.38, 0, 190, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 1, 0.0463, 0.0093, 1, 0.38, ...
[ "class advectionProperties:\n kits = ['vtk_kit']\n cats = ['Sources']\n help = \"\"\"Given a series of prepared advection volumes (each input is a\n timestep), calculate a number of metrics.\n\n The first input HAS to have a VolumeIndex PointData attribute/array. For\n example, the output of the ...
from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils class PassThrough(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) NoConfigModuleMixin.__init__( ...
[ [ 1, 0, 0.027, 0.027, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0541, 0.027, 0, 0.66, 0.3333, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0811, 0.027, 0, 0.66...
[ "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import module_utils", "class PassThrough(NoConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n # initialise our base class\n ModuleBase.__init__(self, module_manager)\n\n NoConfi...
# dumy __init__ so this directory can function as a package
[]
[]
from module_base import ModuleBase from module_mixins import IntrospectModuleMixin import module_utils import vtk import vtkdevide import wx class histogramSegment(IntrospectModuleMixin, ModuleBase): """Mooooo! I'm a cow. $Revision: 1.9 $ """ _gridCols = [('Type', 0), ('Number of Handles',0)] _g...
[ [ 1, 0, 0.0016, 0.0016, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0031, 0.0016, 0, 0.66, 0.1667, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0047, 0.0016, 0, ...
[ "from module_base import ModuleBase", "from module_mixins import IntrospectModuleMixin", "import module_utils", "import vtk", "import vtkdevide", "import wx", "class histogramSegment(IntrospectModuleMixin, ModuleBase):\n \"\"\"Mooooo! I'm a cow.\n\n $Revision: 1.9 $\n \"\"\"\n\n _gridCols =...
from external import wxPyPlot import gen_utils from module_base import ModuleBase from module_mixins import IntrospectModuleMixin import module_utils try: import Numeric except: import numarray as Numeric import vtk import wx class histogram1D(IntrospectModuleMixin, ModuleBase): """Calculates and sh...
[ [ 1, 0, 0.005, 0.005, 0, 0.66, 0, 924, 0, 1, 0, 0, 924, 0, 0 ], [ 1, 0, 0.0099, 0.005, 0, 0.66, 0.125, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0149, 0.005, 0, 0.66,...
[ "from external import wxPyPlot", "import gen_utils", "from module_base import ModuleBase", "from module_mixins import IntrospectModuleMixin", "import module_utils", "try:\n import Numeric\nexcept:\n import numarray as Numeric", " import Numeric", " import numarray as Numeric", "import vt...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. import cStringIO from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor import wx # wxPython 2.8.8.1 wx.aui bugs severely on GTK. See: # http://trac.wxwidgets.org/ticket/9716 # Until this is fixed, use th...
[ [ 1, 0, 0.0233, 0.0047, 0, 0.66, 0, 764, 0, 1, 0, 0, 764, 0, 0 ], [ 1, 0, 0.0279, 0.0047, 0, 0.66, 0.25, 201, 0, 1, 0, 0, 201, 0, 0 ], [ 1, 0, 0.0326, 0.0047, 0, 0....
[ "import cStringIO", "from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor", "import wx", "if wx.Platform == \"__WXGTK__\":\n from external import PyAUI\n wx.aui = PyAUI\nelse:\n import wx.aui", " from external import PyAUI", " wx.aui = PyAUI", " import wx.aui", ...
# Modified by Francois Malan, LUMC / TU Delft # Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor import wx import wx.lib.inspection import vtk # wxPython 2.8.8.1 wx.aui bugs severely on GTK. See: # ht...
[ [ 1, 0, 0.0175, 0.0029, 0, 0.66, 0, 201, 0, 1, 0, 0, 201, 0, 0 ], [ 1, 0, 0.0205, 0.0029, 0, 0.66, 0.1429, 666, 0, 1, 0, 0, 666, 0, 0 ], [ 1, 0, 0.0234, 0.0029, 0, ...
[ "from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor", "import wx", "import wx.lib.inspection", "import vtk", "if wx.Platform == \"__WXGTK__\":\n from external import PyAUI\n wx.aui = PyAUI\nelse:\n import wx.aui", " from external import PyAUI", " wx.aui = PyAUI", ...
# $Id$ from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import vtkdevide class histogram2D(ScriptedConfigModuleMixin, ModuleBase): """This module takes two inputs and creates a 2D histogram with input 2 vs input 1, i.e. input 1 on x-axis and...
[ [ 1, 0, 0.0238, 0.0079, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0317, 0.0079, 0, 0.66, 0.2, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0397, 0.0079, 0, 0.6...
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "import vtkdevide", "class histogram2D(ScriptedConfigModuleMixin, ModuleBase):\n \"\"\"This module takes two inputs and creates a 2D histogram with input 2\n vs input 1, ...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. # skeleton of an AUI-based viewer module # copy and modify for your own purposes. # set to False for 3D viewer, True for 2D image viewer IMAGE_VIEWER = True # import the frame, i.e. the wx window containing everything impor...
[ [ 14, 0, 0.0364, 0.004, 0, 0.66, 0, 16, 1, 0, 0, 0, 0, 4, 0 ], [ 1, 0, 0.0486, 0.004, 0, 0.66, 0.0909, 940, 0, 1, 0, 0, 940, 0, 0 ], [ 8, 0, 0.0607, 0.004, 0, 0.66,...
[ "IMAGE_VIEWER = True", "import SkeletonAUIViewerFrame", "reload(SkeletonAUIViewerFrame)", "from module_base import ModuleBase", "from module_mixins import IntrospectModuleMixin", "import module_utils", "import os", "import sys", "import traceback", "import vtk", "import wx", "class SkeletonAUI...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. import csv import geometry import glob import os import math from module_base import ModuleBase from module_mixins import IntrospectModuleMixin,\ FileOpenDialogModuleMixin import module_utils import vtk import vtkgdcm...
[ [ 1, 0, 0.0065, 0.0013, 0, 0.66, 0, 312, 0, 1, 0, 0, 312, 0, 0 ], [ 1, 0, 0.0077, 0.0013, 0, 0.66, 0.0526, 486, 0, 1, 0, 0, 486, 0, 0 ], [ 1, 0, 0.009, 0.0013, 0, 0...
[ "import csv", "import geometry", "import glob", "import os", "import math", "from module_base import ModuleBase", "from module_mixins import IntrospectModuleMixin,\\\n FileOpenDialogModuleMixin", "import module_utils", "import vtk", "import vtkgdcm", "import wx", "MAJOR_MARKER_SIZE = 10...
from module_kits.misc_kit.mixins import SubjectMixin import geometry from module_base import ModuleBase from module_mixins import IntrospectModuleMixin import module_utils import Measure2DFrame reload(Measure2DFrame) import vtk import vtktudoss import wx class M2DMeasurementInfo: pass class M2DWidget: """Cla...
[ [ 1, 0, 0.0021, 0.0021, 0, 0.66, 0, 313, 0, 1, 0, 0, 313, 0, 0 ], [ 1, 0, 0.0042, 0.0021, 0, 0.66, 0.0769, 486, 0, 1, 0, 0, 486, 0, 0 ], [ 1, 0, 0.0063, 0.0021, 0, ...
[ "from module_kits.misc_kit.mixins import SubjectMixin", "import geometry", "from module_base import ModuleBase", "from module_mixins import IntrospectModuleMixin", "import module_utils", "import Measure2DFrame", "reload(Measure2DFrame)", "import vtk", "import vtktudoss", "import wx", "class M2DM...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. import comedi_utils reload(comedi_utils) import vtk import vtktudoss from module_kits import vtk_kit import wx ########################################################################### # 2D: # * Checkerboard. # * differe...
[ [ 1, 0, 0.0102, 0.002, 0, 0.66, 0, 286, 0, 1, 0, 0, 286, 0, 0 ], [ 8, 0, 0.0123, 0.002, 0, 0.66, 0.0769, 959, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.0143, 0.002, 0, 0.66,...
[ "import comedi_utils", "reload(comedi_utils)", "import vtk", "import vtktudoss", "from module_kits import vtk_kit", "import wx", "class ComparisonMode:\n def __init__(self, comedi, cfg_dict):\n pass\n\n def disable_vis(self):\n \"\"\"This will be called by CoMedI when it sees that we...
import vtk import wx from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor import external.PyAUI as PyAUI from resources.python import measure2d_panels reload(measure2d_panels) class Measure2DFrame(wx.Frame): def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, ...
[ [ 1, 0, 0.0047, 0.0047, 0, 0.66, 0, 665, 0, 1, 0, 0, 665, 0, 0 ], [ 1, 0, 0.0093, 0.0047, 0, 0.66, 0.1667, 666, 0, 1, 0, 0, 666, 0, 0 ], [ 1, 0, 0.0234, 0.0047, 0, ...
[ "import vtk", "import wx", "from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor", "import external.PyAUI as PyAUI", "from resources.python import measure2d_panels", "reload(measure2d_panels)", "class Measure2DFrame(wx.Frame):\n def __init__(self, parent, id=-1, title=\"\", pos=...
from wxPython._controls import wxLIST_MASK_STATE from wxPython._controls import wxLIST_STATE_SELECTED import os.path # Modified by Francois Malan, LUMC / TU Delft # December 2009 # # based on the SkeletonAUIViewer: # skeleton of an AUI-based viewer module # Copyright (c) Charl P. Botha, TU Delft. # set to False for 3D...
[ [ 1, 0, 0.0007, 0.0007, 0, 0.66, 0, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.0014, 0.0007, 0, 0.66, 0.0588, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.0021, 0.0007, 0, ...
[ "from wxPython._controls import wxLIST_MASK_STATE", "from wxPython._controls import wxLIST_STATE_SELECTED", "import os.path", "IMAGE_VIEWER = False", "import MaskComBinarFrame", "reload(MaskComBinarFrame)", "from module_base import ModuleBase", "from module_mixins import IntrospectModuleMixin", "imp...
from module_base import ModuleBase from module_mixins import IntrospectModuleMixin import module_utils import operator HTML_START = '<html><body>' HTML_END = '</body></html>' def render_actions(lines): ms = '<p><b><ul>%s</ul></b></p>' # this should yield: <li>thing 1\n<li>thing 2\n<li>thing 3 etc bullets ...
[ [ 1, 0, 0.004, 0.004, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0079, 0.004, 0, 0.66, 0.1111, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0119, 0.004, 0, 0.66...
[ "from module_base import ModuleBase", "from module_mixins import IntrospectModuleMixin", "import module_utils", "import operator", "HTML_START = '<html><body>'", "HTML_END = '</body></html>'", "def render_actions(lines):\n ms = '<p><b><ul>%s</ul></b></p>'\n # this should yield: <li>thing 1\\n<li>t...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. class CodeRunner: kits = ['wx_kit', 'vtk_kit'] cats = ['Viewers'] help = \ """CodeRunner facilitates the direct integration of Python code into a DeVIDE network. The top part contains three editor int...
[ [ 3, 0, 0.1193, 0.1929, 0, 0.66, 0, 879, 0, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.0305, 0.0051, 1, 0.32, 0, 190, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 1, 0.0355, 0.0051, 1, 0.32, ...
[ "class CodeRunner:\n kits = ['wx_kit', 'vtk_kit']\n cats = ['Viewers']\n help = \\\n \"\"\"CodeRunner facilitates the direct integration of Python code into a\n DeVIDE network.\n\n The top part contains three editor interfaces: scratch, setup and", " kits = ['wx_kit', 'vtk_kit']", " cats...
#Hacked out of a class contained in Charl Botha's comedi_utils.py #Incorporated edits by by Corine Slagboom & Noeska Smit which formed part of their comedi_utils module, used in their 'Emphysema Viewer' #Final version by Francois Malan (2010-2011) from module_kits.vtk_kit.utils import DVOrientationWidget import o...
[ [ 1, 0, 0.0177, 0.0035, 0, 0.66, 0, 901, 0, 1, 0, 0, 901, 0, 0 ], [ 1, 0, 0.0212, 0.0035, 0, 0.66, 0.25, 616, 0, 1, 0, 0, 616, 0, 0 ], [ 1, 0, 0.0247, 0.0035, 0, 0....
[ "from module_kits.vtk_kit.utils import DVOrientationWidget", "import operator", "import vtk", "import wx", "class OverlaySliceViewer:\n \"\"\"Class for viewing 3D binary masks in a slice-view.\n Supports arbitrary number of overlays in user-definable colours.\n \"\"\"\n\n has_active_slices = Fal...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. # skeleton of an AUI-based viewer module # copy and modify for your own purposes. # set to False for 3D viewer, True for 2D image viewer IMAGE_VIEWER = True MATCH_MODE_PASSTHROUGH = 0 MATCH_MODE_LANDMARK_SS = 1 MATCH_MODE_...
[ [ 14, 0, 0.0175, 0.0019, 0, 0.66, 0, 16, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.0214, 0.0019, 0, 0.66, 0.037, 2, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 0.0233, 0.0019, 0, 0.66,...
[ "IMAGE_VIEWER = True", "MATCH_MODE_PASSTHROUGH = 0", "MATCH_MODE_LANDMARK_SS = 1", "MATCH_MODE_STRINGS = [ \\\n 'Single structure landmarks'\n ]", "COMPARISON_MODE_DATA2M = 0", "COMPARISON_MODE_CHECKERBOARD = 1", "COMPARISON_MODE_DIFFERENCE = 2", "import CoMedIFrame", "reload(CoMedIFra...
# sliceDirections.py copyright (c) 2003 Charl P. Botha <cpbotha@ieee.org> # $Id$ # class encapsulating all instances of the sliceDirection class import gen_utils # the following two lines are only needed during prototyping of the modules # that they import import modules.viewers.slice3dVWRmodules.sliceDirection reloa...
[ [ 1, 0, 0.0077, 0.0015, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0138, 0.0015, 0, 0.66, 0.125, 569, 0, 1, 0, 0, 569, 0, 0 ], [ 8, 0, 0.0154, 0.0015, 0, 0...
[ "import gen_utils", "import modules.viewers.slice3dVWRmodules.sliceDirection", "reload(modules.viewers.slice3dVWRmodules.sliceDirection)", "from modules.viewers.slice3dVWRmodules.sliceDirection import sliceDirection", "from modules.viewers.slice3dVWRmodules.shared import s3dcGridMixin", "import vtk", "i...
# shared.py copyright (c) 2003 Charl P. Botha <cpbotha@ieee.org> # $Id$ # import wx class s3dcGridMixin(object): """ """ def _handlerGridRangeSelect(self, event): """This event handler is a fix for the fact that the row selection in the wxGrid is deliberately broken. It's also ...
[ [ 1, 0, 0.0617, 0.0123, 0, 0.66, 0, 666, 0, 1, 0, 0, 666, 0, 0 ], [ 3, 0, 0.537, 0.9136, 0, 0.66, 1, 347, 0, 2, 0, 0, 186, 0, 20 ], [ 8, 1, 0.1049, 0.0247, 1, 0.43,...
[ "import wx", "class s3dcGridMixin(object):\n \"\"\"\n \"\"\"\n \n def _handlerGridRangeSelect(self, event):\n \"\"\"This event handler is a fix for the fact that the row\n selection in the wxGrid is deliberately broken. It's also\n used to activate and deactivate relevant menubar...
# selectedPoints.py copyright (c) 2003 Charl P. Botha <cpbotha@ieee.org> # $Id$ # from module_kits.misc_kit.mixins import SubjectMixin from modules.viewers.slice3dVWRmodules.shared import s3dcGridMixin import operator import vtk import wx # ------------------------------------------------------------------------- c...
[ [ 1, 0, 0.0094, 0.0019, 0, 0.66, 0, 313, 0, 1, 0, 0, 313, 0, 0 ], [ 1, 0, 0.0112, 0.0019, 0, 0.66, 0.1667, 752, 0, 1, 0, 0, 752, 0, 0 ], [ 1, 0, 0.0131, 0.0019, 0, ...
[ "from module_kits.misc_kit.mixins import SubjectMixin", "from modules.viewers.slice3dVWRmodules.shared import s3dcGridMixin", "import operator", "import vtk", "import wx", "class outputSelectedPoints(list, SubjectMixin):\n \"\"\"class for passing selected points to an output port.\n\n Derived from l...
# implicits.py copyright (c) 2003 Charl P. Botha <cpbotha@ieee.org> # $Id$ import gen_utils from modules.viewers.slice3dVWRmodules.shared import s3dcGridMixin import vtk import wx # ------------------------------------------------------------------------- class implicitInfo: def __init__(self): self.name...
[ [ 1, 0, 0.0053, 0.0013, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0067, 0.0013, 0, 0.66, 0.2, 752, 0, 1, 0, 0, 752, 0, 0 ], [ 1, 0, 0.008, 0.0013, 0, 0.66...
[ "import gen_utils", "from modules.viewers.slice3dVWRmodules.shared import s3dcGridMixin", "import vtk", "import wx", "class implicitInfo:\n def __init__(self):\n self.name = None\n self.type = None\n self.widget = None\n self.bounds = None\n self.function = None", " ...
# dumy __init__ so this directory can function as a package
[]
[]
# dumy __init__ so this directory can function as a package
[]
[]
# dumy __init__ so this directory can function as a package
[]
[]
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. import cStringIO import vtk from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor import wx # wxPython 2.8.8.1 wx.aui bugs severely on GTK. See: # http://trac.wxwidgets.org/ticket/9716 # Until this is fi...
[ [ 1, 0, 0.0135, 0.0027, 0, 0.66, 0, 764, 0, 1, 0, 0, 764, 0, 0 ], [ 1, 0, 0.0162, 0.0027, 0, 0.66, 0.125, 665, 0, 1, 0, 0, 665, 0, 0 ], [ 1, 0, 0.0189, 0.0027, 0, 0...
[ "import cStringIO", "import vtk", "from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor", "import wx", "if wx.Platform == \"__WXGTK__\":\n from external import PyAUI\n wx.aui = PyAUI\nelse:\n import wx.aui", " from external import PyAUI", " wx.aui = PyAUI", " im...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. import cStringIO from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor import wx # wxPython 2.8.8.1 wx.aui bugs severely on GTK. See: # http://trac.wxwidgets.org/ticket/9716 # Until this is fixed, use th...
[ [ 1, 0, 0.0136, 0.0027, 0, 0.66, 0, 764, 0, 1, 0, 0, 764, 0, 0 ], [ 1, 0, 0.0163, 0.0027, 0, 0.66, 0.0526, 201, 0, 1, 0, 0, 201, 0, 0 ], [ 1, 0, 0.019, 0.0027, 0, 0...
[ "import cStringIO", "from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor", "import wx", "if wx.Platform == \"__WXGTK__\":\n from external import PyAUI\n wx.aui = PyAUI\nelse:\n import wx.aui", " from external import PyAUI", " wx.aui = PyAUI", " import wx.aui", ...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. # NOTES: # you can't put the RWI in a StaticBox, it never manages to appear. # mode: add / subtract # tool: new region growing, level set (with existing mask), draw # closed polygon, delete # ARGH. region growing results in...
[ [ 1, 0, 0.194, 0.0037, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.1978, 0.0037, 0, 0.66, 0.1429, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.2015, 0.0037, 0, 0...
[ "from module_base import ModuleBase", "from module_mixins import IntrospectModuleMixin", "import module_utils", "import vtk", "import wx", "class Contour:\n pass", "class Object:\n pass", "class Slicinator(IntrospectModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n Modu...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. from module_kits.vtk_kit.utils import DVOrientationWidget import operator import vtk import wx class SyncSliceViewers: """Class to link a number of CMSliceViewer instances w.r.t. camera. FIXME: consider adding o...
[ [ 1, 0, 0.0115, 0.0023, 0, 0.66, 0, 901, 0, 1, 0, 0, 901, 0, 0 ], [ 1, 0, 0.0138, 0.0023, 0, 0.66, 0.2, 616, 0, 1, 0, 0, 616, 0, 0 ], [ 1, 0, 0.0161, 0.0023, 0, 0.6...
[ "from module_kits.vtk_kit.utils import DVOrientationWidget", "import operator", "import vtk", "import wx", "class SyncSliceViewers:\n \"\"\"Class to link a number of CMSliceViewer instances w.r.t.\n camera.\n\n FIXME: consider adding option to block certain slice viewers from\n participation. I...
# $Id: vtpWRT.py 2401 2006-12-20 20:29:15Z cpbotha $ from module_base import ModuleBase from module_mixins import FilenameViewModuleMixin import module_utils import types class MatlabPointsWriter(FilenameViewModuleMixin, ModuleBase): def __init__(self, module_manager): # call parent constructor M...
[ [ 1, 0, 0.0435, 0.0145, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.058, 0.0145, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0725, 0.0145, 0, 0.6...
[ "from module_base import ModuleBase", "from module_mixins import FilenameViewModuleMixin", "import module_utils", "import types", "class MatlabPointsWriter(FilenameViewModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n\n # call parent constructor\n ModuleBase.__init__(self, m...
# $Id: vtpWRT.py 2401 2006-12-20 20:29:15Z cpbotha $ from module_base import ModuleBase from module_mixins import FilenameViewModuleMixin import module_utils import types class points_writer(FilenameViewModuleMixin, ModuleBase): def __init__(self, module_manager): # call parent constructor Module...
[ [ 1, 0, 0.0462, 0.0154, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0615, 0.0154, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0769, 0.0154, 0, 0....
[ "from module_base import ModuleBase", "from module_mixins import FilenameViewModuleMixin", "import module_utils", "import types", "class points_writer(FilenameViewModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n\n # call parent constructor\n ModuleBase.__init__(self, module...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. # Random development notes: # * SetFileDimensionality(2) if you want multiple slices written from # a single volume # * just generate im%05d.dcm filenames, as many as there are slices # * study / series UIDs are auto generat...
[ [ 1, 0, 0.0558, 0.0051, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0635, 0.0102, 0, 0.66, 0.125, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0711, 0.0051, 0, 0...
[ "from module_base import ModuleBase", "from module_mixins import \\\n ScriptedConfigModuleMixin", "import module_utils", "import os", "import vtk", "import vtkgdcm", "import wx # need this for wx.SAVE", "RADIOBOX_IDX, DIR_IDX, FILE_IDX = 0, 1, 2", "class DICOMWriter(ScriptedConfigModuleMixin, Mo...
# $Id$ from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import wx # need this for wx.SAVE class metaImageWRT(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # call parent constructor ModuleBase.__ini...
[ [ 1, 0, 0.0341, 0.0114, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0455, 0.0114, 0, 0.66, 0.2, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0568, 0.0114, 0, 0.6...
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "import wx # need this for wx.SAVE", "class metaImageWRT(ScriptedConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n\n # call parent constructor\n...
class batchConverter: kits = ['vtk_kit', 'wx_kit'] cats = ['Readers','Writers','Converters'] keywords = ['batch','convert','read','write','vti','mha','gipl'] help = """Batch converts image volume files from one type to another. Source and target types can be VTK ImageData (.vti), MetaImage (.mha), ...
[ [ 3, 0, 0.0787, 0.1496, 0, 0.66, 0, 124, 0, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.0157, 0.0079, 1, 0.81, 0, 190, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 1, 0.0236, 0.0079, 1, 0.81, ...
[ "class batchConverter:\n kits = ['vtk_kit', 'wx_kit']\n cats = ['Readers','Writers','Converters']\n keywords = ['batch','convert','read','write','vti','mha','gipl']\n help = \"\"\"Batch converts image volume files from one type to another.\n Source and target types can be VTK ImageData (.vti), MetaIm...
# BatchConverter.py by Francois Malan - 2010-03-05. Updated 2011-12-11# import os.path from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import wx import os import vtk import itk class batchConverter( ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manag...
[ [ 1, 0, 0.0071, 0.0024, 0, 0.66, 0, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 1, 0, 0.0095, 0.0024, 0, 0.66, 0.1429, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0118, 0.0024, 0, 0....
[ "import os.path", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import wx", "import os", "import vtk", "import itk", "class batchConverter(\n ScriptedConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n # initialise our ...
# dumy __init__ so this directory can function as a package
[]
[]
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class nbhSeedConnect(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, ...
[ [ 1, 0, 0.0362, 0.0072, 0, 0.66, 0, 77, 0, 1, 0, 0, 77, 0, 0 ], [ 1, 0, 0.0435, 0.0072, 0, 0.66, 0.25, 452, 0, 1, 0, 0, 452, 0, 0 ], [ 1, 0, 0.0507, 0.0072, 0, 0.66...
[ "import itk", "import module_kits.itk_kit as itk_kit", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "class nbhSeedConnect(ScriptedConfigModuleMixin, ModuleBase):\n \n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class nbCurvesLevelSet(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, mo...
[ [ 1, 0, 0.0459, 0.0092, 0, 0.66, 0, 77, 0, 1, 0, 0, 77, 0, 0 ], [ 1, 0, 0.055, 0.0092, 0, 0.66, 0.25, 452, 0, 1, 0, 0, 452, 0, 0 ], [ 1, 0, 0.0642, 0.0092, 0, 0.66,...
[ "import itk", "import module_kits.itk_kit as itk_kit", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "class nbCurvesLevelSet(ScriptedConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n\n ModuleBase.__init__(self, module_manager)\...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class curvatureFlowDenoising(ScriptedConfigModuleMixin, ModuleBase): def __init_...
[ [ 1, 0, 0.0602, 0.012, 0, 0.66, 0, 77, 0, 1, 0, 0, 77, 0, 0 ], [ 1, 0, 0.0723, 0.012, 0, 0.66, 0.25, 452, 0, 1, 0, 0, 452, 0, 0 ], [ 1, 0, 0.0843, 0.012, 0, 0.66, ...
[ "import itk", "import module_kits.itk_kit as itk_kit", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "class curvatureFlowDenoising(ScriptedConfigModuleMixin, ModuleBase):\n \n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_m...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class curvatureAnisotropicDiffusion(ScriptedConfigModuleMixin, ModuleBase): def __in...
[ [ 1, 0, 0.0588, 0.0118, 0, 0.66, 0, 77, 0, 1, 0, 0, 77, 0, 0 ], [ 1, 0, 0.0706, 0.0118, 0, 0.66, 0.25, 452, 0, 1, 0, 0, 452, 0, 0 ], [ 1, 0, 0.0824, 0.0118, 0, 0.66...
[ "import itk", "import module_kits.itk_kit as itk_kit", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "class curvatureAnisotropicDiffusion(ScriptedConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n ModuleBase.__init__(self, modul...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class sigmoid(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manag...
[ [ 1, 0, 0.0595, 0.0119, 0, 0.66, 0, 77, 0, 1, 0, 0, 77, 0, 0 ], [ 1, 0, 0.0714, 0.0119, 0, 0.66, 0.25, 452, 0, 1, 0, 0, 452, 0, 0 ], [ 1, 0, 0.0833, 0.0119, 0, 0.66...
[ "import itk", "import module_kits.itk_kit as itk_kit", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "class sigmoid(ScriptedConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\n se...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class symmetricDemonsRegistration(ScriptedConfigModuleMixin, ModuleBase): def __init_...
[ [ 1, 0, 0.045, 0.009, 0, 0.66, 0, 77, 0, 1, 0, 0, 77, 0, 0 ], [ 1, 0, 0.0541, 0.009, 0, 0.66, 0.25, 452, 0, 1, 0, 0, 452, 0, 0 ], [ 1, 0, 0.0631, 0.009, 0, 0.66, ...
[ "import itk", "import module_kits.itk_kit as itk_kit", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "class symmetricDemonsRegistration(ScriptedConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n \n ModuleBase.__init__(self,...
# $Id$ from genMixins import subjectMixin, updateCallsExecuteModuleMixin class transformStackClass(list, subjectMixin, updateCallsExecuteModuleMixin): def __init__(self, d3Module): # call base ctors subjectMixin.__init__(self) update...
[ [ 1, 0, 0.1765, 0.0588, 0, 0.66, 0, 968, 0, 2, 0, 0, 968, 0, 0 ], [ 3, 0, 0.6176, 0.7059, 0, 0.66, 1, 25, 0, 2, 0, 0, 430, 0, 4 ], [ 2, 1, 0.6176, 0.2353, 1, 0.52, ...
[ "from genMixins import subjectMixin, updateCallsExecuteModuleMixin", "class transformStackClass(list,\n subjectMixin,\n updateCallsExecuteModuleMixin):\n \n def __init__(self, d3Module):\n # call base ctors\n subjectMixin.__init__(self)\n ...
# dumy __init__ so this directory can function as a package
[]
[]
# $Id$ from genMixins import subjectMixin, updateCallsExecuteModuleMixin class imageStackClass(list, subjectMixin, updateCallsExecuteModuleMixin): def __init__(self, d3Module): # call base ctors subjectMixin.__init__(self) updateCallsExecute...
[ [ 1, 0, 0.1765, 0.0588, 0, 0.66, 0, 968, 0, 2, 0, 0, 968, 0, 0 ], [ 3, 0, 0.6176, 0.7059, 0, 0.66, 1, 554, 0, 2, 0, 0, 430, 0, 4 ], [ 2, 1, 0.6176, 0.2353, 1, 0.09,...
[ "from genMixins import subjectMixin, updateCallsExecuteModuleMixin", "class imageStackClass(list,\n subjectMixin,\n updateCallsExecuteModuleMixin):\n \n def __init__(self, d3Module):\n # call base ctors\n subjectMixin.__init__(self)\n updateCall...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk from module_base import ModuleBase import module_kits.itk_kit from module_mixins import ScriptedConfigModuleMixin class gradientAnisotropicDiffusion(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, mo...
[ [ 1, 0, 0.0602, 0.012, 0, 0.66, 0, 77, 0, 1, 0, 0, 77, 0, 0 ], [ 1, 0, 0.0723, 0.012, 0, 0.66, 0.25, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0843, 0.012, 0, 0.66, ...
[ "import itk", "from module_base import ModuleBase", "import module_kits.itk_kit", "from module_mixins import ScriptedConfigModuleMixin", "class gradientAnisotropicDiffusion(ScriptedConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\n...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class cannyEdgeDetection(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, m...
[ [ 1, 0, 0.0397, 0.0079, 0, 0.66, 0, 77, 0, 1, 0, 0, 77, 0, 0 ], [ 1, 0, 0.0476, 0.0079, 0, 0.66, 0.25, 452, 0, 1, 0, 0, 452, 0, 0 ], [ 1, 0, 0.0556, 0.0079, 0, 0.66...
[ "import itk", "import module_kits.itk_kit as itk_kit", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "class cannyEdgeDetection(ScriptedConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class demonsRegistration(ScriptedConfigModuleMixin, ModuleBase): def __init__(se...
[ [ 1, 0, 0.0446, 0.0089, 0, 0.66, 0, 77, 0, 1, 0, 0, 77, 0, 0 ], [ 1, 0, 0.0536, 0.0089, 0, 0.66, 0.25, 452, 0, 1, 0, 0, 452, 0, 0 ], [ 1, 0, 0.0625, 0.0089, 0, 0.66...
[ "import itk", "import module_kits.itk_kit as itk_kit", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "class demonsRegistration(ScriptedConfigModuleMixin, ModuleBase):\n \n def __init__(self, module_manager):\n \n ModuleBase.__init__(self, mo...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import copy import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import wx class ITKReader(ScriptedConfigModuleMixin, ModuleBase): def __i...
[ [ 1, 0, 0.0333, 0.0067, 0, 0.66, 0, 739, 0, 1, 0, 0, 739, 0, 0 ], [ 1, 0, 0.04, 0.0067, 0, 0.66, 0.1667, 77, 0, 1, 0, 0, 77, 0, 0 ], [ 1, 0, 0.0467, 0.0067, 0, 0.66...
[ "import copy", "import itk", "import module_kits.itk_kit as itk_kit", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import wx", "class ITKReader(ScriptedConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n # call parent constru...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class gaussianConvolve(ScriptedConfigModuleMixin, ModuleBase): _orders = ['Zero', 'F...
[ [ 1, 0, 0.0435, 0.0087, 0, 0.66, 0, 77, 0, 1, 0, 0, 77, 0, 0 ], [ 1, 0, 0.0522, 0.0087, 0, 0.66, 0.25, 452, 0, 1, 0, 0, 452, 0, 0 ], [ 1, 0, 0.0609, 0.0087, 0, 0.66...
[ "import itk", "import module_kits.itk_kit as itk_kit", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "class gaussianConvolve(ScriptedConfigModuleMixin, ModuleBase):\n\n _orders = ['Zero', 'First', 'Second']\n \n def __init__(self, module_manager):\n ...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. class ITKtoVTK: kits = ['itk_kit'] cats = ['Insight'] help = """Use this module to convert from any ITK image type to the corresponding VTK type. """ class VTKtoITK: kits = ['itk_kit'] cats = ['Ins...
[ [ 3, 0, 0.0209, 0.0168, 0, 0.66, 0, 54, 0, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.0168, 0.0028, 1, 0.6, 0, 190, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 1, 0.0196, 0.0028, 1, 0.6, ...
[ "class ITKtoVTK:\n kits = ['itk_kit']\n cats = ['Insight']\n help = \"\"\"Use this module to convert from any ITK image type to\n the corresponding VTK type.\n \"\"\"", " kits = ['itk_kit']", " cats = ['Insight']", " help = \"\"\"Use this module to convert from any ITK image type to\n ...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import vtk class VTKtoITKF3(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(se...
[ [ 1, 0, 0.0588, 0.0118, 0, 0.66, 0, 77, 0, 1, 0, 0, 77, 0, 0 ], [ 1, 0, 0.0706, 0.0118, 0, 0.66, 0.25, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0824, 0.0118, 0, 0.66...
[ "import itk", "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import vtk", "class VTKtoITKF3(NoConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\n\n # setup the pipeline\n self...
# dumy __init__ so this directory can function as a package
[]
[]
# dumy __init__ so this directory can function as a package
[]
[]
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class levelSetMotionRegistration(ScriptedConfigModuleMixin, ModuleBase): def __init__...
[ [ 1, 0, 0.0373, 0.0075, 0, 0.66, 0, 77, 0, 1, 0, 0, 77, 0, 0 ], [ 1, 0, 0.0448, 0.0075, 0, 0.66, 0.25, 452, 0, 1, 0, 0, 452, 0, 0 ], [ 1, 0, 0.0522, 0.0075, 0, 0.66...
[ "import itk", "import module_kits.itk_kit as itk_kit", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "class levelSetMotionRegistration(ScriptedConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n \n ModuleBase.__init__(self, ...
# dumy __init__ so this directory can function as a package
[]
[]
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class gvfgac(ScriptedConfigModuleMixin, ModuleBase): """Module for performing Gradie...
[ [ 1, 0, 0.0357, 0.0071, 0, 0.66, 0, 77, 0, 1, 0, 0, 77, 0, 0 ], [ 1, 0, 0.0429, 0.0071, 0, 0.66, 0.25, 452, 0, 1, 0, 0, 452, 0, 0 ], [ 1, 0, 0.05, 0.0071, 0, 0.66, ...
[ "import itk", "import module_kits.itk_kit as itk_kit", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "class gvfgac(ScriptedConfigModuleMixin, ModuleBase):\n\n \"\"\"Module for performing Gradient Vector Flow-driven Geodesic Active\n Contour-based segmenta...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import NoConfigModuleMixin class discreteLaplacian(NoConfigModuleMixin, ModuleBase): def __init__(self, module_ma...
[ [ 1, 0, 0.082, 0.0164, 0, 0.66, 0, 77, 0, 1, 0, 0, 77, 0, 0 ], [ 1, 0, 0.0984, 0.0164, 0, 0.66, 0.25, 452, 0, 1, 0, 0, 452, 0, 0 ], [ 1, 0, 0.1148, 0.0164, 0, 0.66,...
[ "import itk", "import module_kits.itk_kit as itk_kit", "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "class discreteLaplacian(NoConfigModuleMixin, ModuleBase):\n \n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\n\n ...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class tpgac(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manag...
[ [ 1, 0, 0.0413, 0.0083, 0, 0.66, 0, 77, 0, 1, 0, 0, 77, 0, 0 ], [ 1, 0, 0.0496, 0.0083, 0, 0.66, 0.25, 452, 0, 1, 0, 0, 452, 0, 0 ], [ 1, 0, 0.0579, 0.0083, 0, 0.66...
[ "import itk", "import module_kits.itk_kit as itk_kit", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "class tpgac(ScriptedConfigModuleMixin, ModuleBase):\n\n\n def __init__(self, module_manager):\n\n ModuleBase.__init__(self, module_manager)\n ...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. from typeModules.imageStackClass import imageStackClass import fixitk as itk from module_base import ModuleBase from module_mixins import FileOpenDialogModuleMixin import module_utils import wx class imageStackRDR(ModuleBase,...
[ [ 1, 0, 0.0325, 0.0065, 0, 0.66, 0, 855, 0, 1, 0, 0, 855, 0, 0 ], [ 1, 0, 0.039, 0.0065, 0, 0.66, 0.1667, 362, 0, 1, 0, 0, 362, 0, 0 ], [ 1, 0, 0.0455, 0.0065, 0, 0...
[ "from typeModules.imageStackClass import imageStackClass", "import fixitk as itk", "from module_base import ModuleBase", "from module_mixins import FileOpenDialogModuleMixin", "import module_utils", "import wx", "class imageStackRDR(ModuleBase, FileOpenDialogModuleMixin):\n \"\"\"Loads a list of imag...
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtktud class imageEigenvectors(ModuleBase, NoConfigModuleMixin): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) ...
[ [ 1, 0, 0.0143, 0.0143, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0286, 0.0143, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0429, 0.0143, 0, 0.6...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import module_utils", "import vtktud", "class imageEigenvectors(ModuleBase, NoConfigModuleMixin):\n\n def __init__(self, module_manager):\n # initialise our base class\n ModuleBase....
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtktud class imageGradientStructureTensor(ModuleBase, NoConfigModuleMixin): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_...
[ [ 1, 0, 0.0143, 0.0143, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0286, 0.0143, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0429, 0.0143, 0, 0.6...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import module_utils", "import vtktud", "class imageGradientStructureTensor(ModuleBase, NoConfigModuleMixin):\n\n def __init__(self, module_manager):\n # initialise our base class\n ...
from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk class testModule(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) # we'll be playing ...
[ [ 1, 0, 0.0159, 0.0159, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0317, 0.0159, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0476, 0.0159, 0, 0....
[ "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import module_utils", "import vtk", "class testModule(NoConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n # initialise our base class\n ModuleBase.__init__(self, module_manager)\n...
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtktud class imageCurvature(ModuleBase, NoConfigModuleMixin): """Calculates image curvature with VTKTUD vtkImageCurvature filter. You need 8 inputs, and in the following sequence: d...
[ [ 1, 0, 0.0123, 0.0123, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0247, 0.0123, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.037, 0.0123, 0, 0.66...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import module_utils", "import vtktud", "class imageCurvature(ModuleBase, NoConfigModuleMixin):\n \"\"\"Calculates image curvature with VTKTUD vtkImageCurvature filter.\n \n You need 8 input...