Differences between revisions 52 and 53
Revision 52 as of 2021-06-21 18:21:47
Size: 6785
Comment:
Revision 53 as of 2022-02-20 02:49:34
Size: 6930
Comment:
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
 * [[http://gwwiki.icrr.u-tokyo.ac.jp/JGWwiki/KAGRA/Subgroups/PEM/SummaryPage/How_to_write_configuration_file|Minimum manual to edit ini file]]

LIGO SummaryPage

How to update

How to test your updated ini files.

  • Login to k1sum0.
  • Check on the test directory or your personal directory that your ini file is working well or not before applying your update.
    k1sum0> cd /home/controls/public_html/test-summary
    ### Edit configuration file
  • Minimum manual to edit ini file

  • Activate conda environment
    k1sum0> conda activate ligo-summary-3.7
    (ligo-summary-3.7) k1sum0>
  • Set the name of configuration file to run_test.sh script
    ### Modify the following line of run_test.sh
    INIFILE='k1global.ini,your_ini_file.ini'
  • Execute the script
    (ligo-summary-3.7) k1sum0> ./run_test.sh
  • When your ini file is working well, you can see the message "All done. Thank you." on the console, and see the result on http://k1sum0/~controls/test-summary/summary1/

How to add a new ini file or apply your update.

  • Check your ini file is working well!
  • Before you upload ini file, please contact to DetChar group.

  • Put your ini file in ${HOME}/etc/summary/configurations/k1/

    • k1sum0> cd /home/controls/public_html/test-summary
      k1sum0> cp -i k1foo.ini /home/controls/etc/summary/configurations/k1/

How to include Omicron trigger

  • Omicron is running on k1sum1 by crontab regularly.

  • Edit the configuration for Omicron on k1sum1:/users/DET/tools/Omicron/Parameter/.

  • As a example to include Omicron trigger for summary page, see the ini file of k1detchar.ini

  • Yuzurihara modified the gwsumm code on k1sum0 to replace ligoDV and Pastavi, because ligoDV is not working for KAGRA data of full frame.

    • --- /home/controls/bin/miniconda2/envs/ligo-summary-3.7/lib/python3.7/site-packages/gwsumm/html/html5.py_bak    2021-06-19 04:55:43.850636519 +0900
      +++ /home/controls/bin/miniconda2/envs/ligo-summary-3.7/lib/python3.7/site-packages/gwsumm/html/html5.py        2021-06-19 07:11:10.715461960 +0900
      @@ -152,23 +152,22 @@ def comments_box(name, identifier=None,
      
      
       def ldvw_qscan(channel, time, fmin=10, fmax='inf', qmin=4, qmax=100):
      -    """Generate a Q-scan through LIGO DataViewer Web (LDVW)
      +    """Generate a Q-scan through Pastavi
           """
           channel = str(channel)
           if isinstance(time, (tuple, list)):
               label = 'Launch omega scans'
               title = 'Batch-process omega scans of the loudest triggers via LDVW'
               times = '&'.join('wdq_gps=' + str(t) for t in time)
      -        query = ('Wdq?submitAct=go&wdq_ifo=%s&wdq_cmap=viridis&%s&'
      -                 'wdq_prog=py-Omega&goBtn=goBtn') % (channel[:2], times)
      +        query = ('?channel=%s') % (channel[:2])
           else:
      -        label = 'Q-scan'
      -        title = 'Q-scan {0} at {1} via LDVW'.format(channel, time)
      -        query = ('view?act=doplot&chanName={0}&doQxfrm=yes&strtTime={1}&'
      -                 '&qxfrm_pltfrq={2} {3}&qxfrm_srchqrng={4} {5}&'
      -                 'qxfrm_plttimes=0.5 2 8').format(
      -                     channel, time, fmin, fmax, qmin, qmax)
      -    uri = 'https://ldvw.ligo.caltech.edu/ldvw/{0}'.format(query)
      +        label = 'Pastavi'
      +        title = 'Q-Transform {0} at {1} via Pastavi'.format(channel, time)
      +        gps_beg=(str)(int(float(time)-5))
      +        gps_end=(str)(int(float(time)+5))
      +        query = ('?channel={0}&gps_beg={1}&gps_end={2}&TimeSeries=checked&Spectrogram=checked&'
      +                 'WhitenedSpectrogram=checked&Q-Transform=checked&fftlength_Spectrogram=0.05').format(channel, gps_beg, gps_end)
      +    uri = 'http://172.16.34.76/past_data_viewer/index_sngl_channel.html{0}'.format(query)
           return markup.oneliner.a(
               label, href=uri, target='_blank', rel='external',
               class_='btn btn-outline-secondary btn-sm', title=title)

Q&A

  • All pages are not updated in automatically.

    • Please contact TY.
  • A part of the tabs are not updated in automatically.

    • Please fix your ini files.
  • The error gw_summary: error: unrecognized arguments: k1vis-guardian.ini,/home/controls/etc/summary/configurations/defaults.ini occurred in the test.

    • In run_test.sh, there is unexpected space between the ini files, such as INIFILE='k1global.ini,k1vis.ini, k1vis-guardian.ini'

  • Ther error ValueError: no Fr{Adc,Proc,Sim}Data structures with the name K1:VIS-ETMX_MN_DAMP_L_IN1_DQ.

    • The channel is included in full frame and minutes trend frame, but ./run.sh fail.
    • The channel needs to be included in science frame in default. If you didn't specify the frametype, gwsumm will read the science frame in default.

    • In other words, when you want to read science frame, you don't need to write frametype.

    • Note that
      • frametype = K1_C will read the full frame
      • frametype = K1_R will read the science frame
      • frametype = K1_M will read the minutes trend frame
      • frametype = K1_T will read the second frame
  • Can I use the and in the definition of state?

    • The answer is in l1lsc.ini

      • [state-Arms]
        name = Arms locked
        key = Arms
        definition = %(IFO)s:DMT-XARM_LOCK:1&%(IFO)s:DMT-YARM_LOCK:1
    • But, this doesn't work.(2021/06/10 yuzurihara)
  • How can I set the limitation on color bar (z-axis)?
    • Use 1-clim.

Working logs

Summary Pages

Conda

Sidd's Tutorial

KAGRA/Subgroups/PEM/SummaryPage (last edited 2022-02-20 03:41:59 by HirotakaYuzurihara)