source: orange/Orange/doc/reference/variableReuse-load.py @ 9671:a7b056375472

Revision 9671:a7b056375472, 682 bytes checked in by anze <anze.staric@…>, 2 years ago (diff)

Moved orange to Orange (part 2)

Line 
1import orange
2import warnings
3
4warnings.simplefilter('ignore', orange.KernelWarning)
5
6MakeStatus = orange.Variable.MakeStatus
7
8base = orange.ExampleTable("reuse-load-1.tab")
9b2 = orange.ExampleTable("reuse-load-1.tab")
10print b2.attributeLoadStatus
11print " "+"  ".join(["N "[x==y] for x,y in zip(base.domain, b2.domain)])
12
13for status in range(5):
14    del base
15    del b2
16    del x
17    del y
18    base = orange.ExampleTable("reuse-load-1.tab")
19    b2 = orange.ExampleTable("reuse-load-2.tab", createNewOn=status)
20    print status
21    print base.attributeLoadStatus
22    print b2.attributeLoadStatus
23    print " "+"  ".join(["N "[x==y] for x,y in zip(base.domain, b2.domain)])
24    print
Note: See TracBrowser for help on using the repository browser.