old_contents: # vim: sw=4 ts=4 sts expandtab smarttab
  # HXN step-scan configuration
  
  import hxntools.scans
  import bluesky.plans as bp
  import bluesky.utils as bu
  import ophyd
  
  hxntools.scans.setup(RE=RE)
  ct = bpp.subs_decorator(bec)(hxntools.scans.count)
  ascan = bpp.subs_decorator(bec)(hxntools.scans.absolute_scan)
  dscan = bpp.subs_decorator(bec)(hxntools.scans.relative_scan)
  fermat = bpp.subs_decorator(bec)(hxntools.scans.relative_fermat)
  spiral = bpp.subs_decorator(bec)(hxntools.scans.relative_spiral)
  mesh = bpp.subs_decorator(bec)(hxntools.scans.absolute_mesh)
  dmesh = bpp.subs_decorator(bec)(hxntools.scans.relative_mesh)
  d2scan = bpp.subs_decorator(bec)(hxntools.scans.d2scan)
  a2scan = bpp.subs_decorator(bec)(hxntools.scans.a2scan)
  scan_steps = bpp.subs_decorator(bec)(hxntools.scans.scan_steps)
  
  dets1 = [zebra, sclr1, merlin1, xspress3]
  dets2 = [zebra, sclr1, merlin2,xspress3]
  #dets2 = [zebra, sclr1, xspress3, lakeshore2]
  dets3 = [zebra, sclr1, merlin1, xspress3, lakeshore2]
  dets4 = [zebra, sclr1, merlin1, lakeshore2]
  dets5 = [zebra, sclr1, xspress3, dexela1]
  # dets5 = [zebra, sclr1, merlin1, xspress3, lakeshore2,dexela1]
  
  
  # define all the position names and save them to baseline
  # need to remove confict names
  conflict_name = ['pmllf', 'zplab', 'pmllc']
  descs = {d.name: set(d.describe())
           for d in bu.separate_devices
           (ophyd.utils.instances_from_namespace(ophyd.PositionerBase))}
  
  # sd.baseline = [dcm, m1, m2, beamline_status, smll, vmll, hmll, ssa2, zp]
  # sd.baseline = [dcm, m1, m2, beamline_status, smll, vmll, hmll, ssa2, bpm1, bpm2, smlld]
  sd.baseline = [dcm, m1, m2, beamline_status, smll, vmll, hmll, ssa2, mllosa, zp, zps, smlld, fdet1, diff]
  
  BlueskyMagics.positioners = [d for  d in
                               bu.separate_devices(
                                   ophyd.utils.instances_from_namespace(
                                       (ophyd.EpicsMotor, ophyd.PseudoSingle)))]
  
new_contents: # vim: sw=4 ts=4 sts expandtab smarttab
  # HXN step-scan configuration
  
  import hxntools.scans
  import bluesky.plans as bp
  import bluesky.utils as bu
  import ophyd
  
  hxntools.scans.setup(RE=RE)
  ct = bpp.subs_decorator(bec)(hxntools.scans.count)
  ascan = bpp.subs_decorator(bec)(hxntools.scans.absolute_scan)
  dscan = bpp.subs_decorator(bec)(hxntools.scans.relative_scan)
  fermat = bpp.subs_decorator(bec)(hxntools.scans.relative_fermat)
  spiral = bpp.subs_decorator(bec)(hxntools.scans.relative_spiral)
  mesh = bpp.subs_decorator(bec)(hxntools.scans.absolute_mesh)
  dmesh = bpp.subs_decorator(bec)(hxntools.scans.relative_mesh)
  d2scan = bpp.subs_decorator(bec)(hxntools.scans.d2scan)
  a2scan = bpp.subs_decorator(bec)(hxntools.scans.a2scan)
  scan_steps = bpp.subs_decorator(bec)(hxntools.scans.scan_steps)
  
  dets1 = [zebra, sclr1, merlin1, xspress3]
  dets2 = [zebra, sclr1, merlin2,xspress3]
  #dets2 = [zebra, sclr1, xspress3, lakeshore2]
  dets3 = [zebra, sclr1, merlin1, xspress3, lakeshore2]
  dets4 = [zebra, sclr1, merlin1, lakeshore2]
  dets5 = [zebra, sclr1, xspress3, dexela1]
  # dets5 = [zebra, sclr1, merlin1, xspress3, lakeshore2,dexela1]
  
  
  # define all the position names and save them to baseline
  # need to remove confict names
  conflict_name = ['pmllf', 'zplab', 'pmllc']
  #descs = {d.name: set(d.describe())
  #         for d in bu.separate_devices
  #         (ophyd.utils.instances_from_namespace(ophyd.PositionerBase))}
  
  # sd.baseline = [dcm, m1, m2, beamline_status, smll, vmll, hmll, ssa2, zp]
  # sd.baseline = [dcm, m1, m2, beamline_status, smll, vmll, hmll, ssa2, bpm1, bpm2, smlld]
  sd.baseline = [dcm, m1, m2, beamline_status, smll, vmll, hmll, ssa2, mllosa, zp, zps, smlld, fdet1, diff]
  
  BlueskyMagics.positioners = [d for  d in
                               bu.separate_devices(
                                   ophyd.utils.instances_from_namespace(
                                       (ophyd.EpicsMotor, ophyd.PseudoSingle)))]
  
subject: remove dugging code