Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L LHCb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 193
    • Issues 193
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Jira
    • Jira
  • Merge requests 41
    • Merge requests 41
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • LHCbLHCb
  • LHCb
  • Merge requests
  • !3643

fix(pyconf) allow easily forcing the c++ type of an untyped DataHandle

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Christoph Hasse requested to merge chasse_typed_datahandle into master Jun 21, 2022
  • Overview 22
  • Commits 1
  • Pipelines 4
  • Changes 2

The problem arises when you get a DataHandle from e.g. FetchDataFromFile that has as type of unknown_t.

However, for a DataHandle to be used in the functor framework, it has to know its correct C++ type.
This MR adds a method force_type(str) that lets a user force the type of the DataHandle.
Overwriting the type, is only allowed tho if the type is unknown_t.

(Example usage can be seen from the added test)

See also Rec!2971 (merged) that implements additional checks in the TES functor

cc @amathad @jzhuo @sstahl

Edited Jun 21, 2022 by Christoph Hasse
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: chasse_typed_datahandle