Project

General

Profile

Feature #993 » calibration_detector_from_file.py

Wilson, Antony, 12 July 2012 13:50

 
1
#!/usr/bin/env python
2
""" Write tracker calibrations from file"""
3

    
4
from cdb import CalibrationSuperMouse
5

    
6
_TEST_SERVER = 'http://rgma19.pp.rl.ac.uk:8080'
7
_CALI_SM = CalibrationSuperMouse(_TEST_SERVER)
8

    
9
print "API Version: " + _CALI_SM.get_version()
10
print "Server name: " + _CALI_SM.get_name()
11

    
12
print _CALI_SM
13

    
14
_DEVICE = 'EMR'
15
_TYPE = 'test'
16
_TS = "2011-05-27 12:00:00.0"
17
_F = open('/home/wilsona/Documents/mice/data', 'r')
18
_DATA = _F.read()
19

    
20
print _CALI_SM.set_detector(_DEVICE, _TYPE, _TS, _DATA) 
21

    
(2-2/2)