Commit 86fda9f
Add tutorial for creating publication-ready images with draw_tree (#765)
* update pyproject.toml with optional dependencies for test suite and docs
* update GitHub actions to install optional dependencies when installing pygambit instead of using requirements.txt
* add doc dependencies: Cython, numpy, scipy
* try GH actions without testing docs
* Revert "try GH actions without testing docs"
This reverts commit 4d54262.
* remove pip install that is already covered by build-system in pyproject.toml
* fix typo mistake in doc dependencies list
* remove Cython, numpy and scipy from doc dependency list as these are already included in build-system or dependencies
* restore installation of build on linux job
* remove requirements.txt files
* update docs for new installation method
* update documentation instructions
* update readthedocs config
* try fixing linux build
* try again to fix linux job: let bash expand the filename first, then append extras
* Create catalog dir and move one EFG and one NFG into it from contrib/games
* ignore catalog files copied into pygambit
* add failing tests
* improve tests
* add pandas to pyproject.toml
* add test_catalog_load_invalid_slug
* create load function
* add catalog to __init__
* add games() function
* refactor to define READERS once
* Big refactor to get catalog files from catalog dir external to pygambit
* update Makefile.am for the 2 examples we moved into the catalog so far
* update Game.comment to be Game.description in Python code
* Revert "update Game.comment to be Game.description in Python code"
This reverts commit 7490ae6.
* Add initial update catalog script and RST page
* rename table headers on output df from game() func
* add generating the catalog csv for docs into GH actions
* Revert "add generating the catalog csv for docs into GH actions"
This reverts commit bd3c1f3.
* refactor update script so its run from repo root
* update readthedocs to build the catalog csv before docs build
* add function which updates Makefile.am
* use a proper path for CATALOG_CSV
* tidy update script
* use explicit python executable from the virtualenv to create CSV for catalog docs table in readthedocs yml
* add developer doc for updating the catalog
* Don't update Makefile.am by default
* consistency in notebook comment
* demo loading from catalog in tutorial 1
* load from catalog for game examples in advanced tutorials
* Try using pip instead of setuptools to ensure pyproject.toml deps installed for readthedocs build
* remove deleted contrib games from Makefile.am
* add a warning about moving games from contrib
* check if pandas duplications error exists if we dont save outputs on notebooks
* fix problem with print function
* resave notebook outputs
* Update writer.cc
* move catalog update script into build support
* rename script
* rename var
* update path to catalog update script in readthedocs yml and docs page
* move myserson fig into subfolder
* clarify script usage
* add test_catalog_load_subdir_slug
* update makefile
* update agent nb
* add test for slug in subdir of catalog
* update games func to list slugs correctly
* update test to avoid duplicates
* fix code for handling slugs that duplicates of those in subfolders
* tidy the games() refactor
* resave notebook
* strip nb outputs
* remove modification to games() that was fixing a local issue
* fix the update script to get correct paths
* remove unused var
* Add Windows handling
* fix incorrect var name and make consistent
* use as_posix for slugs
* add new notebook
* upgrade draw_tree version to 0.4.0
* 2smp game looks good
* add sections on saving images and further adjustments
* update headers
* update header further
* add comment
* clear saved outputs from all tutorials
* typo
* tidy read and save sections
* renumber and reorder tutorials
* update image to use sublevel_scaling
* clear outputs
* revert makefile changes
* move games back to contrib
* Move 2smp back again since it's used by tutorial 4
* tidy saving sections of tutorials 1 and 2
---------
Co-authored-by: Ted Turocy <ted.turocy@gmail.com>1 parent ff22925 commit 86fda9f
10 files changed
Lines changed: 618 additions & 4223 deletions
File tree
- catalog
- doc
- tutorials
- advanced_tutorials
- interoperability_tutorials
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
| |||
236 | 235 | | |
237 | 236 | | |
238 | 237 | | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| |||
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
| 314 | + | |
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
352 | 335 | | |
353 | 336 | | |
354 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
378 | 328 | | |
379 | 329 | | |
380 | 330 | | |
| |||
0 commit comments