wojdyr / xylib

library for reading files with x-y data from powder diffraction, spectroscopy, or other experimental methods
GNU Lesser General Public License v2.1
61 stars 18 forks source link

Add missing loop to fix the Bruker import function #21

Closed RLumSK closed 4 years ago

RLumSK commented 4 years ago

This PR addresses the issue raised by @wojdyr https://github.com/wojdyr/xylib/pull/18#issuecomment-670062198.

wojdyr commented 4 years ago

I cherry-picked the last commit - it's in xylib now. What about the x scale? Now it's 1, 2, 3, ...

RLumSK commented 4 years ago

@wojdyr Thank you! Then I will delete the current fork, and start fresh. I should have made a branch ...next time. The scale is 1,2,3 because there are no distinct x-values in the binary file. So it means the numbers represent channels. However, if there is a PAR-file one could calculate an x-axis from it. If there is a demand for it, I can also add the an x-axis value support in case a PAR-file is available.