#!/bin/bash
#
# run the fast data processing, assumes that the environment is configured
# with XDS, CCP4 on the PATH and the forkintegrate script properly configured
# if -j > 1 or -J set and -j == 0.
#

full_path="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"
export FAST_DP_ROOT=`dirname "$full_path" | sed 's/\/bin$//'`
export PHENIX_TRUST_OTHER_ENV=1

# extend to (hopefully) 4096 file handles... for big Eiger sets
ulimit -n `ulimit -Hn 2>&1 |sed 's/unlimited/4096/'`

cctbx.python ${FAST_DP_ROOT}/src/fast_dp.py $@
