b558d6e423f8ba97141f0c865c54e11b6a40b65e,deepchem/feat/tests/test_molgan_featurizer.py,TestMolganFeaturizer,test_featurizer_smiles,#TestMolganFeaturizer#,8

Before Change


    // test defeaturization
    mols = featurizer.defeaturize(data)
    valid_mols = list(filter(lambda x: isinstance(x, Chem.rdchem.Mol), mols))
    invalid_mols = list(
        filter(lambda x: not isinstance(x, Chem.rdchem.Mol), mols))
    assert len(valid_mols) == len(valid_mols)
    assert len(invalid_mols) == len(invalid_graph)

    def test_featurizer_rdkit(self):

After Change


    assert redone_smiles == smiles

    // check if original smiles match defeaturized smiles
    defe_smiles = list(map(Chem.MolToSmiles, valid_mols))
    assert defe_smiles == smiles

  def test_featurizer_rdkit(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deepchem/deepchem
Commit Name: b558d6e423f8ba97141f0c865c54e11b6a40b65e
Time: 2021-01-29
Author: m.grabski@sygnaturediscovery.com
File Name: deepchem/feat/tests/test_molgan_featurizer.py
Class Name: TestMolganFeaturizer
Method Name: test_featurizer_smiles


Project Name: Pinafore/qb
Commit Name: 2f74f04253d5a90459401d0f09ea0559d50371a0
Time: 2016-06-25
Author: ski.rodriguez@gmail.com
File Name: util/guess.py
Class Name: GuessList
Method Name: check_recall


Project Name: bashtage/linearmodels
Commit Name: 536c7c7718f18ec6c2118524d81706bee4cce2ed
Time: 2020-01-24
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/utility.py
Class Name: AttrDict
Method Name: __dir__