Skip to content

Commit

Permalink
feat: change values for peaks reference (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
baolanlequang authored Oct 6, 2023
1 parent 492e4b1 commit ede5d18
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions chem_spectra/lib/converter/share.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,46 +97,46 @@ def parse_solvent(base):
if base.ncl == '13C':
if 'acetone' in orig_solv:
base.dic['$CSSOLVENTNAME'] = ['Acetone-d6 (sep)']
base.dic['$CSSOLVENTVALUE'] = ['29.920']
base.dic['$CSSOLVENTVALUE'] = ['29.640']
base.dic['$CSSOLVENTX'] = ['0']
base.solv_peaks = [(27.0, 33.0), (203.7, 209.7)]
elif 'dmso' in orig_solv:
peak = 39.51
peak = 39.52
delta = 3
base.dic['$CSSOLVENTNAME'] = ['DMSO-d6']
base.dic['$CSSOLVENTVALUE'] = [str(peak)]
base.dic['$CSSOLVENTX'] = ['0']
base.solv_peaks = [(peak - delta, peak + delta)]
elif 'methanol-d4' in orig_solv or 'meod' in orig_solv:
peak = 49.15
peak = 49.00
delta = 5
base.dic['$CSSOLVENTNAME'] = ['Methanol-d4 (sep)']
base.dic['$CSSOLVENTVALUE'] = [str(peak)]
base.dic['$CSSOLVENTX'] = ['0']
base.solv_peaks = [(peak - delta, peak + delta)]
elif 'dichloromethane-d2' in orig_solv:
peak = 54.0
peak = 53.84
delta = 3
base.dic['$CSSOLVENTNAME'] = ['Dichloromethane-d2 (quin)']
base.dic['$CSSOLVENTVALUE'] = [str(peak)]
base.dic['$CSSOLVENTX'] = ['0']
base.solv_peaks = [(peak - delta, peak + delta)]
elif 'acetonitrile-d3' in orig_solv:
peak = 1.39
peak = 1.32
delta = 3
base.dic['$CSSOLVENTNAME'] = ['Acetonitrile-d3 (sep)']
base.dic['$CSSOLVENTVALUE'] = [str(peak)]
base.dic['$CSSOLVENTX'] = ['0']
base.solv_peaks = [(peak - delta, peak + delta)]
elif 'benzene' in orig_solv:
peak = 128.39
peak = 128.06
delta = 3
base.dic['$CSSOLVENTNAME'] = ['Benzene (t)']
base.dic['$CSSOLVENTVALUE'] = [str(peak)]
base.dic['$CSSOLVENTX'] = ['0']
base.solv_peaks = [(peak - delta, peak + delta)]
elif 'chloroform-d' in orig_solv or 'cdcl3' in orig_solv:
peak = 77.0
peak = 77.16
delta = 3
base.dic['$CSSOLVENTNAME'] = ['Chloroform-d (t)']
base.dic['$CSSOLVENTVALUE'] = [str(peak)]
Expand Down Expand Up @@ -165,9 +165,9 @@ def parse_solvent(base):
base.dic['$CSSOLVENTX'] = ['0']
base.solv_peaks = [(peak - delta, peak + delta)]
elif 'deuterium' in orig_solv:
peak = 4.75
peak = 4.79
delta = 0.01
base.dic['$CSSOLVENTNAME'] = ['Deuterium oxide (s)']
base.dic['$CSSOLVENTNAME'] = ['D2O (s)']
base.dic['$CSSOLVENTVALUE'] = [str(peak)]
base.dic['$CSSOLVENTX'] = ['0']
base.solv_peaks = [(peak - delta, peak + delta)]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='chem-spectra-app',
version='0.13.4-patch.1',
version='0.13.5',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
Expand Down

0 comments on commit ede5d18

Please sign in to comment.