Skip to content

Commit

Permalink
Fixed XRCS wavelength rescaling
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosertoli committed Jul 4, 2024
1 parent 5490d6e commit f7ccce3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions indica/readers/st40reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,8 @@ def _get_helike_spectroscopy(
uid, instrument, ":time", results["revision"]
)
wavelength, _ = self._get_signal(
uid, instrument, ":wavelength", results["revision"]
uid, instrument, ":wavelen", results["revision"]
)
# TODO: change once wavelength in MDS+ has been fixed to nanometers!
wavelength /= 10.0
if self.pulse >= 10307:
dlambda = float(np.abs(wavelength[1] - wavelength[0])) * 4
wavelength += dlambda
results["wavelength"] = wavelength

for q in quantities:
Expand Down

0 comments on commit f7ccce3

Please sign in to comment.