Skip to content

Commit 546a4f1

Browse files
committed
initial commit of CDS 110, Winter 2024 lectures
1 parent 373ff11 commit 546a4f1

18 files changed

Lines changed: 7791 additions & 2691 deletions

examples/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.ipynb-clean

examples/Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Makefile for python-control examples
2+
# RMM, 6 Jul 2024
3+
#
4+
# This makefile allows cleanup and posting of Jupyter notebooks into
5+
# Google Colab.
6+
7+
NOTEBOOKS = cds110-L*_*.ipynb
8+
FILES = satellite-dish.png disk-drive.png robotic-arm.png \
9+
springmass-coupled.png pvtol.py kincar.py estimation.png ssctrl.png \
10+
zn-step-response.png zn-step-table.png zn-step-improved.png \
11+
pid-aw-diagram.png
12+
GDRIVE= gdrive:python-control/examples
13+
14+
# Clean up notebooks to remove output
15+
clean: .ipynb-clean
16+
.ipynb-clean: $(NOTEBOOKS)
17+
@for i in $?; do \
18+
echo jupyter nbconvert --clear-output clear-metadata $$i; \
19+
jupyter nbconvert \
20+
--ClearMetadataPreprocessor.enabled=True \
21+
--clear-output $$i; \
22+
done
23+
touch $@
24+
25+
# Post Jupyter notebooks on course website
26+
post: .ipynb-clean $(FILES)
27+
rclone -u copy $(NOTEBOOKS) $(FILES) $(GDRIVE)

0 commit comments

Comments
 (0)