File tree 2 files changed +12
-0
lines changed
tests/test_elements/test_mol2any
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -33,3 +33,8 @@ def test_json_serialization(self) -> None:
33
33
chemprop_json = recursive_to_json (chemprop_fp_encoder )
34
34
chemprop_encoder_copy = recursive_from_json (chemprop_json )
35
35
compare_params (self , chemprop_fp_encoder , chemprop_encoder_copy )
36
+
37
+ def test_output_type (self ) -> None :
38
+ """Test the output type."""
39
+ chemprop_fp_encoder = get_neural_fp_encoder ()
40
+ self .assertEqual (chemprop_fp_encoder .output_type , "float" )
Original file line number Diff line number Diff line change @@ -63,6 +63,13 @@ def test_counted_bits(self) -> None:
63
63
self .assertTrue (np .any (output_counted > output_binary ))
64
64
65
65
def test_output_types (self ) -> None :
66
+ """Test if the output types are correct for counted and binary fingerprints."""
67
+ mol_fp = MolToMorganFP (counted = False )
68
+ self .assertEqual (mol_fp .output_type , "binary" )
69
+ mol_fp = MolToMorganFP (counted = True )
70
+ self .assertEqual (mol_fp .output_type , "integer" )
71
+
72
+ def test_return_value_types (self ) -> None :
66
73
"""Test equality of different output_types."""
67
74
68
75
smi2mol = SmilesToMol ()
You can’t perform that action at this time.
0 commit comments