Skip to content

Commit

Permalink
update process for uv/vis layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Lan Le authored and phuang26 committed Oct 12, 2021
1 parent 3a6d0b5 commit 0848883
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions chem_spectra/lib/composer/ni.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ def tf_img(self):
ref = ks[iL]
cxs = self.core.xs[iL:iU]
cys = (ks[iL:iU] - ref) * 1.5 + (y_max - h * 0.4)
if self.core.typ == 'UVVIS':
cys = (ref - ks[iL:iU]) * 0.5 + (y_max - h * 0.4)
plt.plot(cxs, cys, color='#228B22')

# ----- PLOT multiplicity -----
Expand Down
3 changes: 2 additions & 1 deletion chem_spectra/lib/converter/jcamp/ni.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def __index_target(self):
'NMR SPECTRUM', 'NMRSPECTRUM',
'INFRARED SPECTRUM', 'RAMAN SPECTRUM',
'MASS SPECTRUM', 'UV/VIS SPECTRUM', 'UV-VIS',
'HPLC UV-VIS', 'HPLC UV/VIS SPECTRUM',
'THERMOGRAVIMETRIC ANALYSIS', 'X-RAY DIFFRACTION'
]
for tp in target_topics:
Expand Down Expand Up @@ -205,7 +206,7 @@ def __set_label(self):
except: # noqa
pass

if 'absorb' in target['y'].lower(): # IR ABS vs TRANS
if 'absorb' in target['y'].lower() and not(self.is_uv_vis): # IR ABS vs TRANS
target['y'] = 'TRANSMITTANCE'

return target
Expand Down

0 comments on commit 0848883

Please sign in to comment.