Skip to content
Snippets Groups Projects

Check that the RawBank is in Raw_location_db

Closed Giovanni Bassi requested to merge retinacluster_checks into master
1 unresolved thread

With Allen!655 (merged), the Allen default sequence now requires the VPRetinaCluster RawBank to be present in the RawEvent.
The input_raw_format = 0.5 entry has been added to the Raw_location_db to include the VPRetinaCluster RawBank.
If a RawBank is not in the input_raw_format we would like to raise a "readable" error.

This should be tested with Moore!1429 (merged), Allen!803 (merged) and lhcb-datapkg/PRConfig!217 (merged).

Edited by Giovanni Bassi

Merge request reports

Merge request pipeline #3702153 passed

Merge request pipeline passed for 43abca8b

Approval is optional

Closed by Rosen MatevRosen Matev 3 years ago (Mar 15, 2022 7:14pm 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
528 528 }
529 529
530 530 if bank_types:
531 locations = set(raw_bank_locations[bt] for bt in bank_types)
531 locations = set()
532 try:
533 for bt in bank_types:
534 locations.add(raw_bank_locations[bt])
535 except:
536 raise KeyError("The", bt,
537 "RawBank is missing from raw_event_format",
538 raw_event_format)
  • Given that Raw_location_db will have to be removed, I would prefer to have a default instead of an exception.

    In fact !3449 (merged) already implements that, so let's close this MR.

    @@ -528,7 +528,9 @@ def default_raw_event(bank_types=[],
         }
    
         if bank_types:
    -        locations = set(raw_bank_locations[bt] for bt in bank_types)
    +        locations = set(
    +            raw_bank_locations.get(bt, ("DAQ/RawEvent", ))
    +            for bt in bank_types)
         else:
             locations = set(raw_bank_locations.values())
    Edited by Rosen Matev
  • Please register or sign in to reply
  • closed

  • mentioned in issue Moore#411 (closed)

  • Please register or sign in to reply
    Loading