Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Bundle up and move out old lgm-tree
- #
- set -x
- set -e
- echo "Started: " $(date)
- echo $PYTHONPATH
- export TERM=xterm
- export TMPDIR=/tmp/$(date +%s)
- mkdir $TMPDIR
- function lgm_export () {
- local TMPDIR="$1"
- local SRCDIR="$2"
- local TGTDIR=${TMPDIR}/$(dirname "$SRCDIR")
- mkdir -p "$TGTDIR"
- mv "$SRCDIR" "$TGTDIR"
- }
- export SHELL=/bin/bash
- export -f lgm_export
- find /opt/var/me.acr/ginger/nobody/ -name lgm | parallel "lgm_export $TMPDIR {}"
- tar cvfz /var/tmp/lgm-bundle-$(date +%s).tgz $TMPDIR
- rm -rf $TMPDIR
- #
- # Rerun out-of-sample period.
- #
- set -e
- set -x
- export SHELL=/bin/bash
- source /usr/share/usepackage/use.bsh
- use bbginger
- use bbruntime
- source /opt/bbginger/current/config/lgm/daily-params.sh
- export LGM_TBEG=2014-06-30
- export LGM_TEND=2015-12-17
- export LGM_LEVEL_GIVEN=-1
- export LGM_LEVEL_TARGET=6
- export LGM_COV_LEAD="13 years - 8 months"
- lgm-run
- lgm-calc-performance
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement