https://github.com/NSLS-II-CHX/chxtools/blob/master/chxtools/chx_wrapper.py See @danielballan's comment https://github.com/NSLS-II-CHX/chxtools/pull/16#discussion_r158046775.