-
Notifications
You must be signed in to change notification settings - Fork 3
Setup Necessary Software and links
You'll need links, python packages, and compiled cython files to make everything work!
This repo is not entirely stand-alone, you'll need three github repos working together:
- https://github.com/deapplegate/wtgpipeline : has all of the pre-processing and image-calibration and measurement stuff that's needed prior to calculating masses and getting the final lensing catalogs
- https://github.com/arwright3/gravitas : has stuff for calulating CC masses, p(z) masses, and Cosmos Mass Bias
- https://github.com/arwright3/quick : has some general tools you'll likely need (e.g. imagetools.py and cattools.py)
In order to get everything to work, you're going to have to make sure you clone my quick
gravitas
and wtgpipeline
repos as well.
You'll need tools from each of these directories, and the easiest way to do this is with links. Since github doesn't like repos that link outside the repo, I've included a script called setup_symlinks.sh
to help you get the right links in place.
Note: this script isn't as important anymore, at least not for the quick
and gravitas
repo. Instead you should place paths to the quick/gravitas/wtgpipeline repos in your .bash_profile
like this:
export quickpypath=/u/ki/awright/quick/pythons/
export gravitaspath=/u/ki/awright/gravitas/ export wtgpipelinepath=/u/ki/awright/wtgpipeline/
For most python scripts this should take care of everything since we've placed a sys.path.append(os.environ['quickpypath'])
in the scripts importing modules from that repo, likewise for gravitas and wtgpipeline.
Then use setup_symlinks.sh to get the necessary links to .sh
and other non-python scripts like this:
## make links in wtgpipeline/
cd ${wtgpipeline_repo_path}
./setup_symlinks.sh $quick_repo_path $gravitas_repo_path
## make links in gravitas/
cd $gravitas_repo_path4
./setup_symlinks.sh $quick_repo_path ${wtgpipeline_repo_path}
- cython
- pymc: conda install https://repo.continuum.io/pkgs/free/linux-64/pymc-2.3.6-np111py27_2.tar.bz2
- astroconda: I recommend getting all necessary astronomy python stuff from astroconda
You can compile all of the .pyx files by running make_pyx_setup.sh
with the one input being your anaconda path.
./make_pyx_setup.sh ${anaconda_path}