from bluesky.global_state import (resume, abort, stop, panic, all_is_well,
                                  state)

from bluesky.callbacks.olog import OlogCallback
from bluesky.global_state import gs


olog_cb = OlogCallback('Data Acquisition')
gs.RE.subscribe('start', olog_cb)

from bluesky.scientific_callbacks import plot_peak_stats

from bluesky.plans import *

from bluesky.spec_api import ct, ascan, dscan

from bluesky.global_state import (resume, abort, stop, panic, all_is_well,
                                  state)

from bluesky.callbacks.olog import OlogCallback
from bluesky.global_state import gs


olog_cb = OlogCallback('Data Acquisition')
gs.RE.subscribe('start', olog_cb)

gs.DETS.append(det4)

#from bluesky.scientific_callbacks import plot_peak_stats

from bluesky.plans import *

from bluesky.spec_api import ct, ascan, dscan

Add det4 to global dets
Add det4 to global dets

  from bluesky.global_state import (resume, abort, stop, panic, all_is_well,
                                    state)
  
  from bluesky.callbacks.olog import OlogCallback
  from bluesky.global_state import gs
  
  
  olog_cb = OlogCallback('Data Acquisition')
  gs.RE.subscribe('start', olog_cb)
  
+ gs.DETS.append(det4)
+ 
- from bluesky.scientific_callbacks import plot_peak_stats
+ #from bluesky.scientific_callbacks import plot_peak_stats
  
  from bluesky.plans import *
  
  from bluesky.spec_api import ct, ascan, dscan
  
Add det4 to global dets
## Code Before:
from bluesky.global_state import (resume, abort, stop, panic, all_is_well,
                                  state)

from bluesky.callbacks.olog import OlogCallback
from bluesky.global_state import gs


olog_cb = OlogCallback('Data Acquisition')
gs.RE.subscribe('start', olog_cb)

from bluesky.scientific_callbacks import plot_peak_stats

from bluesky.plans import *

from bluesky.spec_api import ct, ascan, dscan

## Instruction:
Add det4 to global dets
## Code After:
from bluesky.global_state import (resume, abort, stop, panic, all_is_well,
                                  state)

from bluesky.callbacks.olog import OlogCallback
from bluesky.global_state import gs


olog_cb = OlogCallback('Data Acquisition')
gs.RE.subscribe('start', olog_cb)

gs.DETS.append(det4)

#from bluesky.scientific_callbacks import plot_peak_stats

from bluesky.plans import *

from bluesky.spec_api import ct, ascan, dscan
