Skip to content
Snippets Groups Projects
Commit 2146adc8 authored by Timothy O'Hanlon's avatar Timothy O'Hanlon
Browse files

fixed lpy and reformatted various plots

parent 763a7b6a
No related branches found
No related tags found
No related merge requests found
Pipeline #694001 passed
......@@ -61,8 +61,8 @@ def check_pi(event):
# ADD H1 code here
if config.IFO == 'L1':
if event.transition_index[0] >= 1300:
# logger.info('PI Tag not set up')
event.add_tag('PI_MONITOR')
logger.info('PI Tag not set up')
# event.add_tag('PI_MONITOR')
else:
logger.info('no PI')
......@@ -82,46 +82,35 @@ def check_pi(event):
alpha=0.8,
lw=2,
)
if config.IFO == 'L1':
ax2.plot(
t-event.gps,
buf.data,
label=config.PI_DICT[buf.channel],
alpha=0.8,
lw=2,
)
if config.IFO == 'H1':
ax2.plot(
t-event.gps,
buf.data,
label=buf.channel,
alpha=0.8,
lw=2,
)
if config.IFO == 'L1':
ax1.axhline(
config.PI_SAT_THRESH,
linestyle='--',
color='black',
label='PI threshold',
lw=5,
)
ax2.axhline(
config.PI_SAT_THRESH,
linestyle='--',
color='black',
label='PI threshold',
lw=5,
ax2.plot(
t-event.gps,
buf.data,
label=config.PI_DICT[buf.channel],
alpha=0.8,
lw=2,
)
ax1.axhline(
config.PI_SAT_THRESH,
linestyle='--',
color='black',
label='PI threshold',
lw=5,
)
ax2.axhline(
config.PI_SAT_THRESH,
linestyle='--',
color='black',
label='PI threshold',
lw=5,
)
ax1.set_xlabel('Time [s] since lock loss at {}'.format(event.gps), labelpad=10)
ax2.set_xlabel('Time [s] since lock loss at {}'.format(event.gps), labelpad=10)
ax1.set_ylabel('Band-Limited RMS [log]')
ax2.set_ylabel('Band-Limited RMS [log]')
ax1.set_xlim(t[0]-event.gps, t[-1]-event.gps)
ax2.set_xlim(-20, 5)
if config.IFO == 'L1':
ax1.set_ylim(0, 1)
ax2.set_ylim(0, 1)
ax1.set_ylim(0, 1)
ax2.set_ylim(0, 1)
ax1.legend(loc='best')
ax2.legend(loc='best')
ax1.set_title('PI BLRMS Monitors')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment