source: fact/tools/pyscripts/examples/result_collection/canread.py@ 13408

Last change on this file since 13408 was 13114, checked in by neise, 13 years ago
added some examples
  • Property svn:executable set to *
File size: 927 bytes
Line 
1#!/usr/bin/python -i
2
3# Please read first:
4# * readme.1st and
5# * area_vs_hist_with_can.py
6# * fake_analysis.py
7#
8# this script is reading the outout of fake analysis.py
9# and displaying it
10import sys
11import pickle
12
13pklfile = open('can.pkl', 'rb')
14can = pickle.load(pklfile)
15
16# now we display some things
17print 'can contents'
18for key in can.keys():
19 print key, type(can[key])
20 if type(can[key]) == type(dict()):
21 print '-->'
22 for k in can[key].keys():
23 print ' ',k, type(can[key][k]),
24 if type(can[key][k])==type(list()):
25 print len(can[key][k])
26 else:
27 print
28
29 print '<--'
30
31print 'end of canread.py hit Ctrl-D to end'
32print
33print 'fur further examination of the can try one of these'
34print " print can['results']['areas'] "
35print " print can['settings']['data_file_names'] "
36print " print can['src'][0] "
37
Note: See TracBrowser for help on using the repository browser.