Debian Codegraph @

debian/patches/40_mstop_movies.patch

raw symbols SCIP
1 Descriptionscip-debian debian pymol 3.1.0+dfsg-1 pymol/patches/`40_mstop_movies.patch`#Description.: Modify examples so that they do not run forever
2 When invoked in script mode (-c) pymol up until v2 used to exit; newer
3 versions will loop the aninamtion forever. This patch puts an explicit
4 stop at the end of each script where there is an animation being generated
5 to make it stop playing.
6 .
7 While this potentially makes the examples less useful to run from the
8 command line themselves without editing, it at least fixes the tests.
9 Authorscip-debian debian pymol 3.1.0+dfsg-1 pymol/patches/`40_mstop_movies.patch`#Author.: Stuart Prescott <[email protected]scip-debian . . . identity/`[email protected]`.>
10 Bugscip-debian debian pymol 3.1.0+dfsg-1 pymol/patches/`40_mstop_movies.patch`#Bug.: #897191scip-debian-bts debian-bts . . 897191:
11 --- a/examples/cookbook/area_diff.pmlscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/cookbook/area_diff.pml`:
12 +++ b/examples/cookbook/area_diff.pmlscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/cookbook/area_diff.pml`:
13 @@ -69,4 +69,5 @@ set surface_solvent
14
15 mplay
16
17 +mstop
18
19 --- a/examples/cookbook/scenes2movie.pmlscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/cookbook/scenes2movie.pml`:
20 +++ b/examples/cookbook/scenes2movie.pmlscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/cookbook/scenes2movie.pml`:
21 @@ -59,3 +59,4 @@ mview interpolate
22 rewind
23 mplay
24
25 +mstop
26 --- a/examples/devel/cgo_label_hack.pyscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/devel/cgo_label_hack.py`:
27 +++ b/examples/devel/cgo_label_hack.pyscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/devel/cgo_label_hack.py`:
28 @@ -1,4 +1,5 @@
29 import math
30 +import time
31 from pymol.cgo import *
32 from pymol import cmd
33
34 @@ -64,3 +65,6 @@ cmd.clip('far',-5)
35
36 cmd.mplay()
37
38 +time.sleep(3)
39 +
40 +cmd.mstop()
41 --- a/examples/devel/cgo02.pyscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/devel/cgo02.py`:
42 +++ b/examples/devel/cgo02.pyscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/devel/cgo02.py`:
43 @@ -1,6 +1,7 @@
44 from pymol.cgo import *
45 from pymol import cmd
46 import math
47 +import time
48
49 # this is an example of creating a cgo object consisting of multiple
50 # states which form a movie
51 @@ -47,4 +48,6 @@ cmd.clip('far',-5)
52
53 cmd.mplay()
54
55 -
56 +time.sleep(3)
57 +
58 +cmd.mstop()
59 --- a/examples/devel/cgo03.pyscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/devel/cgo03.py`:
60 +++ b/examples/devel/cgo03.pyscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/devel/cgo03.py`:
61 @@ -1,6 +1,7 @@
62 from pymol.cgo import *
63 from pymol import cmd
64 import math
65 +import time
66
67 # a more comple example of using cgo's to create a fancy animation.
68
69 @@ -84,4 +85,6 @@ cmd.turn('x',-60)
70
71 cmd.mplay()
72
73 -
74 +time.sleep(3)
75 +
76 +cmd.mstop()
77 --- a/examples/devel/webgui02.pyscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/devel/webgui02.py`:
78 +++ b/examples/devel/webgui02.pyscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/devel/webgui02.py`:
79 @@ -8,6 +8,7 @@ except ImportError:
80
81 import time
82 import cgi
83 +import string
84 import threading
85 import traceback
86 import os, sys, re
87 --- a/examples/devel/scenes_to_movie01.pmlscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/devel/scenes_to_movie01.pml`:
88 +++ b/examples/devel/scenes_to_movie01.pmlscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/devel/scenes_to_movie01.pml`:
89 @@ -73,5 +73,5 @@ rewind
90
91 mplay
92
93 -
94 +mstop
95
96 --- a/examples/devel/chempy_model03.pyscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/devel/chempy_model03.py`:
97 +++ b/examples/devel/chempy_model03.pyscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/devel/chempy_model03.py`:
98 @@ -7,12 +7,7 @@ import time
99
100 # first we need a model
101
102 -if os.path.exists("$PYMOL_PATH/test/dat/pept.pdb"):
103 - cmd.load("$PYMOL_PATH/test/dat/pept.pdb","demo")
104 -else:
105 - from inspect import getsourcefile
106 - current_file_dir = os.path.dirname(os.path.abspath(getsourcefile(lambda:0)))
107 - cmd.load(os.path.join(current_file_dir, "../../test/dat/pept.pdb"), "demo")
108 +cmd.load("$PYMOL_PATH/test/dat/pept.pdb","demo")
109
110 # let's dress it up a little bit
111
112 @@ -43,3 +38,7 @@ cmd.mplay()
113
114 # by default, PyMOL plays ~30 fps.
115 # "set movie_delay=0" to see maximum speed...
116 +
117 +time.sleep(3)
118 +
119 +cmd.mstop()
120 --- a/examples/devel/gl03.pyscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/devel/gl03.py`:
121 +++ b/examples/devel/gl03.pyscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/devel/gl03.py`:
122 @@ -5,6 +5,7 @@ object which updates coordinates every f
123 '''
124
125 import numpy
126 +import time
127 from OpenGL.GL import *
128 from pymol.callback import Callback
129 from pymol import cmd
130 @@ -105,3 +106,6 @@ cmd.turn('x',20)
131 cmd.mset('1-62')
132 cmd.mplay()
133
134 +time.sleep(3)
135 +
136 +cmd.mstop()
137 --- a/data/demo/cgo03.pyscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`data/demo/cgo03.py`:
138 +++ b/data/demo/cgo03.pyscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`data/demo/cgo03.py`:
139 @@ -1,6 +1,7 @@
140 from pymol.cgo import *
141 from pymol import cmd
142 import math
143 +import time
144
145 # a more comple example of using cgo's to create a fancy animation.
146
147 @@ -88,4 +89,6 @@ cmd.turn('x',-60)
148
149 cmd.mplay()
150
151 -
152 +time.sleep(3)
153 +
154 +cmd.mstop()
155 --- a/examples/devel/mutate02.pyscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/devel/mutate02.py`:
156 +++ b/examples/devel/mutate02.pyscip-debian debian pymol 3.1.0+dfsg-1 pymol/upstream/`examples/devel/mutate02.py`:
157 @@ -1,5 +1,7 @@
158 # This example mutates every residue of a chain to alanine.
159
160 +import string
161 +
162 # load a structure
163
164 cmd.load("$TUT/1hpv.pdb")