ae559ac93d614e9731171f1d831bd7f43879fff0,tests/saliency_tests/visualizer_tests/test_mol_visualizer.py,,test_mol_visualizer,#Any#,11

Before Change



    // 1. test with setting save_filepath
    save_filepath = os.path.join(str(tmpdir), "tmp.svg")
    visualizer.visualize(saliency, mol, save_filepath=save_filepath)
    assert os.path.exists(save_filepath)

    // 2. test with `save_filepath=None` runs without error
    visualizer.visualize(

After Change



    // 1. test with setting save_filepath
    save_filepath = os.path.join(str(tmpdir), "tmp.svg")
    svg = visualizer.visualize(saliency, mol, save_filepath=save_filepath)
    assert isinstance(svg, str)
    assert os.path.exists(save_filepath)

    // 2. test with `save_filepath=None` runs without error
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: pfnet-research/chainer-chemistry
Commit Name: ae559ac93d614e9731171f1d831bd7f43879fff0
Time: 2019-09-10
Author: acc1ssnn9terias@gmail.com
File Name: tests/saliency_tests/visualizer_tests/test_mol_visualizer.py
Class Name:
Method Name: test_mol_visualizer


Project Name: MLWave/kepler-mapper
Commit Name: 3048096493b85388ca00fc87c052e99767bddfc3
Time: 2021-03-04
Author: dave@daveeargle.com
File Name: examples/plot_digits.py
Class Name:
Method Name:


Project Name: pfnet-research/chainer-chemistry
Commit Name: ae559ac93d614e9731171f1d831bd7f43879fff0
Time: 2019-09-10
Author: acc1ssnn9terias@gmail.com
File Name: tests/saliency_tests/visualizer_tests/test_mol_visualizer.py
Class Name:
Method Name: test_smiles_visualizer


Project Name: pfnet-research/chainer-chemistry
Commit Name: 51a7d8ae599f6d007c1c1cdb45a1c2206fc44ab2
Time: 2019-09-10
Author: acc1ssnn9terias@gmail.com
File Name: tests/saliency_tests/visualizer_tests/test_mol_visualizer.py
Class Name:
Method Name: test_smiles_visualizer