Solving Jira Tikec-16

The idea in order to fix this is to make a dictionary of dictionaries in python.

So basically a dictionary with detIDs as keys, and for each detID key you get another dictionary as a value. This dictionary has as keys the APVPAir number and as value another dictionary. This other dictionary has as keys strings like "FecCrate" and as value the corresponding number, for all the quantities you want to map.

After we learned something about dictionaries in python, we did our first attempt, but immediately we had the first problem: as a key we can use any immutable value and we can not have repeated keys, but the same detID can be in diferents chanels.

So we decided to do a dictionario where the first key was the FEDid and the next key was Fedch. You can see the attachment (I put another before, but now I change it only for aesthetic), I also attached a .txt file you need to run the python code.

-- JhovannyMejia - 10 Jun 2014

Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt CablingInfoParser_5.py.txt r1 manage 3.8 K 2014-06-11 - 12:40 JhovannyMejia  
Texttxt CablingInfo_Run100357.txt r1 manage 4055.5 K 2014-06-11 - 12:32 JhovannyMejia  
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2014-06-11 - JhovannyMejia
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback