mxcubecore.HardwareObjects.Gphl.Transcal2MiniKappa#

License:

This file is part of MXCuBE.

MXCuBE is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

MXCuBE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with MXCuBE. If not, see <https://www.gnu.org/licenses/>.

Functions

convert_to_gphl(instrumentation_file, ...)

get_minikappa_data(configfile)

get_recen_data(transcal_file, ...[, ...])

Read recentring data from GPhL files

make_home_data(centring_axes, axis_names, ...)

Convert in the oppoosite direction from minikappa configuration to transcal

make_minikappa_data(home, cross_sec_of_soc, ...)

param home:

mxcubecore.HardwareObjects.Gphl.Transcal2MiniKappa.get_recen_data(transcal_file, instrumentation_file, diffractcal_file=None, **kwds)[source]#

Read recentring data from GPhL files

Parameters:
  • transcal_file – transcal.nml input file

  • instrumentation_file – instrumentation.nml input file

  • diffractcal_file – diffrqctcal,.nl ioptional input file

Returns: dict

mxcubecore.HardwareObjects.Gphl.Transcal2MiniKappa.make_home_data(centring_axes, axis_names, kappadir, kappapos, phidir, phipos)[source]#

Convert in the oppoosite direction from minikappa configuration to transcal

Parameters:
  • list (phipos) – Goniostat centring axis coordinates, concatenated

  • list – centring axis names, in instumentation.nml order

  • kappadir – list(float): kappa axis direction, centring axis system

  • list – kappa axis offset vector, centring axis system

  • list – phi axis direction, centring axis system

  • list – phi axis offset vector, centring axis system

Returns:

mxcubecore.HardwareObjects.Gphl.Transcal2MiniKappa.make_minikappa_data(home, cross_sec_of_soc, gonio_centring_axes, gonio_centring_axis_names, omega_axis, kappa_axis, phi_axis)[source]#
Parameters:
  • home (list) –

  • cross_sec_of_soc (list) –

  • gonio_centring_axes (list) –

  • gonio_centring_axis_names (list) –

  • omega_axis (list) –

  • kappa_axis (list) –

  • phi_axis (list) –

Returns: