Skip to content

Commit

Permalink
Merge pull request #4 from lsst/tickets/DM-3200
Browse files Browse the repository at this point in the history
Get demo working on OS X El Capitan
  • Loading branch information
timj committed Nov 16, 2015
2 parents b9747a7 + 547e5dc commit b08dba2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion bin/demo.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/bash

# On OS X El Capitan we need to pass through the library load path
if [[ $(uname -s) = Darwin* ]]; then
if [[ -z "$DYLD_LIBRARY_PATH" ]]; then
export DYLD_LIBRARY_PATH=$LSST_LIBRARY_PATH
fi
fi

# Assumes eups and DM packages: lsst_distrib obs_sdss, are eups-setup.
source $EUPS_DIR/bin/setups.sh

Expand Down Expand Up @@ -49,7 +56,10 @@ setup --nolocks -v -r ./astrometry_net_data astrometry_net_data

rm -rf output detected-sources.txt output_small detected-sources_small.txt
processCcdSdss.py input --id run=4192 filter=$FILTER_SET_4192 camcol=4 field=300 --id run=6377 filter=$FILTER_SET_6377 camcol=4 field=399 --output output$SIZE_EXT
./bin/export-results output$SIZE_EXT > detected-sources$SIZE_EXT.txt

# We need to explicitly specify Python here to allow the library load
# path environment to be passed to export-results on modern OS X versions.
python ./bin/export-results output$SIZE_EXT > detected-sources$SIZE_EXT.txt

echo
echo "Processing completed successfully. The results are in detected-sources$SIZE_EXT.txt."

0 comments on commit b08dba2

Please sign in to comment.