question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add option to save annotations as plain text

See original GitHub issue

Currently, annotations can only be saved to a FIFF file. Since this is a format that can’t be read outside of MNE easily, an option to save annotations as plain text would be very useful. I can work on this if you think this should be added (e.g. as an optional argument to annotations.save, for example format="CSV" or kind=textortype=TXT - let me know what you prefer). @massich what do you think?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:29 (29 by maintainers)

github_iconTop GitHub Comments

1reaction
larsonercommented, Oct 23, 2018

What do you think of having a “lightweight” export option, meaning that if you export annotations as CSV only onset, duration, and descriptions are exported (a warning message could make this obvious to the user)?

I don’t see why we wouldn’t also include meas_date in there in a comment, like:

# MNE Annotations CSV
# orig_time: (X, Y)
# onset, duration, description
502.45682716, 0, BAD_EDGE
...

Then on read if it’s there, use it, if it’s not, it’s the same as constructing Annotations with orig_time=None

0reactions
jona-sassenhagencommented, Mar 24, 2019

Closed for #5699

Read more comments on GitHub >

github_iconTop Results From Across the Web

Annotating Plain Text - Scalar
Enter the starting and ending lines of the annotation. Click "Save" to save the annotation. Comment on this page. Local Discussion ...
Read more >
How to Export PDF Annotations as a TextBundle on iPhone
1. Open the PDF document in Highlights 2. Tap on Notes in the top toolbar 3. Tap the share icon in top right...
Read more >
[Request] The option to copy annotations in plain text.
I would like the option to remove intext citations as is possible when you export annotations to a note. Here's an example of...
Read more >
Draw, annotate, and use Scribble in Pages - Apple Support
Add an annotation · On iPad, tap View options , then tap Hide Smart Annotations then turn Smart Annotations off. · If you...
Read more >
How to Convert PDF to Plain Text with Three Methods
You can choose HTML as your output file, as well as Office files, and several other formats. The "To Text" option can also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found