Пример #1
0
 def testReplaceDatasetsFrom(self):
     f = h5py.File(self.data_h5, mode='r')
     f2 = h5py.File(self.data2_h5, mode='r')
     try:
         widget = CustomNxdataWidget()
         model = widget.model()
         dataset = f["arrays/integers"]
         model.createFromSignal(dataset)
         widget.replaceDatasetsFrom(f, f2)
     finally:
         model.clear()
         f.close()
         f2.close()
Пример #2
0
 def testReplaceDatasetsFrom(self):
     f = h5py.File(os.path.join(_tmpDirectory, "data.h5"))
     f2 = h5py.File(os.path.join(_tmpDirectory, "data2.h5"))
     try:
         widget = CustomNxdataWidget()
         model = widget.model()
         dataset = f["arrays/integers"]
         model.createFromSignal(dataset)
         widget.replaceDatasetsFrom(f, f2)
     finally:
         model.clear()
         f.close()
         f2.close()
Пример #3
0
 def testReplaceDatasetsFrom(self):
     f = h5py.File(os.path.join(_tmpDirectory, "data.h5"))
     f2 = h5py.File(os.path.join(_tmpDirectory, "data2.h5"))
     try:
         widget = CustomNxdataWidget()
         model = widget.model()
         dataset = f["arrays/integers"]
         model.createFromSignal(dataset)
         widget.replaceDatasetsFrom(f, f2)
     finally:
         model.clear()
         f.close()
         f2.close()