Last change
on this file since 17893 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
|
---|
10 | import sys
|
---|
11 | import pickle
|
---|
12 |
|
---|
13 | pklfile = open('can.pkl', 'rb')
|
---|
14 | can = pickle.load(pklfile)
|
---|
15 |
|
---|
16 | # now we display some things
|
---|
17 | print 'can contents'
|
---|
18 | for 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 |
|
---|
31 | print 'end of canread.py hit Ctrl-D to end'
|
---|
32 | print
|
---|
33 | print 'fur further examination of the can try one of these'
|
---|
34 | print " print can['results']['areas'] "
|
---|
35 | print " print can['settings']['data_file_names'] "
|
---|
36 | print " print can['src'][0] "
|
---|
37 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.