Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • tomoscan tomoscan
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 9
    • Issues 9
    • List
    • Boards
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • tomotools
  • tomoscantomoscan
  • Merge requests
  • !78

add current

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged payno requested to merge add_current into master Apr 28, 2022
  • Overview 0
  • Commits 3
  • Pipelines 6
  • Changes 7

TODO

Add properties to access the electric_current like:

from tomoscan.esrf.scan.hdf5scan import HDF5TomoScan
scan = HDF5TomoScan("my_file.nx", "entry0000")

frames_electric_current = scan.electric_current

This will return the array of all the electric_current. Dark and flat frames as the projection or the alignment one. To access some frames users can filter those values from the image_key_control values.

Like:

from tomoscan.esrf.hdf5scan import ImageKey

projections_electric_current = scan.electric_current[scan.image_key_control == ImageKey.PROJECTION.value]
Edited Jun 17, 2022 by payno
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: add_current