Esempio n. 1
0
DETECTOR_SUFFIX = ""
IMAGE_TEMPLATE = "%s.????"
RUN_NUMBER_IN_TEMPLATE = False
RAPD_DETECTOR = "camd_mar_165"
HEADER_VERSION = 1

# XDS info
XDS_FLIP_BEAM = detector.XDS_FLIP_BEAM
# Import from more generic detector
XDSINP0 = detector.XDSINP
# Update the XDS information from the imported detector
# only if there are differnces or new keywords.
# The tuple should contain two items (key and value)
# ie. XDSINP1 = [("SEPMIN", "4"),]
XDSINP1 = [(),]
XDSINP = utils.merge_xds_input(XDSINP0, XDSINP1)

def parse_file_name(fullname):
    """Parse the fullname of an image and return
    (directory, basename, prefix, run_number, image_number)

    Keyword arguments
    fullname -- the full path name of the image file
    """
    print fullname
    directory = os.path.dirname(fullname)
    print directory
    basename = os.path.basename(fullname).rstrip(DETECTOR_SUFFIX)
    print basename
    sbase = basename.split(".")
    print sbase
Esempio n. 2
0
    ('OVERLOAD', '3000000') ,
    ('REFINE(CORRECT)', 'POSITION DISTANCE BEAM ORIENTATION CELL AXIS') ,
    #('REFINE(INTEGRATE)', 'POSITION DISTANCE BEAM ORIENTATION CELL') ,
    ('REFINE(INTEGRATE)', 'BEAM ORIENTATION CELL! POSITION') ,
    ('TRUSTED_REGION', '0.00 1.2') ,
    ('VALUE_RANGE_FOR_TRUSTED_DETECTOR_PIXELS', '8000 30000') ,
    ('UNTRUSTED_RECTANGLE11', '    0 4151    225  260'),
    ('UNTRUSTED_RECTANGLE12', '    0 4151    806  811'),
    ('UNTRUSTED_RECTANGLE13', '    0 4151   1357 1362'),
    ('UNTRUSTED_RECTANGLE14', '    0 4151   1908 1913'),
    ('UNTRUSTED_RECTANGLE15', '    0 4151   2459 2464'),
    ('UNTRUSTED_RECTANGLE16', '    0 4151   3010 3015'),
    ('UNTRUSTED_RECTANGLE17', '    0 4151   3561 3566'),
    ('UNTRUSTED_RECTANGLE18', '    0 4151   4112 4117'),
          ]
XDSINP = utils.merge_xds_input(XDSINP0, XDSINP1)

def parse_file_name(fullname):
    """
    Parse the fullname of an image and return
    (directory, basename, prefix, run_number, image_number)
    Keyword arguments
    fullname -- the full path name of the image file
    """
    # Directory of the file
    directory = os.path.dirname(fullname)

    # The basename of the file (i.e. basename - suffix)
    basename = os.path.basename(fullname).rstrip(DETECTOR_SUFFIX)

    # The prefix, image number, and run number
Esempio n. 3
0
RUN_NUMBER_IN_TEMPLATE = True
HEADER_VERSION = 1

# XDS input information
XDS_FLIP_BEAM = detector.XDS_FLIP_BEAM

# Import from more generic detector
XDSINP0 = detector.XDSINP
# Update the XDS information from the imported detector
# only if there are differnces or new keywords.
# The tuple should contain two items (key and value)
# ie. XDSINP1 = [("SEPMIN", "4"),]
XDSINP1 = [
    (),
]
XDSINP = merge_xds_input(XDSINP0, XDSINP1)

# Source information
# Flux of the beam
BEAM_FLUX = 8E11
# Size of the beam in microns
BEAM_SIZE_X = 50
BEAM_SIZE_Y = 20
# Shape of the beam - ellipse, rectangle
BEAM_SHAPE = "ellipse"
# Shape of the attenuated beam - circle or rectangle
BEAM_APERTURE_SHAPE = "circle"
# Gaussian description of the beam for raddose
BEAM_GAUSS_X = 0.03
BEAM_GAUSS_Y = 0.01
# Beam center calibration