Changeset 264
- Timestamp:
- 01/22/11 15:23:23 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/synapse/synapse-render_video.py
r263 r264 20 20 #import Puzzlebox.Synapse.Interface as tgInterface 21 21 22 import sys22 import os, sys 23 23 24 24 from mpl_toolkits.mplot3d import Axes3D … … 245 245 data_keys.sort() 246 246 247 counter = 1 248 247 249 for each in data_keys: 248 250 … … 250 252 print each, 251 253 print data[each] 254 255 index = int(each) 256 257 output_image = "%s-values-%i.png" % (prefix, index) 258 259 output_path = os.path.join( os.getcwd(), \ 260 output_directory, \ 261 output_image ) 262 263 if DEBUG: 264 progress = int((float(counter) / len(data_keys)) * 100) 265 print '%i%% [%i/%i] %s' % \ 266 (progress, counter, len(data_keys), output_image) 267 268 269 renderCurrentValuesImage(x=data[each]['attention'], \ 270 y=data[each]['meditation'], \ 271 output_file = output_path) 272 273 274 counter += 1 252 275 253 276 … … 268 291 output_directory = each[ len("--directory="): ] 269 292 if each.startswith("--prefix="): 270 pre xfix = each[ len("--prexfix="): ]293 prefix = each[ len("--prefix="): ] 271 294 272 295 data = openData(input_file)
Note: See TracChangeset
for help on using the changeset viewer.