Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • bliss bliss
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 542
    • Issues 542
    • List
    • Boards
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Merge requests 142
    • Merge requests 142
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • BlissBliss
  • blissbliss
  • Merge requests
  • !3228

Store ROIs in scan_info

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Valentin Valls requested to merge valentin.valls/bliss:store-rois-in-scan-info into master Dec 04, 2020
  • Overview 13
  • Commits 5
  • Pipelines 2
  • Changes 3

This MR is about to display ROIs in Flint as part of a scan

Here you can see what is generated in the scan_info.

  • It introduce a rois key to store ROIs
  • A ROI name is mangled according to the acquisition chain.
  • The relationship between ROIs and channels is implicit
  • The kind of the ROI is also implicit (from roi name + description keys)
DEMO_SESSION [2]: s = ct(lima_simulator)
   Fri Dec 04 17:28:29 2020: Scan(name=ct, path='not saved')

              roi1_sum  =       0.00000     (      0.00000       /s)  lima_simulator
              roi1_avg  =       0.00000     (      0.00000       /s)  lima_simulator
              roi1_std  =       0.00000     (      0.00000       /s)  lima_simulator
              roi1_min  =       0.00000     (      0.00000       /s)  lima_simulator
              roi1_max  =       0.00000     (      0.00000       /s)  lima_simulator

   Took 0:00:01.619917[s]

DEMO_SESSION [4]: pprint(s.scan_info["rois"])
{'lima_simulator:roi_counters:roi1': {'height': 231,
                                      'kind': 'rect',
                                      'width': 601,
                                      'x': 190,
                                      'y': 113},
 'lima_simulator:roi_counters:roi2': {'a1': -172.11072290449772,
                                      'a2': -300.67835344586587,
                                      'cx': 487.92119883389427,
                                      'cy': 513.0072417312821,
                                      'kind': 'arc',
                                      'r1': 137.91316800547676,
                                      'r2': 198.5387390524788},
 'lima_simulator:roi_profiles:roi3': {'height': 161,
                                      'kind': 'profile',
                                      'mode': 'vertical',
                                      'width': 644,
                                      'x': 202,
                                      'y': 783}}
Edited Dec 07, 2020 by Valentin Valls
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: store-rois-in-scan-info