Skip to content

Instantly share code, notes, and snippets.

 OSError Traceback (most recent call last)
/home/xf28id1/Documents/Milinda/Scripts/aquasition/kapton.py in <module>()
----> 1 _end_beamtime()
/home/xf28id1/src/xpdacq/xpdacq/beamtimeSetup.py in _end_beamtime(base_dir, archive_dir, bto, usr_confirm)
227 _confirm_archive(archive_full_name)
228 # flush
--> 229 _delete_home_dir_tree()
230 # delete bt
231 del ips.ns_table['user_global']['bt']
## customized count
def delayed_count(detectors, shutter_config, interval=None, num=1, *, md=None):
"""
Take one or more readings from detectors.
Parameters
----------
detectors : list
list of 'readable' objects
gasses : list of string
name of gasses want to alterna
@chiahaoliu
chiahaoliu / sub_tiff_export.md
Created July 14, 2016 15:37
my trial on subtracted tiff exporter

code itself, basically a copy of Dan's subtracted tiff exporter:

class SubtractedTiffExporter(LiveTiffExporter):
   "Intercept images before saving and subtract dark image"

   def start(self, doc):
       # The metadata refers to the scan uid of the dark scan.
       #if 'dark_frame' not in doc:
 dark_sub = True
  1. Maybe it is a good idea to make ScanPlan belongs to Beamtme like what we have for current xpdAcq There are two advantages to this approach:
    • we don't have to keep updating registered plan, we can simply maintain ct, Tramp and tseries

    • Unify plan input to RE and still make bluesky plan possible

      class Customized_RE(RunEngine)
      ....
      if isinstance(plan, ScanPlan):
      

plan.factory