Set up Installed Versions of MAF
May 20:  This documentation is no longer accurate.  The tags have disappeared on ops2.
 
## There are three places MAF is installed on each machine
#    The officially tagged and released version which is installed with EUPS, so no git commands will work here
#    once it is installed or updated, to use
source /lsst_stack/loadLSST.csh
setup sims_maf -t sims        # now 2.1.*
eups list sims_maf             # check that the version, eups tag, and setup are correct
# skip ahead to "Run MAF Analysis Scripts" section
       
#    The "bleeding-edge" version that is used for production in the case we needed the latest code changes before an official 
#    release; git clone is used to install and git commands work here; we first update to the latest changes before running
source /lsst_stack/loadLSST.csh
setup sims_maf -t opsim -t sims # "opsim" = "maf_dev" is a special tag for this location which is a bleeding edge version for production   
cd /lsst_repos/sims_maf        # or "cd $SIMS_DIR_MAF"
git pull                       # this pulls down the latest changes locally; if it says "Already up-to-date" then you are done 
scons						   # if there are changes pulled then run "scons" to update version.py
git status                     # or "git branch" both of these confirm which branch you are on - should be master unless you needed to
git checkout feature/SIM-123-a-new-fix-for-something   # checkout a branch not yet merged to master but you still want to use it for production
# additionally you can check the version
python
>>>> import lsst.sims.maf
>>>> lsst.sims.maf.__version__
# skip ahead to "Run MAF Analysis Scripts" section
 
#    A "development" version in the users home directory for the user to test code changes (for example during a code review) 
#    or for the user to make and commit changes; git clone is used to install and git commands work here
source /lsst_stack/loadLSST.csh
setup sims_maf -t $USER -t sims # "$USER" is a special tag for this location which is for development
cd $SIMS_MAF_DIR                # cd /home/$USER/repos/sims_maf
# update as for "bleeding-edge" or as needed
# skip ahead to "Run MAF Analysis Scripts" section
  • No labels