Skip to content

Commit

Permalink
build: add mouser dataset to download script
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehsiao committed Feb 29, 2020
1 parent fd085dd commit df5ecfa
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions hack/opamps/download_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,21 @@ echo "Deleting $data_tar..."
rm $data_tar

echo "Done!"

echo "Downloading mouser op-amp dataset..."
url=https://stanford.box.com/shared/static/568p14l4zxnfbgtrtzpm8wr2ynp2328l.xz
data_tar=mouser_opamps.tar.xz

if type curl &>/dev/null; then
curl -RL --retry 3 -C - $url -o $data_tar
elif type wget &>/dev/null; then
wget -N $url -O $data_tar
fi

echo "Unpacking mouser op-amp dataset..."
tar vxf $data_tar -C data

echo "Deleting $data_tar..."
rm $data_tar

echo "Done!"

0 comments on commit df5ecfa

Please sign in to comment.