Skip to content

Commit 305dc8c

Browse files
committed
fixed tests
1 parent 48cd0c8 commit 305dc8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pydatalab/tests/apps/test_ftir_block.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ def test_load(data_files):
2222
assert df["Absorbance"].argmin() == 987
2323
assert df["Absorbance"].argmax() == 1928
2424
# Checking height of peak at 1079 cm-1 has correct height
25-
mask = (df["Wavenumber / cm-1"] > 800) & (df["Wavenumber / cm-1"] < 1500)
25+
mask = (df["Wavenumber"] > 800) & (df["Wavenumber"] < 1500)
2626
assert max(df["Absorbance"][mask]) == 0.0536771319493808
2727

2828
def test_plot(data_files):
2929
f = next(data_files)
30-
ftir_data = FTIRBlock.parse_ftir_asp(f)
30+
ftir_data = parse_ftir_asp(f)
3131
layout = selectable_axes_plot(
3232
ftir_data,
3333
x_options=["Wavenumber"],
@@ -41,7 +41,7 @@ def test_plot(data_files):
4141
tools=HoverTool(
4242
tooltips=[("Wavenumber / cm\u207B\u00B9", "@Wavenumber{0.00}"),
4343
("Absorbance", "@Absorbance{0.0000}")], # Display x and y values to specified decimal places
44-
mode='vline' # Ensures hover follows the x-axis
44+
mode="vline" # Ensures hover follows the x-axis
4545
),
4646
)
4747
assert layout

0 commit comments

Comments
 (0)