Finally! , We find the way to create a dictionary of dictionary with keys repeated, in this case, key_1 is the "DetId" of the module and key_1 is the "pairNumber", and since there are several modules with the same "Detid", the first key simply update itself by giving key_2 (or number of APV's) of the module. The script is attached

-- MarthaCeciliaDuranOsuna - 11 Jun 2014

Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt CablingInfoParser_8.py.txt r1 manage 4.4 K 2014-06-11 - 14:41 MarthaCeciliaDuranOsuna This is a dictionary with repeated keys
Texttxt CablingInfo_Run100357.txt r1 manage 4055.5 K 2014-06-11 - 14:43 MarthaCeciliaDuranOsuna this is the txt file corresponding to the last script
Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2014-06-11 - MarthaCeciliaDuranOsuna
 
    • 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