_PROD_CDB defines the Production Master CDB url

	_CC_TAG defines the name of the tag for the currents

To switch between Preprod and Master, change the argument to the handle on Line:16
e.g. 
     cc = CoolingChannelSuperMouse(_PROD_CDB)
"""
import sys
from cdb import CoolingChannelSuperMouse
import datetime

_TEST_CDB = "http://preprodcdb.mice.rl.ac.uk"
#_PROD_CDB = "http://cdb.mice.rl.ac.uk"

_server = CoolingChannelSuperMouse(_TEST_CDB)
############################################################################

data = [{
    'polarity':
    1,
    'coils': [{
        'vlim': 10.0,
        'name': 'FCU-C',
        'iset': 57.930199,
        'calibration': 1.0,
        'ilim': 120.0,
        'stability': 90.0,
        'rate': 0.01014
    }],
    'name':
Example #2
0
	_PROD_CDB defines the Production Master CDB url

	_CC_TAG defines the name of the tag for the currents

To switch between Preprod and Master, change the argument to the handle on Line:16
e.g. 
     cc = CoolingChannelSuperMouse(_PROD_CDB)
"""
import sys
from cdb import CoolingChannelSuperMouse

_TEST_CDB = "http://preprodcdb.mice.rl.ac.uk"
_PROD_CDB = "http://cdb.mice.rl.ac.uk"
_MASTER_CDB = "http://preprodcdb.mice.rl.ac.uk"
_MASTER_CDB = "http://172.16.246.25:8080"
_server = CoolingChannelSuperMouse(_MASTER_CDB)
############################################################################
### The rates, and limits are NOT used by Run Control, only meaningful for ramping
_calib = '1.0'
_rate = '0.0'
_stab = '0.0'
_vlim = '5.0'
_ilim = '50.0'

############## TAG
##### MUST Provide a tag for the current settings
#_CC_TAG = "CCramp-6.1.4"

############## SSU, SSD, FCU, FCD currents
ssu_currents = {}
ssu_currents['ssu_e2'] = 0.0
Example #3
0
	_PROD_CDB defines the Production Master CDB url

	_CC_TAG defines the name of the tag for the currents

To switch between Preprod and Master, change the argument to the handle on Line:16
e.g. 
     cc = CoolingChannelSuperMouse(_PROD_CDB)
"""
import sys
from cdb import CoolingChannelSuperMouse
import datetime

_TEST_CDB = "http://preprodcdb.mice.rl.ac.uk"
_PROD_CDB = "http://cdb.mice.rl.ac.uk"

_server = CoolingChannelSuperMouse(_TEST_CDB)
############################################################################

data = {'valid_from_time': datetime.datetime(2017, 5, 8, 10, 26, 56, 657156), 'valid_until_time': None, 'tag': 'StepIV-Off', 'run': '9287', 'magnets': [{'polarity': -1, 'coils': [{'vlim': 11.0, 'name': 'FCU-C', 'iset': -0.0095, 'calibration': 0.0268, 'ilim': 1.0, 'stability': 95.0, 'rate': 0.0}], 'name': 'FCU', 'mode': 'flip'}, {'polarity': -1, 'coils': [{'vlim': 5.0, 'name': 'SSD-E2', 'iset': 0.003, 'calibration': 0.0451, 'ilim': 1.0, 'stability': 0.0, 'rate': 0.0}, {'vlim': 5.0, 'name': 'SSD-E1', 'iset': 0.003, 'calibration': 0.0407, 'ilim': 1.0, 'stability': 0.0, 'rate': 0.0}, {'vlim': 7.0, 'name': 'SSD-M2', 'iset': -0.0012, 'calibration': 0.0201, 'ilim': 1.0, 'stability': 95.0, 'rate': 0.0}, {'vlim': 7.0, 'name': 'SSD-M1', 'iset': 0.0, 'calibration': 0.0302, 'ilim': 1.0, 'stability': 95.0, 'rate': 0.0}, {'vlim': 16.0, 'name': 'SSD-C', 'iset': 0.003, 'calibration': 0.0147, 'ilim': 1.0, 'stability': 95.0, 'rate': 0.0}], 'name': 'SSD', 'mode': 'flip'}, {'polarity': 1, 'coils': [{'vlim': 5.0, 'name': 'SSU-E2', 'iset': 0.0, 'calibration': 0.0451, 'ilim': 1.0, 'stability': 0.0, 'rate': 0.0}, {'vlim': 5.0, 'name': 'SSU-E1', 'iset': 0.0, 'calibration': 0.0407, 'ilim': 1.0, 'stability': 0.0, 'rate': 0.0}, {'vlim': 7.0, 'name': 'SSU-M2', 'iset': 0.0012, 'calibration': 0.0201, 'ilim': 1.0, 'stability': 95.0, 'rate': 0.0}, {'vlim': 7.0, 'name': 'SSU-M1', 'iset': -0.0101, 'calibration': 0.0302, 'ilim': 1.0, 'stability': 95.0, 'rate': 0.0}, {'vlim': 16.0, 'name': 'SSU-C', 'iset': 0.0, 'calibration': 0.0147, 'ilim': 1.0, 'stability': 95.0, 'rate': 0.0}], 'name': 'SSU', 'mode': 'flip'}]}

_TAG = 'StepIV-Off'
_timestamp = '2017-05-08 10:26:56.657156'

##### Print
print data

#### Get run number
try:
    run = sys.argv[1]
except IndexError:
    print 'No run number supplied. Supply run number as argument'
	_CC_TAG defines the name of the tag for the currents

To switch between Preprod and Master, change the argument to the handle on Line:16
e.g. 
     cc = CoolingChannelSuperMouse(_PROD_CDB)
"""
import sys
from cdb import CoolingChannelSuperMouse
from cdb import CoolingChannel

_TEST_CDB = "http://preprodcdb.mice.rl.ac.uk"
_PROD_CDB = "http://cdb.mice.rl.ac.uk"
#_MASTER_CDB = "http://preprodcdb.mice.rl.ac.uk"
_MASTER_CDB = "http://172.16.246.25:8080"

_master_server = CoolingChannelSuperMouse(_MASTER_CDB)
_test_server = CoolingChannelSuperMouse(_TEST_CDB)
_prod_server = CoolingChannel(_PROD_CDB)
#print _server
############################################################################
_CC_TAG = '2016-05-2-SSUSSD'
data = [\
  {'polarity': 1, 'coils': \
   [{'vlim': 5.0, 'name': 'SSU-T2', 'iset': 0.0, 'calibration': 0.0451, 'ilim': 1.0, 'stability': 0.0, 'rate': 0.0}, \
    {'vlim': 16.0, 'name': 'SSU-C', 'iset': 204.02 , 'calibration': 0.0147, 'ilim': 210.0, 'stability': 95.0, 'rate': 0.0246}, \
    {'vlim': 5.0, 'name': 'SSU-T1', 'iset': 0.0, 'calibration': 0.0407, 'ilim': 1.0, 'stability': 0.0, 'rate': 0.0}, \
    {'vlim': 7.0, 'name': 'SSU-M2', 'iset': 226.63, 'calibration': 0.0201, 'ilim': 230.0, 'stability': 95.0, 'rate': 0.025}, \
    {'vlim': 7.0, 'name': 'SSU-M1', 'iset': 220.80, 'calibration': 0.0302, 'ilim': 230.0, 'stability': 95.0, 'rate': 0.0123} \
   ], \
   'name': 'SSU', 'mode': 'solenoid'\
  },\
	_CC_TAG defines the name of the tag for the currents

To switch between Preprod and Master, change the argument to the handle on Line:16
e.g. 
     cc = CoolingChannelSuperMouse(_PROD_CDB)
"""
import sys
from cdb import CoolingChannelSuperMouse

_TEST_CDB = "http://preprodcdb.mice.rl.ac.uk"
_PROD_CDB = "http://cdb.mice.rl.ac.uk"
#_MASTER_CDB = "http://preprodcdb.mice.rl.ac.uk"
_MASTER_CDB = "http://172.16.246.25:8080"

_server = CoolingChannelSuperMouse(_MASTER_CDB)
print _server
#_server = CoolingChannelSuperMouse(_TEST_CDB)
############################################################################
### The rates, and limits are NOT used by Run Control, only meaningful for ramping
#_calib = '1.0'
#_rate = '0.0'
#_stab = '0.0'
#_vlim = '5.0'
#_ilim = '50.0'

############## TAG 
##### MUST Provide a tag for the current settings
#_CC_TAG = "CCramp-6.1.4"

#[{'polarity': 1, 'coils': [{'vlim': 5.0, 'name': 'SSU-T2', 'iset': -21.71, 'calibration': 0.0451, 'ilim': 35.0, 'stability': 0.0, 'rate': 0.0022}, {'vlim': 16.0, 'name': 'SSU-C', 'iset': 205.53, 'calibration': 0.0147, 'ilim': 210.0, 'stability': 95.0, 'rate': 0.0207}, {'vlim': 5.0, 'name': 'SSU-T1', 'iset': -31.87, 'calibration': 0.0407, 'ilim': 35.0, 'stability': 0.0, 'rate': 0.0032}, {'vlim': 7.0, 'name': 'SSU-M2', 'iset': 247.81, 'calibration': 0.0201, 'ilim': 250.0, 'stability': 95.0, 'rate': 0.025}, {'vlim': 7.0, 'name': 'SSU-M1', 'iset': 99.83, 'calibration': 0.0302, 'ilim': 110.0, 'stability': 95.0, 'rate': 0.0101}], 'name': 'SSU', 'mode': 'solenoid'}, {'polarity': 1, 'coils': [{'vlim': 11.0, 'name': 'FCU-C', 'iset': 72.0, 'calibration': 0.0268, 'ilim': 75.0, 'stability': 95.0, 'rate': 0.0073}], 'name': 'FCU', 'mode': 'solenoid'}, {'polarity': 1, 'coils': [{'vlim': 5.0, 'name': 'SSD-T2', 'iset': 0.0, 'calibration': 0.0451, 'ilim': 10.0, 'stability': 0.0, 'rate': 0.0025}, {'vlim': 16.0, 'name': 'SSD-C', 'iset': 205.53, 'calibration': 0.0147, 'ilim': 210.0, 'stability': 95.0, 'rate': 0.0207}, {'vlim': 5.0, 'name': 'SSD-T1', 'iset': 0.0, 'calibration': 0.0407, 'ilim': 10.0, 'stability': 0.0, 'rate': 0.0025}, {'vlim': 7.0, 'name': 'SSD-M2', 'iset': 0.0, 'calibration': 0.0201, 'ilim': 5.0, 'stability': 95.0, 'rate': 0.025}, {'vlim': 7.0, 'name': 'SSD-M1', 'iset': 0.0, 'calibration': 0.0302, 'ilim': 5.0, 'stability': 95.0, 'rate': 0.025}], 'name': 'SSD', 'mode': 'solenoid'}]