Skip to content

Restructure data load/save #35

@poloskeipeter

Description

@poloskeipeter

I would like to move where the file extension is being resolved in the current load signal / save signal functions completely to the core as a method.
What should stay in the main are 4 functions (2 for raw signal load / save and 2 for processed load / save)
The code I envisaging should look something like:

def loadSignal(self):
    self.loadSuccessful = False
    self.data.__init__()
    path = QtWidgets.QFileDialog.getOpenFileName()[0]
    try:
        self.data.loadRawSignal(path)
        self.loadSuccessful = True
    except:
        print('unrecognised file format or data')

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions