MCPcopy Create free account
hub / github.com/Image-Py/imagepy / check

Method check

imagepy/core/engine/table.py:74–95  ·  view source on GitHub ↗
(self, tps)

Source from the content-addressed store, hash-verified

72 if callback!=None:callback()
73
74 def check(self, tps):
75 print(self.note)
76 if tps == None:
77 IPy.alert('no table opened!')
78 return False
79 if 'req_sel' in self.note:
80 print(tps.rowmsk, tps.colmsk)
81 if isinstance(tps.rowmsk, slice) and\
82 isinstance(tps.colmsk, slice):
83 IPy.alert('no selection!')
84 return False
85 if 'req_row' in self.note:
86 print(tps.rowmsk, tps.colmsk)
87 if isinstance(tps.rowmsk, slice):
88 IPy.alert('need row selection!')
89 return False
90 if 'req_col' in self.note:
91 print(tps.rowmsk, tps.colmsk)
92 if isinstance(tps.colmsk, slice):
93 IPy.alert('need col selection!')
94 return False
95 return True
96
97 def snapshot(self, tps):
98 note = self.note

Callers 1

startMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected