Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lan Le committed Oct 10, 2023
1 parent d110b2b commit 43bb508
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion chem_spectra/lib/composer/ni.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def __gen_cyclic_voltammetry_data_peaks(self):
pecker = peak['pecker']
x_pecker = pecker['x']
y_pecker = pecker['y']
x_pecker += offset
x_pecker = f"{float(x_pecker) + offset}"
first_expr = abs(y_min_peak) / abs(y_max_peak)
second_expr = 0.485 * abs(y_pecker) / abs(y_max_peak)
ratio = first_expr + second_expr + 0.086
Expand Down
2 changes: 1 addition & 1 deletion chem_spectra/lib/shared/calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,6 @@ def cal_cyclic_volta_shift_offset_at_index(cyclic_data, index=0):
val = shift['val']
ref_value = arr_has_ref_value[0]
e12 = ref_value['e12']
offset = e12 - val
offset = float(e12) - float(val)

return offset
2 changes: 1 addition & 1 deletion tests/fixtures/result/edit/edit_meta_13C-DEPT135
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $$ === CHEMSPECTRA PEAK TABLE EDIT ===
##MINX=-15.458417214338084
##MINY=-283555411.0
##$CSSOLVENTNAME=DMSO-d6
##$CSSOLVENTVALUE=39.51
##$CSSOLVENTVALUE=39.52
##$CSSOLVENTX=0
##NPOINTS=2
##PEAKTABLE= (XY..XY)
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/result/im/im_meta_13C-DEPT135
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ $$ === CHEMSPECTRA PEAK TABLE EDIT ===
##MINX=-15.458417214338084
##MINY=-283555411.0
##$CSSOLVENTNAME=DMSO-d6
##$CSSOLVENTVALUE=39.51
##$CSSOLVENTVALUE=39.52
##$CSSOLVENTX=0
##NPOINTS=50
##PEAKTABLE= (XY..XY)
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/result/meta_13C-CPD
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $$ === CHEMSPECTRA PEAK TABLE EDIT ===
##MINX=-15.458417214338084
##MINY=-1916407.0
##$CSSOLVENTNAME=DMSO-d6
##$CSSOLVENTVALUE=39.51
##$CSSOLVENTVALUE=39.52
##$CSSOLVENTX=0
##NPOINTS=21
##PEAKTABLE= (XY..XY)
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/result/meta_13C-DEPT135
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $$ === CHEMSPECTRA PEAK TABLE EDIT ===
##MINX=-15.458417214338084
##MINY=-283555411.0
##$CSSOLVENTNAME=DMSO-d6
##$CSSOLVENTVALUE=39.51
##$CSSOLVENTVALUE=39.52
##$CSSOLVENTX=0
##NPOINTS=50
##PEAKTABLE= (XY..XY)
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/result/meta_SVS-790A_13C
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $$ === CHEMSPECTRA PEAK TABLE EDIT ===
##MINX=-15.55002660199098
##MINY=-40480.090000000004
##$CSSOLVENTNAME=Chloroform-d (t)
##$CSSOLVENTVALUE=77.0
##$CSSOLVENTVALUE=77.16
##$CSSOLVENTX=0
##NPOINTS=50
##PEAKTABLE= (XY..XY)
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/result/mnova/MNOVA_SVS_13C.jdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $$ === CHEMSPECTRA PEAK TABLE EDIT ===
##MINX=-15.488107274957907
##MINY=-14.364369387817383
##$CSSOLVENTNAME=Chloroform-d (t)
##$CSSOLVENTVALUE=77.0
##$CSSOLVENTVALUE=77.16
##$CSSOLVENTX=0
##NPOINTS=29
##PEAKTABLE= (XY..XY)
Expand Down

0 comments on commit 43bb508

Please sign in to comment.