本文整理匯總了Python中cyclopean_instrument.CyclopeanInstrument.save方法的典型用法代碼示例。如果您正苦於以下問題:Python CyclopeanInstrument.save方法的具體用法?Python CyclopeanInstrument.save怎麽用?Python CyclopeanInstrument.save使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類cyclopean_instrument.CyclopeanInstrument
的用法示例。
在下文中一共展示了CyclopeanInstrument.save方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: save
# 需要導入模塊: from cyclopean_instrument import CyclopeanInstrument [as 別名]
# 或者: from cyclopean_instrument.CyclopeanInstrument import save [as 別名]
def save(self, meta=""):
CyclopeanInstrument.save(self, meta)
from wp_toolbox.qtlab_data import save
save(self.get_name(), meta, x__x__um=self._x, y__y__um=self._y,
z__counts__Hz=self._data['countrates'])
示例2: save
# 需要導入模塊: from cyclopean_instrument import CyclopeanInstrument [as 別名]
# 或者: from cyclopean_instrument.CyclopeanInstrument import save [as 別名]
def save(self, meta=""):
CyclopeanInstrument.save(self, meta)
# NOTE a test of hdf5 data
dat = h5.HDF5Data(name=self.get_name())
dat.create_dataset('x', data=self._x)
dat.create_dataset('y', data=self._y)
dat.create_dataset('countrate', data=self._data['countrates'])
dat.close()
示例3: save
# 需要導入模塊: from cyclopean_instrument import CyclopeanInstrument [as 別名]
# 或者: from cyclopean_instrument.CyclopeanInstrument import save [as 別名]
def save(self, meta=""):
CyclopeanInstrument.save(self, meta)
import qt
qt.mstart()
data = qt.Data(name='dummy 2D scan')
data.add_coordinate('x [um]')
data.add_coordinate('y [um]')
data.add_value('counts [Hz]')
data.create_file()
for i in range(self._xsteps):
for j in range(self._ysteps):
data.add_data_point(self._x[i], self._y[j], self._data[j,i])
data.new_block()
data.close_file()
qt.mend()
示例4: save
# 需要導入模塊: from cyclopean_instrument import CyclopeanInstrument [as 別名]
# 或者: from cyclopean_instrument.CyclopeanInstrument import save [as 別名]
def save(self, meta=""): # inherited doesn't do any saving. Implement.
CyclopeanInstrument.save(self, meta)
return
示例5: save
# 需要導入模塊: from cyclopean_instrument import CyclopeanInstrument [as 別名]
# 或者: from cyclopean_instrument.CyclopeanInstrument import save [as 別名]
def save(self, meta=""):
CyclopeanInstrument.save(self, meta)