sigviewer icon indicating copy to clipboard operation
sigviewer copied to clipboard

Option to check XDF stream metadata?

Open sappelhoff opened this issue 10 months ago • 6 comments

I really like SigViewer, thanks for this app.

In my workflow, I sometimes use it to quickly check an XDF file. Like in the screenshot below:

Image

☝ this gives me the stream ID, stream name, stream channels and types, ...

Do you think it would be possible / reasonable to add an XDF-specific feature to browse other stream info metadata? (like for example the source_id)

sappelhoff avatar Feb 13 '25 16:02 sappelhoff

MNELAB has this feature - any reason why you prefer SigViewer?

cbrnr avatar Feb 13 '25 16:02 cbrnr

Funny that you mention it. I hadn't even thought about that, even though regularly using mnelab for XDF reading. I think I just had registered SigViewer for XDF opening on Windows. But I will have a look whether that is also possible with mnelab.

sappelhoff avatar Feb 13 '25 19:02 sappelhoff

It does not seem to be possible, or am I wrong? I would like to just "right click" an XDF file on my PC and open it with some app that knows enough about XDF to show me the metadata / signals 🤔

sappelhoff avatar Feb 15 '25 18:02 sappelhoff

Right-clicking depends on the desktop (and also I haven't implemented it specifically), but you can drag and drop an XDF file onto MNELAB to import it. It will show a summary of the streams. Is this not sufficient? You can also inspect the raw XDF chunks via the File menu.

cbrnr avatar Feb 15 '25 18:02 cbrnr

Is this not sufficient?

it's definitely all very good in mnelab 🤔 just the usability is a bit worse than "right click and open", like it is possible with SigViewer.

If I get it correctly, I first have to activate my env, and start up mnelab via uvx mnelab, and finally drag the file there.

I really just want the most convenient way to "quick-view" an XDF file. MNELAB has the features I need, but not the convenience -- and it's the other way around for SigViewer.

Then there is also XDF-Browser, which has the features I need AND the convenience ... but the repo is not well maintained and executables are not regularly uploaded/made available (see: https://github.com/xdf-modules/XDFBrowser/issues/3)


For the sake of this issue, do you think this is a reasonable feature request? If not, we can close it :)

sappelhoff avatar Feb 15 '25 19:02 sappelhoff

Yeah, I get the idea! This is definitely something I want to implement very soon, but this requires producing standalone installers (see #294).

For now, it is even easier than you described, you do not have to activate any environment, just

uvx mnelab

And then you can drag and drop files onto the app.

The problem with SigViewer is that I don't really plan to add any new features unless someone else is willing to contribute. Several problem have accumulated that also need to be addressed, such as updating to Qt6, compiling on Windows (currently cannot be done because of issues with Biosig), etc.

All of this is to say that I expect MNELAB to receive continuous updates, whereas SigViewer is rather stale. But it's OK to leave this issue open in case someone wants to implement it.

cbrnr avatar Feb 16 '25 12:02 cbrnr