Changeset 35961


Ignore:
Timestamp:
2022-01-11T14:49:25+13:00 (2 years ago)
Author:
davidb
Message:

Improvements to the running of the script, and its underlying Python component

Location:
main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare/07b-GENERATE-ESSENTIA-FEATURES-DATA--ALL-BATCHx8--EACH-A-NOHUP.sh

    r35912 r35961  
    1111
    1212nohup ./07b-GENERATE-ESSENTIA-FEATURES-DATA.sh "compute_audio_features" --start 2005 --end 2012 > nohup-compute-features-block7.out 2>&1 &
    13 nohup ./07b-GENERATE-ESSENTIA-FEATURES-DATA.sh "compute_audio_features" --start 2013 --end 2021 > nohup-compute-features-block8.out 2>&1 &
     13nohup ./07b-GENERATE-ESSENTIA-FEATURES-DATA.sh "compute_audio_features" --start 2013 --end $esc_cutoff_endyear > nohup-compute-features-block8.out 2>&1 &
  • main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare/07b-GENERATE-ESSENTIA-FEATURES-DATA--SMALL.sh

    r35947 r35961  
    1111
    1212./07b-GENERATE-ESSENTIA-FEATURES-DATA.sh "scrape_contestants" --start $year --end $year
    13 # ./07b-GENERATE-ESSENTIA-FEATURES-DATA.sh "download_audio|compute_audio_features" --start $year --end $year contestants-$year.csv
     13./07b-GENERATE-ESSENTIA-FEATURES-DATA.sh "download_audio" --start $year --end $year contestants-$year.csv
     14./07b-GENERATE-ESSENTIA-FEATURES-DATA.sh "compute_audio_features" --start $year --end $year
     15
    1416
    1517   
  • main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare/07b-GENERATE-ESSENTIA-FEATURES-DATA.sh

    r35947 r35961  
    9797export PATH=$PWD/$prep_dir:$PATH
    9898       
     99run_scrape_status=0
    99100if [ $run_scrape = "1" ] ; then
    100101    if [ $# = 0 ] ; then
     
    106107        && /bin/rm -f "votes-1957-${esc_cutoff_endyear}.csv" \
    107108        && /bin/rm -f "contestants-1957-${esc_cutoff_endyear}.csv" \
    108         && python3 -u ./main.py --start 1957 --end $esc_cutoff_endyear \
    109                \
    110         && /bin/rm -f "votes-1956-${esc_cutoff_endyear}.csv" \
    111         && /bin/rm -f "contestants-1956-${esc_cutoff_endyear}.csv" \
    112         && python3 -u ./main.py --start 1956 --end $esc_cutoff_endyear \
    113         && cd ..
     109        && python3 -u ./main.py --start 1957 --end $esc_cutoff_endyear
     110    run_scrape_status=$?
     111    cd ..
    114112    else
    115113    cd "$prep_dir" \
    116         && python3 -u ./main.py $* \
    117         && cd ..
     114        && python3 -u ./main.py $*
     115    run_scrape_status=$?
     116    cd ..
    118117    fi
    119118fi
    120119
    121 if [ $? = 0 ] && [ $run_download = "1" ] ; then
    122     #wget --no-check-certificate -nc -O "$prep_dir/contestants.csv" \
    123     #   https://github.com/Spijkervet/eurovision_dataset/releases/download/2020.0/contestants.csv \
    124 
     120run_download_status=0
     121if [ $run_scrape_status = 0 ] && [ $run_download = "1" ] ; then
    125122    if [ $# = 0 ] ; then
    126123    # append CSV fileanme to $*
    127     set -- "$@" "contestants-1956-${esc_cutoff_endyear}.csv"
     124    set -- "$@" "contestants-1956.csv" "contestants-1957-${esc_cutoff_endyear}.csv"
    128125    fi
    129126   
    130127    cd "$prep_dir" \
    131     && python3 -u ./audio.py $* \
    132     && cd ..
     128    && python3 -u ./audio.py $*
     129    run_download_status=$?
     130    cd ..
    133131fi
    134132
    135 if [ $? = 0 ] && [ $run_compute = "1" ] ; then
    136     if [ $# = 0 ] ; then
    137     # append CSV fileanme to $*
    138     set -- "$@" "contestants-1956-${esc_cutoff_endyear}.csv"
    139     fi
    140    
     133if [ $run_download_status = 0 ] && [ $run_compute = "1" ] ; then
    141134    cd "$prep_dir" \
    142135    && python3 -u ./audio_features.py $* \
Note: See TracChangeset for help on using the changeset viewer.