Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Sort files for Mac functionality #16

@priyankshyam

Description

@priyankshyam

When opening multiple sequentially listed files in debug mode (for ex. the .xyy test files), the generated 2D plots are have unusual striations and the files are loaded non-sequentially. Probably needs a sort function in the openTestfiles method:

def openTestfiles(self):  
        path = os.path.abspath('_test_files')
        test_sets = os.listdir(path)
        for tset in test_sets:
            ts_path = os.path.join(path,tset)
            files = [os.path.join(ts_path,f) for f in os.listdir(ts_path) if f.endswith(tset)]
            ext = '*.'+files[0].split('.')[-1]
            self.addDataset(self,files=files,ext=ext)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions