#! /bin/bash
tables=(
  "12AX7 triode 12ax7"
  "12AX7A triode 12ax7A"
  "12AU7 triode 12AU7"
  "12AT7 triode 12AT7"
  "12AY7 triode 12AY7"
  "12AZ7 triode 12AZ7"
  "12BH7A triode 12BH7A"
  #"6V6 triode 6V6"
  "6DJ8 triode 6DJ8"
  "6C16 triode 6C16"
  "6AN8T triode 6AN8T"
  "7025 triode 7025"
  "SV6N1P triode SV6N1P"
  #"2A3 triode 2A3"
  #"300B triode 300B"
  #"6C33C triode 6C33C"
  "ECC83 triode ECC83"
  "ECL80T triode ECL80T"
  "ECL81T triode ECL81T"
  "ECL83T triode ECL83T"
  "JJECC81 triode JJECC81"
  "JJECC82 triode JJECC82"
  "JJECC83S triode JJECC83S"
  "JJECC99 triode JJECC99"

  "JJEL34 pentode JJEL34"
  "JJKT88 pentode JJKT88"
  "JJ6L6GC pentode JJ6L6GC"
  "6AN8P pentode 6AN8P"
  "6L6CG pentode 6L6CG"
  "6L6GB pentode 6L6GB"
  "6550 pentode 6550"
  "KT88 pentode KT88"
  "KT66 pentode KT66"
  "EL34_o pentode EL34_o"
  "EL34 pentode EL34"
  "SVEL34 pentode SVEL34"
  "SV6L6GC pentode SV6L6GC"
  "EL84 pentode EL84"
  "6AB8 pentode 6AB8"
  "EF80 pentode EF80"
  "EF83 pentode EF83"
  "7199P pentode 7199P"
  "6BQ5 pentode 6BQ5"
 
)

rm -rf ./plots
rm -rf ./tubes
mkdir -p ./plots
mkdir -p ./tubes
for f in "${tables[@]}"; do
  set -- $f
  python ../tube_transfer.py table $1 $2 > "./tubes/"$3".cc"
  cd ./plots ; python ../../tube_transfer.py s_plot $1 $2 
  cd ../ ;
  echo $1 $2
done
