Guest User

Untitled

a guest
Jun 18th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. def __make_data_index(self, line):
  2. if(line.startswith("#")):
  3. self.offset += 1
  4. else:
  5. try:
  6. token = line.split()
  7. # make a tuple (x, y, index)
  8. entry = (float(token[1]), float(token[2]), int(token[0]))
  9. self.data_index.append(entry)
  10. except IndexError:
  11. pass
Add Comment
Please, Sign In to add comment