Package: pymol / 2.4.0+dfsg-2

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