本文整理汇总了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)