Skip to content

Commit

Permalink
cerebro/builddb: per project option and cert issues
Browse files Browse the repository at this point in the history
  • Loading branch information
WillForan authored and Elijah Hudlow committed Nov 20, 2024
1 parent 96deaf8 commit 1c4b9be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions 00_build_db.bash
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ build_dcm_db(){
mkdir -p db/

for project in "$@"; do
# convenient way to specify a project without having the full path
[[ ! -d "$project" && ! "$project" =~ / && -d "/disk/mace2/scan_data/$project" ]] &&
project=/disk/mace2/scan_data/$project

[ ! -d $project ] && echo "ERROR: failed to find project directory '$project'" >&2 && continue
pname=$(basename $project)
outtxt=db/$pname.txt
Expand Down
4 changes: 2 additions & 2 deletions mrrc.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
# 20241026 -init

# paper over centOS7+guix config issues
export SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt LC_ALL=C
export SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt LC_ALL=C LOGLEVEL=WARN
make .venv
. .venv/bin/activate

log(){ echo "$(date +"[%s] %F %T"):: $*" | tee -a build.log; }

log parse dicoms start
./00_build_db.bash /disk/mace2/scan_data/*
./00_build_db.bash /disk/mace2/scan_data/WPC-*

log starting sqlite db
cat db/*.txt | ./acq2sqlite.py
Expand Down

0 comments on commit 1c4b9be

Please sign in to comment.