Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort files for Mac functionality #16

Open
priyankshyam opened this issue Nov 30, 2021 · 0 comments
Open

Sort files for Mac functionality #16

priyankshyam opened this issue Nov 30, 2021 · 0 comments

Comments

@priyankshyam
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant