Skip to content

Commit

Permalink
MNT #45 pull some old weeds
Browse files Browse the repository at this point in the history
  • Loading branch information
Service Account for Jan Ilavsky committed Sep 17, 2020
1 parent d2d4051 commit fd87e5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 47 deletions.
30 changes: 1 addition & 29 deletions buildSpecPlots.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,42 +18,14 @@
CODE_DIR=/home/beams/USAXS/Documents/eclipse/USAXS/livedata
PROGRAM=$CODE_DIR/specplotsAllScans.py
LOGFILE=/share1/local_livedata/specplots/specplots.log
# NOTE: code is still python 2.7
#PYTHON=/APSshare/epd/rh6-x86_64/bin/python
PYTHON=/APSshare/anaconda/x86_64/bin/python
HDF5_DISABLE_VERSION_CHECK=2

# TODO: remove SPEC_DATA_PATTERN and all references
# Code below uses recent_spec_data_files.py

# change the SPEC_DATA_PATTERN periodically to reduce the search time
# this is very important, for example, just this one directory:
# /data/USAXS_data/2013-1*/*.dat takes about a minute to run
#
#SPEC_DATA_PATTERN=/data/USAXS_data/2010-04/*.dat
#SPEC_DATA_PATTERN=/data/USAXS_data/201*-*/*.dat
#SPEC_DATA_PATTERN=/data/USAXS_data/2013-1*/*.dat
#SPEC_DATA_PATTERN=/data/USAXS_data/2014-*/*.dat
#SPEC_DATA_PATTERN=/share1/USAXS_data/2015-*/*.dat
#SPEC_DATA_PATTERN=/share1/USAXS_data/2016-*/*.dat
#SPEC_DATA_PATTERN=/share1/USAXS_data/2017-*/*.dat
#SPEC_DATA_PATTERN=/share1/USAXS_data/2018-*/*.dat
SPEC_DATA_PATTERN=/share1/USAXS_data/2020-08/*.dat
#SPEC_DATA_PATTERN=/share1/USAXS_data/2019-*/*.dat

# TODO: remove ploticus and all references
#export PLOTICUS_BASE=/home/beams/USAXS/Documents/ploticus/pl241src
#export PLOTICUS_PREFABS=$PLOTICUS_BASE/prefabs

cd $CODE_DIR
echo "#= $$ --Start--- `/bin/date`" >> $LOGFILE 2>&1

#filelist=`/bin/ls -1 $SPEC_DATA_PATTERN`
# for item in $filelist;
# do
# # echo $item >> $LOGFILE 2>&1;
# $PYTHON $PROGRAM $item >> $LOGFILE 2>&1;
# done

# 2019-07-09, prj: look at scan logs and build the list
filelist=`$PYTHON ./recent_spec_data_files.py`

Expand Down
19 changes: 1 addition & 18 deletions developer_test_specplotsAllScans.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,6 @@
logger = logging.getLogger("pydev-shell")
logger.setLevel(logging.DEBUG)

# # note: made soft link to simulate this path
# # mkdir -p /home/mintadmin/Documents/usaxs_sim/USAXS_data
# # cd /
# # ln -s /home/mintadmin/Documents/usaxs_sim ./share1
# path = "/share1/USAXS_data/2019-06"

# sys.argv.append(os.path.join(path, "06_26_NXSchool0626.dat"))
# sys.argv.append(os.path.join(path, "06_27_NX2.dat"))

# f = "/share1/local_livedata/specplots/mtime_cache.txt"
# if os.path.exists(f):
# os.remove(f)
# f = "/share1/local_livedata/specplots/2019/"
# if os.path.exists(f):
# shutil.rmtree(f, ignore_errors=True)

filelist = recent_spec_data_files.list_recent_spec_data_files()
sys.argv += filelist
sys.argv += recent_spec_data_files.list_recent_spec_data_files()

specplotsAllScans.main()

0 comments on commit fd87e5f

Please sign in to comment.