0d5da6d36d064ec89ef07d546b0122614b343c99,dipy/io/vtk.py,,save_vtk_streamlines,#Any#Any#Any#Any#,93

Before Change


    polydata.SetPoints(vtk_points)
    polydata.SetLines(vtk_lines)

    file_extension = filename.split(".")[-1].lower()
    if file_extension != ".vtk" or file_extension != ".fib":
        save_polydata(polydata, filename)
    else:
        writer = vtk.vtkPolyDataWriter()

After Change


    polydata.SetPoints(vtk_points)
    polydata.SetLines(vtk_lines)

    file_extension = os.path.splitext(filename)
    if file_extension not in [".vtk", ".fib"]:
        save_polydata(polydata, filename)
    else:
        writer = vtk.vtkPolyDataWriter()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: nipy/dipy
Commit Name: 0d5da6d36d064ec89ef07d546b0122614b343c99
Time: 2020-07-21
Author: svabhishek29@gmail.com
File Name: dipy/io/vtk.py
Class Name:
Method Name: save_vtk_streamlines


Project Name: developmentseed/label-maker
Commit Name: 99fe1c7fcc9fdd1e8583ef51e9ab1ae943b57390
Time: 2018-02-26
Author: drew@developmentseed.org
File Name: label_maker/images.py
Class Name:
Method Name: download_images


Project Name: deepfakes/faceswap
Commit Name: f8bf47ad431706553ad853402f009763400c50b6
Time: 2018-05-16
Author: velykoivanenko.lev@gmail.com
File Name: tools/sort.py
Class Name: SortProcessor
Method Name: process_arguments