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

I'm using a Ruby script to set up a reliability column where two coders can compare their codes. Abstracting away from the details, it compares two columns one cell at a time. If the values for all codes match, they're copied to the reliability column. If they don't match, that is indicated in the corresponding cell of the reliability column so the two coders can compare notes.

The problem is that the script seems to produce errors randomly. I can make two copies of the same file, run the script on each, and get different results. Below is a sample printout from the scripting console. When I ran the script on "TD09_Code2 copy", something went wrong, such that at point number 7, the onsets of the cells in the two columns being compared no longer match. When I ran the script on "TD09_Code2 copy 2"--an identical file--the script worked perfectly. In general, I've found that if I run the script repeatedly on the same file (or copies of the same file), it gets a little better each time, even though no changes are being saved. I'm completely baffled by this. I don't even know where to begin debugging, if the same script with the same file produces different results each time.


Running Script: PF_checkCodes.rb on project: TD09_Code2 copy

point num: 1 firstcode onset: 34299
finalcode onset: 34299
point num: 2
firstcode onset: 44118
finalcode onset: 44118
point num: 3
firstcode onset: 53479
finalcode onset: 53479
3: child look
point num: 4
firstcode onset: 77207
finalcode onset: 77207
point num: 5
firstcode onset: 93048
finalcode onset: 93048
point num: 6
firstcode onset: 113282
finalcode onset: 113282
point num: 7
firstcode onset: 121705
finalcode onset: 144171
7: point direction
point num: 8
firstcode onset: 144171
finalcode onset: 154401
8: point direction
point num: 9
firstcode onset: 154401
finalcode onset: 181144
9: point direction
point num: 10
firstcode onset: 181144
finalcode onset: 192769
10: point direction
point num: 11
firstcode onset: 192769
finalcode onset: 237245
11: point direction
11: child look
point num: 12
firstcode onset: 237245
finalcode onset: 261612
12: point direction
12: child look

[... rest deleted for brevity...]

Script completed successfully.


Running Script: PF_checkCodes.rb on project: TD09_Code2 copy 2

point num: 1
firstcode onset: 34299
finalcode onset: 34299
point num: 2
firstcode onset: 44118
finalcode onset: 44118
point num: 3
firstcode onset: 53479
finalcode onset: 53479
3: child look
point num: 4
firstcode onset: 77207
finalcode onset: 77207
point num: 5
firstcode onset: 93048
finalcode onset: 93048
point num: 6
firstcode onset: 113282
finalcode onset: 113282
point num: 7
firstcode onset: 121705
finalcode onset: 121705
point num: 8
firstcode onset: 144171
finalcode onset: 144171
point num: 9
firstcode onset: 154401
finalcode onset: 154401
point num: 10
firstcode onset: 181144
finalcode onset: 181144
point num: 11
firstcode onset: 192769
finalcode onset: 192769
point num: 12
firstcode onset: 237245
finalcode onset: 237245

[...rest deleted for brevity...]

Script completed successfully.

asked 01 Oct '14, 10:16

shevaun's gravatar image

shevaun
6215
accept rate: 0%

edited 01 Oct '14, 10:23


Sorry for the delay in responding to this question. Could you please send me a file or 2 and the script so that I can take a look at replicating this problem? My email is dmc566@nyu.edu.

permanent link

answered 14 Oct '14, 17:36

david's gravatar image

david ♦
143235
accept rate: 4%

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:

×46
×18
×10
×6

question asked: 01 Oct '14, 10:16

question was seen: 4,663 times

last updated: 14 Oct '14, 17:36

powered by OSQA