write_pars#
- anri.io.write_pars(folder, geometry, phases)[source]#
Write ImageD11 parameter files:
geometry.par, one<phase>.parper phase, andpars.json.- Parameters:
folder (
str) – Where to write themgeometry (
dict) – Detector and beam parameters, as in an ImageD11.parfile. ImageD11 needst_x,t_y,t_zandomegasignto compute peak geometry (e.g.DataSet.update_colfile_pars): those missing are written as 0, 0, 0 and 1 (the onlyomegasignanri supports).phases (
dict) –{phase_name: {"cell__a": ..., ..., "cell_lattice_[P,A,B,C,I,F,R]": ...}}
- Returns:
path (
str) – Path ofpars.json, whichImageD11.unitcell.Phases(andDataSet.phases) read