Project

General

Profile

Feature #1427

Set cooling channel tag from csv file

Added by Rogers, Chris over 8 years ago. Updated over 8 years ago.

Status:
Open
Priority:
Normal
Assignee:
Category:
Python API
Start date:
04 March 2014
Due date:
% Done:

0%

Estimated time:

Description

Request to set a cooling channel tag from a csv file. Format should be like:

tag,0_to_240FlipP2,,,,,,
name,SS1,,,,,,
mode,Flip,,,,,,
polarity,-1,,,,,,
coils,name,vlim,ilim,rate,iset,stability,calibration
,SS1-M1,6.0,300.0,23.66,270.3,0.0,1.0
,SS1-M2,6.0,300.0,25.00,285.6,0.0,1.0
,SS1-T1,5.0,60.0,3.93,-44.9,0.0,1.0
,SS1-C,15.0,300.0,24.82,283.6,0.0,1.0
,SS1-T2,5.0,60.0,2.59,-29.6,0.0,1.0
#1

Updated by Rogers, Chris over 8 years ago

Pushed as r26 in lp:~chris-rogers/mcdb/mice.cdb.client.api-python_1427

Pierrick, following this change you can add a tagged coolingchannel value to the CDB by doing something like

my_cooling_channel_supermouse.set_coolingchannel_csv_tag(open('SSPSUConfig.csv'))

Unit tests also added. Note that Janusz should be the one to merge this into the trunk.

#2

Updated by Rogers, Chris over 8 years ago

Please follow the documentation for setting up a launchpad account

http://micewww.pp.rl.ac.uk/projects/mice/wiki/Launchpad_usage#Setting-up-bzr-and-launchpad

Then make a new branch as usual

bzr branch lp:~chris-rogers/mcdb/mice.cdb.client.api-python_1427
#3

Updated by Rogers, Chris over 8 years ago

Try:

cd path/to/rogers/install/of/cdb-python-api/
cd src
python

>>> import cdb
>>> my_cooling_channel_supermouse = cdb.CoolingChannelSuperMouse("http://preprodcdb.mice.rl.ac.uk")
>>> my_cooling_channel_supermouse.set_coolingchannel_csv_tag(open('/path/to/SSPSUConfig.csv'))

Also available in: Atom PDF