Skip to content

Commit

Permalink
add test for label bwdf
Browse files Browse the repository at this point in the history
  • Loading branch information
naik-aakash committed Oct 30, 2024
1 parent c79a750 commit 82204dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/featurize/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,11 @@ def test_featurize_nacl_icoxxlist(self):
df_site = featurize_nacl_icoxxlist.get_site_df(ids="NaCl", site_index=0)
assert isinstance(df_site, pd.DataFrame)

# Test for label bwdf
bwdf_label = featurize_nacl_icoxxlist.calc_label_bwdf(bond_label="4")
assert isinstance(bwdf_label, dict)
assert bwdf_label["icoxx_binned"][283] == pytest.approx(-0.00034, abs=1e-05)

def test_featurize_k3sb_icoxxlist(self):
# Test for area normalization, n_bins
featurize_k3sb_icoxxlist = FeaturizeIcoxxlist(
Expand Down

0 comments on commit 82204dd

Please sign in to comment.