示例#1
0
 def _loadFile(self):
     return _loader_factory.getData(self.name, self.load_metadata, None)
示例#2
0
            return _loader_factory.getData(self.name, self.load_metadata, None)
    
        def _setLoadMetadata(self, load_metadata):
            pass

# register extra loaders as workaround for Jython not being OSGI
import os as _os
_lfe = _os.environ.get("LOADER_FACTORY_EXTENSIONS")
if _lfe:
    _extensions = _lfe.split("|")
    import java.lang.Class as _Class
    for e in _extensions:
        if e:
            bits = e.split(":")
            if bits[2] == "0":
                _loader_factory.registerLoader(bits[0], _Class.forName(bits[1]), 0)
            else:
                _loader_factory.registerLoader(bits[0], _Class.forName(bits[1]))

input_formats = { "png": PNGLoader, "gif": ImageLoader,
               "jpeg": JPEGLoader,
               "tiff": TIFFLoader,
               "adsc": ADSCLoader, "img": ADSCLoader,
               "cbf": CBFLoader, "crys": CrysLoader,
               "mar": MARLoader, "mccd": MARLoader,
               "mar3450": MAR345Loader, "pck3450": MAR345Loader,
               "pil": PilLoader,
               "srs": SRSLoader,
               "binary": BinaryLoader, "xmap": XMapLoader,
               "npy": NumPyLoader,
               "dls": DLSLoader,
示例#3
0
 def _loadFile(self):
     return _loader_factory.getData(self.name, self.load_metadata, None)
示例#4
0
    def _setLoadMetadata(self, load_metadata):
        pass


# register extra loaders as workaround for Jython not being OSGI
import os as _os
_lfe = _os.environ.get("LOADER_FACTORY_EXTENSIONS")
if _lfe:
    _extensions = _lfe.split("|")
    import java.lang.Class as _Class
    for e in _extensions:
        if e:
            bits = e.split(":")
            if bits[2] == "0":
                _loader_factory.registerLoader(bits[0],
                                               _Class.forName(bits[1]), 0)
            else:
                _loader_factory.registerLoader(bits[0],
                                               _Class.forName(bits[1]))

input_formats = {
    "png": PNGLoader,
    "gif": ImageLoader,
    "jpeg": JPEGLoader,
    "tiff": TIFFLoader,
    "adsc": ADSCLoader,
    "img": ADSCLoader,
    "cbf": CBFLoader,
    "crys": CrysLoader,
    "mar": MARLoader,
    "mccd": MARLoader,
示例#5
0
 def getSFH(self):
     return LoaderFactory.getData(self.filename, None)
示例#6
0
	def getSFH(self):
		return LoaderFactory.getData(self.filename, None);