WIP Change to chain parsing allowing for customised slignature code
1 unresolved thread
This branch is to test the idea of how one can add signature customisations to the chain name parsing. It is for the preview at the moment for! @markowen, @khoo @peter
I will be away the next week so I would not mind if someone picks up. Especially that the jets need to do their own way in any case. As an example there is customisation for electrons. To be removed of course.
Merge request reports
Activity
135 136 from .SignatureDicts import getSignatureInformation, SliceIDDict 137 138 # the iteration is done in C-style because when moving over chain fragments we always attempt to parse a given signature N times in a row 139 # this is because there can be chains like this one: e10_e12_tau6, in which case two electron and one tau need to be created 140 141 priorityOrderedSignatureNames = SliceIDDict.keys() 142 listOfChainParts = [] 143 counter = 0 144 while True: 145 if len(cparts) == 0: # no more tokens 146 break 147 assert counter < len(priorityOrderedSignatureNames), "While parsing chain name, exhausted all signatures" 148 signatureName = priorityOrderedSignatureNames[counter] 149 defaultsDict, partsDict = getSignatureInformation( signatureName ) 150 signatureParsingFunction = partsDict['parser'] Also tagging @fpastore
Please register or sign in to reply