Skip to content
GitLab
Projects Groups 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
    • Contributors
    • Graph
    • Compare
  • Issues 546
    • Issues 546
    • List
    • Boards
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Merge requests 146
    • Merge requests 146
  • 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
  • Issues
  • #2783
Closed
Open
Issue created May 30, 2021 by Blanka Detlefs@janousov

scan title motor values precision

Funny behaviour of the motor values precision in scan title. Both PyMca and silx_view display the same thing, silx.io.open as well:

TEXS [2]: ascan(xes_en_texs, 2.647, 2.650, 6, .2)                    
 Out [2]: Scan(number=4, name=ascan, 
          path=/data/id26/inhouse/id262105/id26/test_rixs_et/test_rixs_et_0002/test_rixs_et_0002.h5)

TEXS [6]: ascan(energy, 2.651, 2.651001, 3, .1)                      
 Out [6]: Scan(number=7, name=ascan, 
          path=/data/id26/inhouse/id262105/id26/test_rixs_et/test_rixs_et_0002/test_rixs_et_0002.h5)

TEXS [7]: ascan(energy, 2.651, 2.6511, 3, .1)                        
 Out [7]: Scan(number=8, name=ascan, 
          path=/data/id26/inhouse/id262105/id26/test_rixs_et/test_rixs_et_0002/test_rixs_et_0002.h5)

TEXS [8]: ascan(energy, 2.651, 2.65101, 3, .1)                       
 Out [8]: Scan(number=9, name=ascan, 
          path=/data/id26/inhouse/id262105/id26/test_rixs_et/test_rixs_et_0002/test_rixs_et_0002.h5)
           
TEXS [11]: ascan(simumot1, .0001, .000101,2, .1)                     
 Out [11]: Scan(number=10, name=ascan, 
           path=/data/id26/inhouse/id262105/id26/test_rixs_et/test_rixs_et_0002/test_rixs_et_0002.h5)

>>> sf  = open('/data/id26/inhouse/id262105/id26/test_rixs_et/test_rixs_et_0002/test_rixs_et_0002.h5')
>>> sf.keys()
<KeysViewHDF5 ['1.1', '10.1', '2.1', '3.1', '4.1', '5.1', '6.1', '7.1', '8.1', '9.1']>
>>> sf['4.1/title'][()]
'ascan xes_en_texs 2.6 2.6 6 0.2'
>>> sf['9.1/title'][()]
'ascan energy 2.651 2.651 3 0.1'
>>> sf['10.1/title'][()]
'ascan simumot1 0.0001 0.0001 2 0.1'

Values in the motors positions (i.e. in the data plot) are OK (except for simumot1 in the example but this is probably a question of motor resolution).

>>> sf['4.1/measurement/xes_en_texs'][()]
array([2.64699954, 2.6474912 , 2.6480085 , 2.64850209, 2.64899687,
       2.64950167, 2.64999683])

image image

Edited May 31, 2021 by Cyril Guilloud
Assignee
Assign to
Time tracking