def arpes_data():
    plugin_manager.collect_plugins()
    required_task = next(filter(lambda task: task.name=='application/x-fits', plugin_manager._tasks))
    plugin_manager._load_plugin(required_task)
    plugin_manager._instantiate_plugin(required_task)
    # FIXME: don't rely on absolute file path here!
    catalog = load_header(['C:\\Users\\LBL\\PycharmProjects\\merged-repo\\Xi-cam.spectral\\xicam\\spectral\\ingestors\\20161214_00034.fits'])
    data = project_arpes(catalog)
    return data
Ejemplo n.º 2
0
def ir_stxm_data():
    plugin_manager.collect_plugins()
    required_task = next(filter(lambda task: task.name == 'application/x-hdf5', plugin_manager._tasks))
    plugin_manager._load_plugin(required_task)
    plugin_manager._instantiate_plugin(required_task)
    catalog = load_header([
                              'C:\\Users\\LBL\\PycharmProjects\\merged-repo\\ir_stxm.h5'])
    data = project_nxstxm(catalog)
    return data
Ejemplo n.º 3
0
 def open(self, _):
     indexes = self.selectionModel().selectedRows()
     if len(indexes) == 1:
         path = os.path.join(self.model().config["path"], self.model().data(indexes[0], Qt.DisplayRole).value())
         if self.model().isdir(indexes[0]):
             self.model().config["path"] = path
             self.sigURIChanged.emit()
             return
     uris = [self.model().pull(index) for index in indexes]
     self.sigOpen.emit(load_header(uris=uris))
Ejemplo n.º 4
0
def cosmic_data():
    plugin_manager.collect_plugins()
    required_task = next(filter(lambda task: task.name == 'application/x-cxi', plugin_manager._tasks))
    plugin_manager._load_plugin(required_task)
    plugin_manager._instantiate_plugin(required_task)
    catalog = load_header([
                              'C:\\Users\\LBL\\PycharmProjects\\merged-repo\\NS_200805056.cxi'])

    intents = project_nxCXI_ptycho(catalog)
    data = intents[0].image
    return data.transpose('y (nm)', 'x (nm)', 'E (eV)')
Ejemplo n.º 5
0
def catalog():
    return load_header([
        "C:\\Users\\LBL\\PycharmProjects\\merged-repo\\Xi-cam.NCEM\\tests\\twoDatasets.emd"
    ])
Ejemplo n.º 6
0
 def getHeader(self, indexes):
     uris = [self.filePath(index) for index in indexes]
     return load_header(uris=uris)