Skip to content

Commit

Permalink
Deflaked file
Browse files Browse the repository at this point in the history
  • Loading branch information
wleoncio committed Jan 14, 2025
1 parent 3495f29 commit 9d76b94
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def test_normalize_data():
def test_combine_fractions_shape():
assert data_shap.shape == (35928, 3)


# Fit lines for Discovery and Validation cohorts
fit_discovery = pipeline.fit_line(data_shap)

Expand All @@ -106,13 +107,14 @@ def test_fit_line():
assert 'CI' in fit_discovery.columns
if local:
tol = 1e-2
line = fit_discovery.loc[fit_discovery['Feature'] == 'B.cells.Memory']
assert math.isclose(
fit_discovery.loc[fit_discovery['Feature'] == 'B.cells.Memory', 'Coef'].values[0],
fit_discovery.loc[line, 'Coef'].values[0],
-0.0199,
rel_tol=tol
)
assert math.isclose(
fit_discovery.loc[fit_discovery['Feature'] == 'B.cells.Memory', 'CI'].values[0],
fit_discovery.loc[line, 'CI'].values[0],
0.0000193, # Replace with actual value from terminal
rel_tol=tol
)
Expand Down

0 comments on commit 9d76b94

Please sign in to comment.