def testRemoveDatasetsFrom(self): f = h5py.File(self.data_h5, mode='r') try: widget = CustomNxdataWidget() model = widget.model() dataset = f["arrays/integers"] model.createFromSignal(dataset) widget.removeDatasetsFrom(f) finally: model.clear() f.close()
def testRemoveDatasetsFrom(self): f = h5py.File(os.path.join(_tmpDirectory, "data.h5")) try: widget = CustomNxdataWidget() model = widget.model() dataset = f["arrays/integers"] model.createFromSignal(dataset) widget.removeDatasetsFrom(f) finally: model.clear() f.close()
def testRemoveDatasetsFrom(self): f = h5py.File(os.path.join(_tmpDirectory, "data.h5")) try: widget = CustomNxdataWidget() model = widget.model() dataset = f["arrays/integers"] model.createFromSignal(dataset) widget.removeDatasetsFrom(f) finally: model.clear() f.close()