Difference between revisions of "Measure quanta.py"

From MCEWiki
(Created page with '= Overview = The program measure_quanta.py can be used to measure the flux quanta (phi0) of squids in a given stage. The flux quanta can then be put into experiment.cfg for use…')
 
 
(2 intermediate revisions by 2 users not shown)
Line 10: Line 10:
  
 
Pass the location of the tuning data, and indicate what stage you are interested in:
 
Pass the location of the tuning data, and indicate what stage you are interested in:
  python $MAS_PYTHON measure_quanta.py /data/cryo/current_data/1321314269/ sa_ramp
+
  python $MAS_PYTHON/measure_quanta.py /data/cryo/current_data/1321314269/ sa_ramp
 
Output:
 
Output:
 
  Keeping 100 of 100 points
 
  Keeping 100 of 100 points
Line 16: Line 16:
 
  sa_flux_quanta = [
 
  sa_flux_quanta = [
 
           30720, 30720, 30720, 30720, 30720, 30720, 30720, 30720 ];
 
           30720, 30720, 30720, 30720, 30720, 30720, 30720, 30720 ];
 +
 +
[[Category:MCE Script]]
 +
[[Category:Python]]

Latest revision as of 17:36, 30 August 2016

Overview

The program measure_quanta.py can be used to measure the flux quanta (phi0) of squids in a given stage. The flux quanta can then be put into experiment.cfg for use by the servo programs.

The program consumes tuning data. The program lives in the $MAS_PYTHON folder.

Invoke with "-h" to get a help message.

Example

Pass the location of the tuning data, and indicate what stage you are interested in:

python $MAS_PYTHON/measure_quanta.py /data/cryo/current_data/1321314269/ sa_ramp

Output:

Keeping 100 of 100 points
Traveling segment of length 34
sa_flux_quanta = [
         30720, 30720, 30720, 30720, 30720, 30720, 30720, 30720 ];