source: orange/orange/doc/reference/variableReuse-load.py @ 4824:9f2ef583dc79

Revision 4824:9f2ef583dc79, 682 bytes checked in by janezd <janez.demsar@…>, 6 years ago (diff)
  • merged with ver1.0 (AGAIN! what's wrong? why is anything changed again?!)
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.