import glob import sys sys.path.append(r'C:\clones\desicos') from desicos.conecylDB.read_write import xyz2thetazimp, xyzthick2thetazthick for path in glob.glob('*_msi.txt'): xyz2thetazimp(path, 0, 250, 510, fmt='%1.8f') for path in glob.glob('*_ti.txt'): xyzthick2thetazthick(path, 0, 250, 510, fmt='%1.8f')
import numpy as np from desicos.conecylDB.read_write import xyz2thetazimp mps, out = xyz2thetazimp('sample.txt', alphadeg_measured=0, R_expected=406.4, H_measured=1219.2, clip_bottom=10, clip_top=10, use_best_fit=True, best_fit_output=True, rotatedeg=0.) np.savetxt('tmp_Tinv.txt', out['Tinv'])