def load_data(self): """ Used to load Layer data""" self.pbar.setMaximum(100) self.pbar.setValue(0) dtmp = ir.ImportData() tmp = dtmp.settings() if tmp is False: return None data = dtmp.outdata['Raster'] data[0].data = data[0].data data[0].data = data[0].data[::-1] # need this reversed self.pbar.setValue(100) return data[0]
def import_data(self): """ Imports data""" fnc = iodefs.ImportData(self.parent) self.parent.item_insert("Io", "Import Data", fnc)
def import_data(self): """Import data.""" fnc = iodefs.ImportData(self.parent) self.parent.item_insert('Io', 'Import Data', fnc)