import os
Directory = '../'

f = open(Directory + 'USlocations.txt', 'wb') # change a to wb to append or overwrite
pretext = 'Ultrasound Locations '
# path = '= "/C/Workspaces/Multis_in vitro testing/RegistrationMarkers/'
# filename = os.listdir('../RegistrationMarkers')
fileName = []
# for x in filename:
#     if x.endswith('.jpg'):
#         fileName.append(x)
# filename = sorted(fileName)
# filename = filename[9:12] # change range for each set of 30 pts
cnt = 0
i = range(1,57)
# print i
for j in range(112):
    if j % 2 == 0 :
        f.write("%s%s %s%s%s\n" % (pretext, j, '= "', i[cnt],'.'))
        cnt += 1
    else:
        f.write("%s%s %s\n" % (pretext, j, '= "'))
f.close()

