Announcing the new Datavyu v1.3.6 with enhanced features and transcription support!

I'm new to Ruby and recently wrote a script to export data that ended up being over 1000 lines of code. The reason that it was so long was because I had to repeat the same code multiple times for different behaviors. I was thinking that I could create a loop so that the code doesn't need to be repeated, but I am concerned that I will get errors when using create_mutually_exclusive to look at the different ordinals such as in

if cell.obj_beforeafter_mutex_before_object_label_ordinal != "" && cell.obj_beforeafter_mutex_after_object_label_ordinal == ""

because I have gotten error messages from looping with this before.

Does anyone have experience with creating shorter scripts or is anyone willing to look over the script I created to see how it can improve?

asked 14 Jul, 19:04

aherbolz's gravatar image

aherbolz
113
accept rate: 0%


Hi,

I can take a look at your existing script. Can you e-mail it to info@datavyu.org?

We also have several example export scripts available on GitHub: https://github.com/databrary/Datavyu-Example-Scripts/tree/master/Export. You can tweak the columns that get exported in the parameters section and if you are familiar with Ruby you can modify the contents of the body section.

permanent link

answered 17 Jul, 14:10

Shohan%20Hasan's gravatar image

Shohan Hasan ♦♦
366126
accept rate: 12%

Hello,

I tried sending an email to that address and it bounced back. Is there a different address I can send to?

Thanks

permanent link

answered 17 Jul, 17:18

aherbolz's gravatar image

aherbolz
113
accept rate: 0%

Don't worry, we received it. We are working to resolve the mail delivery issue.

(17 Jul, 17:20) 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:

×18

question asked: 14 Jul, 19:04

question was seen: 132 times

last updated: 17 Jul, 17:20

powered by OSQA