COMCIFS / instrument-geometry-info

A collection of layouts for specific beamlines and instruments
0 stars 3 forks source link

correct axes for hdf5 #51

Closed julianhoersch closed 1 year ago

julianhoersch commented 1 year ago

This PR fixes #45 I made some manual changes in the code to adapt the content of the hdf5 file to the output that is expected. This is probably not very flexible when it comes to other hdf5 files, but works for the _b4_1_master. The axis description should be correct again:

loop_
  _axis.id
  _axis.type
  _axis.equipment
  _axis.depends_on
  _axis.vector[1]
  _axis.vector[2]
  _axis.vector[3]
  _axis.offset[1]
  _axis.offset[2]
  _axis.offset[3]
         phi       rotation  goniometer          chi       1         -0.0037   0.002    0        0        0        
         chi       rotation  goniometer          omega     -0.0046   0.0372    -0.9993  0        0        0        
         omega     rotation  goniometer          .         1         0         0        0        0        0        
         two_theta           rotation  detector  .         1         0         0        0        0        0        
         dety      translation         detector  detx      0         -1        0        0        0        0        
         detx      translation         detector  trans     1         0         0        -166.87357         172.49715          0        
         trans     translation         detector  two_theta           0         0        -1       0        0        -287.22243