9e2fd40e4ed2d9a005d5241fbf039ce77bbbf35f,invesalius/control.py,Controller,OnOpenOtherFiles,#Controller#Any#,848

Before Change


    def OnOpenOtherFiles(self, filepath):
        filepath = utils.decode(filepath, const.FS_ENCODE)
        if not(filepath) == None:
            name = filepath.rpartition("\\")[-1].split(".")

            group = oth.ReadOthers(filepath)
            
            if group:
                matrix, matrix_filename = self.OpenOtherFiles(group)
                self.CreateOtherProject(str(name[0]), matrix, matrix_filename)
                self.LoadProject()
                Publisher.sendMessage("Enable state project", state=True)
            else:

After Change


    def OnOpenOtherFiles(self, filepath):
        filepath = utils.decode(filepath, const.FS_ENCODE)
        if not(filepath) == None:
            name = os.path.basename(filepath).split(".")[0]
            group = oth.ReadOthers(filepath)
            if group:
                matrix, matrix_filename = self.OpenOtherFiles(group)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: invesalius/invesalius3
Commit Name: 9e2fd40e4ed2d9a005d5241fbf039ce77bbbf35f
Time: 2020-08-20
Author: totonixsame@gmail.com
File Name: invesalius/control.py
Class Name: Controller
Method Name: OnOpenOtherFiles


Project Name: cesium-ml/cesium
Commit Name: ac7d9033f7590ba093dab7d60d995d81630505cf
Time: 2015-02-11
Author: a.crellinquick@gmail.com
File Name: mltsp/predict_class.py
Class Name:
Method Name: add_to_predict_results_dict


Project Name: invesalius/invesalius3
Commit Name: 0ea8820aee0a177ee2bf667fa15388f4ab64a25c
Time: 2020-04-09
Author: totonixsame@gmail.com
File Name: invesalius/control.py
Class Name: Controller
Method Name: OnOpenOtherFiles