Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions spc/spc.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,22 +511,22 @@ def set_labels(self):
def set_exp_type(self):
""" Sets the experiment type """

fexper_op = ["General SPC",
"Gas Chromatogram",
"General Chromatogram",
"HPLC Chromatogram",
"FT-IR, FT-NIR, FT-Raman Spectrum or Igram",
"NIR Spectrum",
"UV-VIS Spectrum",
"X-ray Diffraction Spectrum",
"Mass Spectrum ",
"NMR Spectrum or FID",
"Raman Spectrum",
"Fluorescence Spectrum",
"Atomic Spectrum",
"Chromatography Diode Array Spectra"]

self.exp_type = fexper_op[self.fexper]
fexper_op = {0: "General SPC",
1: "Gas Chromatogram",
2: "General Chromatogram",
3: "HPLC Chromatogram",
4: "FT-IR, FT-NIR, FT-Raman Spectrum or Igram",
5: "NIR Spectrum",
6: "UV-VIS Spectrum",
8: "X-ray Diffraction Spectrum",
9: "Mass Spectrum ",
10: "NMR Spectrum or FID",
11: "Raman Spectrum",
12: "Fluorescence Spectrum",
13: "Atomic Spectrum",
14: "Chromatography Diode Array Spectra"}

self.exp_type = fexper_op.get(self.fexper, "Not defined")

# ------------------------------------------------------------------------
# output
Expand Down