1302ph5.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:PH5 作者: PIC-IRIS 项目源码 文件源码
def update_index_t_info (starttime, samples, sps) :
    global DAS_INFO
    ph5file = EXREC.filename
    ph5path = '/Experiment_g/Receivers_g/' + EXREC.ph5_g_receivers.current_g_das._v_name
    das = ph5path[32:]
    stoptime = starttime + (float (samples) / float (sps))
    di = Index_t_Info (das, ph5file, ph5path, starttime, stoptime)
    if not DAS_INFO.has_key (das) :
        DAS_INFO[das] = []

    DAS_INFO[das].append (di)
    logging.info ("DAS: {0} File: {1} First Sample: {2} Last Sample: {3}".format (das, ph5file, time.ctime (starttime), time.ctime (stoptime)))
    #startms, startsecs = math.modf (starttime)
    #startms = int (startms * 1000.); startsecs = int (startsecs)
    #stopms, stopsecs = math.modf (stoptime)
    #stopms = int (stopms * 1000.); stopsecs = int (stopsecs)
    #ptimestart = tdoy.epoch2PasscalTime (startsecs, startms)
    #ptimestop  = tdoy.epoch2PasscalTime (stopsecs, stopms)
    #print ph5file, ph5path, ptimestart, ptimestop

#   YYY   YYY
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号