Did I find the right examples for you? yes no

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)

src/e/m/emen2-2.2b7/emen2/exts/em/views/em.py   emen2(Download)
    def convert(self, name, format, normalize=False):
        import EMAN2
 
        if format not in ['tif', 'tiff', 'tif8', 'mrc', 'hdf', 'jpg', 'jpeg', 'png']:
            raise ValueError, "Invalid format: %s"%format

src/e/m/emen2-2.2b7/emen2/exts/em/handlers.py   emen2(Download)
# EMAN2 can only be imported in the main thread.
try:
    import EMAN2
    # We need to steal these handlers back from EMAN2...
    signal.signal(2, signal.SIG_DFL)

src/a/r/arachnid-0.1.7/arachnid/core/image/eman2_utility.py   arachnid(Download)
 
try:
    import EMAN2
    import utilities
    import fundamentals

src/e/m/emdash-2.2b5/emdash/emhandlers.py   emdash(Download)
# EMAN2 can only be IMPORTED BY MAIN THREAD.
try:
    import EMAN2
except Exception, e:
    emdash.log.error("Couldn't load EMAN2 to read file: %s"%filename, exception=e)