diff --git a/brukeropusreader/opus_data.py b/brukeropusreader/opus_data.py index 4bc540b..0793c33 100644 --- a/brukeropusreader/opus_data.py +++ b/brukeropusreader/opus_data.py @@ -7,7 +7,8 @@ class OpusData(dict): param_key = f"{spec_name} Data Parameter" fxv = self[param_key]["FXV"] lxv = self[param_key]["LXV"] - npt = self[param_key]["NPT"] + # NPT and REAL NUMBER OF POINTS may differ + npt = self[spec_name].shape[0] x_no_unit = np.linspace(fxv, lxv, npt) if wavenums: return x_no_unit diff --git a/setup.py b/setup.py index 7d648c2..0a397fd 100644 --- a/setup.py +++ b/setup.py @@ -3,12 +3,11 @@ from distutils.core import setup setup( name="brukeropusreader", - version="1.3.3", + version="1.3.4", description="Bruker OPUS File Reader", author="QED", author_email="brukeropusreader-dev@qed.ai", packages=["brukeropusreader"], - python_requires=">=3", install_requires=["numpy>=1.13.3", "scipy>=0.19.1"], license="GPLv3", url="https://github.com/qedsoftware/brukeropusreader",