Skip to content

Commit df5ecfa

Browse files
committed
build: add mouser dataset to download script
1 parent fd085dd commit df5ecfa

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

hack/opamps/download_data.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,21 @@ echo "Deleting $data_tar..."
1515
rm $data_tar
1616

1717
echo "Done!"
18+
19+
echo "Downloading mouser op-amp dataset..."
20+
url=https://stanford.box.com/shared/static/568p14l4zxnfbgtrtzpm8wr2ynp2328l.xz
21+
data_tar=mouser_opamps.tar.xz
22+
23+
if type curl &>/dev/null; then
24+
curl -RL --retry 3 -C - $url -o $data_tar
25+
elif type wget &>/dev/null; then
26+
wget -N $url -O $data_tar
27+
fi
28+
29+
echo "Unpacking mouser op-amp dataset..."
30+
tar vxf $data_tar -C data
31+
32+
echo "Deleting $data_tar..."
33+
rm $data_tar
34+
35+
echo "Done!"

0 commit comments

Comments
 (0)