Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. fc_row_count = []
  2.  
  3. for fc in firms_distance_panel_fc:
  4.  
  5. countrows_result = ap.GetCount_management(fc)
  6. count = int(countrows_result.getOutput(0))
  7. fc_row_count.append(count)
  8.  
  9. same_count = fc_row_count.count(fc_row_count[0]) == len(fc_row_count)
  10.  
  11. if same_count:
  12. print "Pass"
  13.  
  14. else:
  15.  
  16. print "At least one feature class have a different number of observation from the other feature classes"
  17. sys.exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement