Announcing the new Datavyu v1.4.0 with enhanced features, bug fixes, and a new video player for Windows!

We are in the process of migrating away from this forum—feel free to browse existing help topics. For new support inquiries, please reach out to us via email at [email protected]

Hello,

I am needing to export the data recorded in my spreadsheet frame-by-frame, however I am only interested in exporting the codes for each variable, NOT the onset/offset and ordinal info. I am new to ruby and was hoping for some guidance in coming up with a script that would accomplish both of these tasks.

Thank you!

asked 07 Jun '17, 09:15

tcoheno's gravatar image

tcoheno
11335
accept rate: 0%


Take a look at this export script example/template from the sample scripts repository: https://github.com/databrary/Datavyu-Example-Scripts/blob/master/Export/ComboExport.rb

It should replicate the export from the dropdown menu in Datavyu if you put all the columns you want to print in the sequential_columns parameter (and leave parameters static_columns and nested_columns blank: %w() ).

permanent link

answered 07 Jun '17, 17:27

Shohan%20Hasan's gravatar image

Shohan Hasan ♦♦
531126
accept rate: 14%

Thanks so much! I was able to get it to export the columns I wanted, however now it isn't exporting frame by frame. Any advice?

(22 Jun '17, 11:19) tcoheno tcoheno's gravatar image

Oops, I forgot about the frame-by-frame requirement. I'll modify the example and put it up in the repository asap.

(26 Jun '17, 14:43) Shohan Hasan ♦♦ Shohan%20Hasan's gravatar image
1

Sorry about the delay— see this script which should mimic the current Export By Frame functionality in Datavyu but give you more control over which columns/codes are exported:

https://github.com/databrary/Datavyu-Example-Scripts/blob/master/Export/ExportFileByFrame.rb

(27 Jun '17, 22:56) Shohan Hasan ♦♦ Shohan%20Hasan's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×47
×25
×7
×6

question asked: 07 Jun '17, 09:15

question was seen: 1,839 times

last updated: 27 Jun '17, 22:57

powered by OSQA