Skip to content
Snippets Groups Projects

WIP Change to chain parsing allowing for customised slignature code

Closed Tomasz Bold requested to merge tbold/athena:customisable-chain-dict-making into master
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

Approval is optional

Closed by Tomasz BoldTomasz Bold 5 years ago (Feb 26, 2020 11:16am UTC)

Merge details

  • The changes were not merged into master.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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']
  • Tomasz Bold added 2 commits

    added 2 commits

    • 3d2cf0a9 - Example customisation, will be taken out
    • a4bbf438 - added index to chain dict part, and passed throuigh the linter

    Compare with previous version

  • Author Developer

    Also tagging @fpastore

  • closed

  • Please register or sign in to reply
    Loading