dxtbx.serialize

dxtbx.serialize.load

dxtbx.serialize.load.crystal(infile)

Load the given JSON file.

Params:

infile The input filename or file object

Returns:

The models

dxtbx.serialize.load.experiment_list(infile, check_format=True)

Load an experiment list from a serialized format.

dxtbx.serialize.load.imageset(filename)

Load the given JSON file.

Params:

infile The input filename

Returns:

The models

dxtbx.serialize.dump

dxtbx.serialize.xds

dxtbx.serialize.xds.to_crystal(filename)

Get the crystal model from the xparm file

Params:

filename The xparm/or integrate filename

Returns:

The crystal model

dxtbx.serialize.xds.to_imageset(input_filename, extra_filename=None)

Get an image set from the xds input filename plus an extra filename

Params:

input_filename The XDS.INP file extra_filename A (G)XPARM.XDS, INTGRATE.HKL or XDS_ASCII.HKL file

Returns:

The imageset

class dxtbx.serialize.xds.to_xds(sequence)

Bases: object

A class to export contents of a Sequence as XDS.INP or XPARM.XDS.

XDS_INP(space_group_number=None, real_space_a=None, real_space_b=None, real_space_c=None, job_card='XYCORR INIT COLSPOT IDXREF DEFPIX INTEGRATE CORRECT')
get_beam()
get_detector()
get_goniometer()
get_scan()
get_template()
xparm_xds(real_space_a, real_space_b, real_space_c, space_group)
dxtbx.serialize.xds.xds_detector_name(dxtbx_name)

Translate from a xia2 name from the detector library to an XDS detector name.