code: Testing
This commit is contained in:
@ -1072,3 +1072,20 @@ def is_landmark(p, lmdks):
|
||||
if len(lmdks) > 0 and any(np.equal(lmdks, p).all(1)):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
seq = [1, 2, 3, 4, 5, 6, 7, 8]
|
||||
lmdk = [1, 3, 5, 8]
|
||||
print(get_hist(seq, lmdk))
|
||||
start_time = time.process_time()
|
||||
# main(args)
|
||||
end_time = time.process_time()
|
||||
print('##############################\n'
|
||||
'Time : %.4fs\n'
|
||||
'##############################\n'
|
||||
%(end_time - start_time), flush=True)
|
||||
except KeyboardInterrupt:
|
||||
print('Interrupted by user.')
|
||||
exit()
|
||||
|
Reference in New Issue
Block a user