-
- Downloads
improve the tutorial script and image buiding machinery
The basic idea remains the same, but should work much better now. The difference is that images/example.py.diff is now a patch with complete context and becomes the authoritative source for both the visible flavor of an example as well as for its figure-generating variant. Both tutorial/example.py and images/example.py are extracted from this file by 'make html'. Thanks to the complete context the diffs are quite readable and may be modified directly. Alternatively, one may also modify the generated scripts. When tutorial/example.py has been modified, it will be patched and saved as images/example.py. The patching is done using the tool 'wiggle' that works much better than 'patch'. If a conflict occurs, conflict markers are added to the output file and its dated back to the dawn of time (i.e. 1970) in order to mark the conflicts as not yet resolved. After resolving, 'make html' is simply run again. Upon a successful execution of the figure-generating script the diff gets recreated automatically, 'generate-diffs' no longer exists.
Showing
- doc/source/tutorial/ab_ring.py 0 additions, 127 deletionsdoc/source/tutorial/ab_ring.py
- doc/source/tutorial/band_structure.py 0 additions, 52 deletionsdoc/source/tutorial/band_structure.py
- doc/source/tutorial/closed_system.py 0 additions, 140 deletionsdoc/source/tutorial/closed_system.py
- doc/source/tutorial/discretize.py 0 additions, 222 deletionsdoc/source/tutorial/discretize.py
- doc/source/tutorial/faq.py 0 additions, 450 deletionsdoc/source/tutorial/faq.py
- doc/source/tutorial/graphene.py 0 additions, 179 deletionsdoc/source/tutorial/graphene.py
- doc/source/tutorial/kernel_polynomial_method.py 0 additions, 219 deletionsdoc/source/tutorial/kernel_polynomial_method.py
- doc/source/tutorial/magnetic_texture.py 0 additions, 245 deletionsdoc/source/tutorial/magnetic_texture.py
- doc/source/tutorial/plot_graphene.py 0 additions, 112 deletionsdoc/source/tutorial/plot_graphene.py
- doc/source/tutorial/plot_qahe.py 0 additions, 71 deletionsdoc/source/tutorial/plot_qahe.py
- doc/source/tutorial/plot_zincblende.py 0 additions, 59 deletionsdoc/source/tutorial/plot_zincblende.py
- doc/source/tutorial/quantum_well.py 0 additions, 88 deletionsdoc/source/tutorial/quantum_well.py
- doc/source/tutorial/quantum_wire.py 0 additions, 121 deletionsdoc/source/tutorial/quantum_wire.py
- doc/source/tutorial/spin_orbit.py 0 additions, 104 deletionsdoc/source/tutorial/spin_orbit.py
- doc/source/tutorial/superconductor.py 0 additions, 132 deletionsdoc/source/tutorial/superconductor.py
Loading
Please register or sign in to comment