Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- for i in range(6):
- path = 'images/figure' + str(i + 1) + '.txt'
- file = open(path)
- mm_horizontal = float(file.readline())
- file.close()
- image = np.loadtxt(path, skiprows=2)
- res = mm_horizontal / image.shape[1]
- print('figure' + str(i + 1) + '.txt: ' + str(res))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement