def _loadFile(self): return _loader_factory.getData(self.name, self.load_metadata, None)
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,
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,
def getSFH(self): return LoaderFactory.getData(self.filename, None)
def getSFH(self): return LoaderFactory.getData(self.filename, None);