brukeropusreader icon indicating copy to clipboard operation
brukeropusreader copied to clipboard

Incorrect Extra Values in AB Data

Open rbrtschwn opened this issue 2 years ago • 0 comments

Hi,

First of all, thank you for providing this library!

While trying it, we have come across an issue when reading AB spectra. There are extra values that OPUS does not show. I believe this is related to this comment in the source code: https://github.com/qedsoftware/brukeropusreader/blob/ed13492490dcbdc3b66aefa503e81f112b8df481/brukeropusreader/opus_data.py#L10

This comment suggests that the actual number of y data points may be larger than what the NPT parameter says, so extra x values are added accordingly. Probably, it should be the other way around. NPT is correct and extra y values should be truncated.

Any chance of changing the behavior?

rbrtschwn avatar Feb 01 '24 11:02 rbrtschwn