Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ To re-execute a notebook: `jupyter nbconvert --to notebook --execute --inplace <
A notebook handed to students must not change under them, so on Colab each one clones a release
tag, not `main`, and the package fetches tables from the same tag. To cut the next one:

1. Set `TAG` in `src/orteach/paths.py`, `version` in `pyproject.toml`, and `REF` in every setup cell (the eleven seeds and the six
1. Set `TAG` in `src/orteach/paths.py`, `version` in `pyproject.toml`, and `REF` in every setup cell (the sixteen seeds and the six
notebooks edited in place) to the new tag. `check_notebooks.py` refuses any setup cell that
disagrees with `TAG`, and `tests/test_paths.py` refuses a package version that does.
2. Re-execute, merge through a pull request with CI green.
Expand Down
2 changes: 1 addition & 1 deletion notebooks/01_lp_formulation/diet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/01_lp_formulation/goal_programming.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/02_simplex_and_bases/interior_point.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/02_simplex_and_bases/simplex_by_hand.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/03_duality_and_sensitivity/primal_and_dual.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/04_networks_and_transport/assignment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/04_networks_and_transport/transportation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/06_nonlinear_and_convex/curve_fit_lifting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/06_nonlinear_and_convex/pooling.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/07_stochastic_and_newsvendor/newsvendor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/07_stochastic_and_newsvendor/risk_measures.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/07_stochastic_and_newsvendor/server_farm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/08_monte_carlo_and_simulation/monte_carlo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/09_queueing_and_markov/markov_and_queues.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/10_game_theory/saddle_points.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/10_game_theory/zero_sum_game.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/11_decision_analysis/capital_budgeting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/12_energy_systems_pypsa/dispatch_to_pypsa.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/13_supply_chain/sourcing_and_resilience.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"import os, subprocess, sys\n",
"\n",
"REPO_URL = \"https://github.com/sear-labs/teaching-code\"\n",
"REF = \"v1.0.0\" # the release this notebook ships in: Colab clones THIS\n",
"REF = \"v1.0.1\" # the release this notebook ships in: Colab clones THIS\n",
"\n",
"try:\n",
" import google.colab # noqa: F401 - succeeds only on Colab\n",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "orteach"
version = "1.0.0"
version = "1.0.1"
description = "Teaching models for IE 3315, IE 5301 and REE 4301 — the package half of the notebook/package split"
requires-python = ">=3.10,<3.14"

Expand Down
2 changes: 1 addition & 1 deletion src/orteach/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import os
import urllib.request

TAG = "v1.0.0"
TAG = "v1.0.1"
REPO = "sear-labs/teaching-code"
RAW_URL = "https://raw.githubusercontent.com/%s/%s/data/raw/" % (REPO, TAG)
ENV = "ORTEACH_DATA"
Expand Down
2 changes: 1 addition & 1 deletion tools/seeds/seed_barrier.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def code(t):
import os, subprocess, sys

REPO_URL = "https://github.com/sear-labs/teaching-code"
REF = "v1.0.0" # the release this notebook ships in: Colab clones THIS
REF = "v1.0.1" # the release this notebook ships in: Colab clones THIS

try:
import google.colab # noqa: F401 - succeeds only on Colab
Expand Down
2 changes: 1 addition & 1 deletion tools/seeds/seed_curvefit.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def code(t):
import os, subprocess, sys

REPO_URL = "https://github.com/sear-labs/teaching-code"
REF = "v1.0.0" # the release this notebook ships in: Colab clones THIS
REF = "v1.0.1" # the release this notebook ships in: Colab clones THIS

try:
import google.colab # noqa: F401 - succeeds only on Colab
Expand Down
2 changes: 1 addition & 1 deletion tools/seeds/seed_diet.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def code(t):
import os, subprocess, sys

REPO_URL = "https://github.com/sear-labs/teaching-code"
REF = "v1.0.0" # the release this notebook ships in: Colab clones THIS
REF = "v1.0.1" # the release this notebook ships in: Colab clones THIS

try:
import google.colab # noqa: F401 - succeeds only on Colab
Expand Down
2 changes: 1 addition & 1 deletion tools/seeds/seed_distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def code(t):
import os, subprocess, sys

REPO_URL = "https://github.com/sear-labs/teaching-code"
REF = "v1.0.0" # the release this notebook ships in: Colab clones THIS
REF = "v1.0.1" # the release this notebook ships in: Colab clones THIS

try:
import google.colab # noqa: F401 - succeeds only on Colab
Expand Down
2 changes: 1 addition & 1 deletion tools/seeds/seed_duality.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def code(t):
import os, subprocess, sys

REPO_URL = "https://github.com/sear-labs/teaching-code"
REF = "v1.0.0" # the release this notebook ships in: Colab clones THIS
REF = "v1.0.1" # the release this notebook ships in: Colab clones THIS

try:
import google.colab # noqa: F401 - succeeds only on Colab
Expand Down
2 changes: 1 addition & 1 deletion tools/seeds/seed_energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def code(t):
import os, subprocess, sys

REPO_URL = "https://github.com/sear-labs/teaching-code"
REF = "v1.0.0" # the release this notebook ships in: Colab clones THIS
REF = "v1.0.1" # the release this notebook ships in: Colab clones THIS

try:
import google.colab # noqa: F401 - succeeds only on Colab
Expand Down
2 changes: 1 addition & 1 deletion tools/seeds/seed_games.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def code(t):
import os, subprocess, sys

REPO_URL = "https://github.com/sear-labs/teaching-code"
REF = "v1.0.0" # the release this notebook ships in: Colab clones THIS
REF = "v1.0.1" # the release this notebook ships in: Colab clones THIS

try:
import google.colab # noqa: F401 - succeeds only on Colab
Expand Down
2 changes: 1 addition & 1 deletion tools/seeds/seed_goal.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def code(t):
import os, subprocess, sys

REPO_URL = "https://github.com/sear-labs/teaching-code"
REF = "v1.0.0" # the release this notebook ships in: Colab clones THIS
REF = "v1.0.1" # the release this notebook ships in: Colab clones THIS

try:
import google.colab # noqa: F401 - succeeds only on Colab
Expand Down
2 changes: 1 addition & 1 deletion tools/seeds/seed_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def code(t):
import os, subprocess, sys

REPO_URL = "https://github.com/sear-labs/teaching-code"
REF = "v1.0.0" # the release this notebook ships in: Colab clones THIS
REF = "v1.0.1" # the release this notebook ships in: Colab clones THIS

try:
import google.colab # noqa: F401 - succeeds only on Colab
Expand Down
2 changes: 1 addition & 1 deletion tools/seeds/seed_markov.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def code(t):
import os, subprocess, sys

REPO_URL = "https://github.com/sear-labs/teaching-code"
REF = "v1.0.0" # the release this notebook ships in: Colab clones THIS
REF = "v1.0.1" # the release this notebook ships in: Colab clones THIS

try:
import google.colab # noqa: F401 - succeeds only on Colab
Expand Down
2 changes: 1 addition & 1 deletion tools/seeds/seed_pooling.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def code(t):
import os, subprocess, sys

REPO_URL = "https://github.com/sear-labs/teaching-code"
REF = "v1.0.0" # the release this notebook ships in: Colab clones THIS
REF = "v1.0.1" # the release this notebook ships in: Colab clones THIS

try:
import google.colab # noqa: F401 - succeeds only on Colab
Expand Down
2 changes: 1 addition & 1 deletion tools/seeds/seed_risk.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def code(t):
import os, subprocess, sys

REPO_URL = "https://github.com/sear-labs/teaching-code"
REF = "v1.0.0" # the release this notebook ships in: Colab clones THIS
REF = "v1.0.1" # the release this notebook ships in: Colab clones THIS

try:
import google.colab # noqa: F401 - succeeds only on Colab
Expand Down
2 changes: 1 addition & 1 deletion tools/seeds/seed_saddle.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def code(t):
import os, subprocess, sys

REPO_URL = "https://github.com/sear-labs/teaching-code"
REF = "v1.0.0" # the release this notebook ships in: Colab clones THIS
REF = "v1.0.1" # the release this notebook ships in: Colab clones THIS

try:
import google.colab # noqa: F401 - succeeds only on Colab
Expand Down
2 changes: 1 addition & 1 deletion tools/seeds/seed_serverfarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def code(t):
import os, subprocess, sys

REPO_URL = "https://github.com/sear-labs/teaching-code"
REF = "v1.0.0" # the release this notebook ships in: Colab clones THIS
REF = "v1.0.1" # the release this notebook ships in: Colab clones THIS

try:
import google.colab # noqa: F401 - succeeds only on Colab
Expand Down
2 changes: 1 addition & 1 deletion tools/seeds/seed_simplex.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def code(t):
import os, subprocess, sys

REPO_URL = "https://github.com/sear-labs/teaching-code"
REF = "v1.0.0" # the release this notebook ships in: Colab clones THIS
REF = "v1.0.1" # the release this notebook ships in: Colab clones THIS

try:
import google.colab # noqa: F401 - succeeds only on Colab
Expand Down
2 changes: 1 addition & 1 deletion tools/seeds/seed_sourcing.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def code(t):
import os, subprocess, sys

REPO_URL = "https://github.com/sear-labs/teaching-code"
REF = "v1.0.0" # the release this notebook ships in: Colab clones THIS
REF = "v1.0.1" # the release this notebook ships in: Colab clones THIS

try:
import google.colab # noqa: F401 - succeeds only on Colab
Expand Down
Loading