Skip to content

Commit

Permalink
examples/ccdb_run2time.py add to json view {s,e}tf {s,e}ox
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansev committed Oct 15, 2024
1 parent 3913852 commit 148868a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/ccdb_run2time.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,23 @@
r_info = { 'run': r,
'sor': run_info['objects'][0]['SOR'], 'eor': run_info['objects'][0]['EOR'],
'sor_nice': sor_nice, 'eor_nice': eor_nice}

if 'STF' in run_info['objects'][0]:
r_info['stf'] = run_info['objects'][0]['STF']
r_info['stf_nice'] = unixtime2local(run_info['objects'][0]['STF'])

if 'ETF' in run_info['objects'][0]:
r_info['etf'] = run_info['objects'][0]['ETF']
r_info['etf_nice'] = unixtime2local(run_info['objects'][0]['ETF'])

if 'SOX' in run_info['objects'][0]:
r_info['sox'] = run_info['objects'][0]['SOX']
r_info['sox_nice'] = unixtime2local(run_info['objects'][0]['SOX'])

if 'EOX' in run_info['objects'][0]:
r_info['eox'] = run_info['objects'][0]['EOX']
r_info['eox_nice'] = unixtime2local(run_info['objects'][0]['EOX'])

rez_list.append(r_info)

# rezults presentation
Expand Down

0 comments on commit 148868a

Please sign in to comment.