Skip to content

Commit

Permalink
v. 0.9.28
Browse files Browse the repository at this point in the history
  • Loading branch information
ludwigc committed Mar 6, 2024
1 parent 21f6c48 commit 22ee861
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion metabolabpy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__author__ = 'Christian Ludwig ([email protected])'
__credits__ = 'Christian Ludwig ([email protected])'
__version__ = '0.9.27'
__version__ = '0.9.28'
__license__ = 'GPLv3'
10 changes: 5 additions & 5 deletions metabolabpy/nmr/nmrDataSet.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,16 +599,16 @@ def export_data_set(self, cmd_name='finish'):
self.wb["variable_meta"]["A" + str(k+2)] = p_str1 + p_str2
self.wb["variable_meta"]["B" + str(k+2)] = ppm_vect[spc_selected[k]]
self.wb["variable_meta"]["C" + str(k+2)] = bin_range[spc_selected[k]]
if k > 0 and k < (len(ppm_vect) - 1):
if k > 0 and k < len(spc_selected) - 1:
if spc_selected[k] - spc_selected[k - 1] > 1 and spc_selected[k+1] - spc_selected[k] > 1:
self.wb["variable_meta"]["D" + str(k+2)] = ppm_vect[spc_selected[k + 1] - 1] - delta_ppm
self.wb["variable_meta"]["E" + str(k+2)] = ppm_vect[spc_selected[k - 1] + 1] + delta_ppm
self.wb["variable_meta"]["D" + str(k + 2)] = ppm_vect[spc_selected[k + 1] - 1] - delta_ppm
self.wb["variable_meta"]["E" + str(k + 2)] = ppm_vect[spc_selected[k - 1] + 1] + delta_ppm
else:
self.wb["variable_meta"]["D" + str(k + 2)] = ppm_vect[spc_selected[k]] - delta_ppm
self.wb["variable_meta"]["E" + str(k + 2)] = ppm_vect[spc_selected[k]] + delta_ppm
else:
self.wb["variable_meta"]["D" + str(k+2)] = ppm_vect[spc_selected[k]] - delta_ppm
self.wb["variable_meta"]["E" + str(k+2)] = ppm_vect[spc_selected[k]] + delta_ppm
self.wb["variable_meta"]["D" + str(k + 2)] = ppm_vect[spc_selected[k]] - delta_ppm
self.wb["variable_meta"]["E" + str(k + 2)] = ppm_vect[spc_selected[k]] + delta_ppm

self.wb.save(f_name)
self.wb = []
Expand Down

0 comments on commit 22ee861

Please sign in to comment.