"note" problem

Added by Nhu Le over 11 years ago

I decided to create 2 identical projects dhcd2 and dhcd_gui and do everthing and check the result (diffing the directories) after every step to see if I can replicate what I want to do in GUI from CLI.

Both sides are the same up to the "note" command.

On the CLI side:

[nle@fedora17 dhcd2]$ auto-multiple-choice note --data /home/nle/MC-Projects/dhcd2/data --seuil 0.08 --grain 0.5 --arrondi inf --notemax 20 --plafond --notemin  --postcorrect-student  --postcorrect-copy  --progression-id notation --progression 1 --debug ./debug.log

On the GUI side, it is identical (other then the directory and the location of the debug log file). I use the command from the GUI debug log to as my CLI command so it is to be expected.
[   4942,  13.19] Command [5037] : auto-multiple-choice note --debug /tmp/AMC-DEBUG-JRdZ0d05.log --data /home/nle/MC-Projects/dhcd_gui/data --seuil 0.08 --grain 0.5 --arrondi inf --notemax 20 --plafond --notemin  --postcorrect-student  --postcorrect-copy  --progression-id notation --progression 1

The debug log is attached.

The only thing is can see is a warning from CLI version "Warning: Nonpositive value for MAX.". This must cause the processing to stop (more like an error?).

gui_debug.log (21.3 kB)

cli_debug.log (2.2 kB)


Replies (5)

RE: "note" problem - Added by Nhu Le over 11 years ago

I guess it is obviously that the amc-compiled.amc files would not be the same but I will attach them here just in case they are of help.

RE: "note" problem - Added by Alexis Bienvenüe over 11 years ago

The log file can be quite misleading: empty arguments are not quoted. Thus --notemin with two spaces after it should be written

--notemin ""
in a command... This is the same with --postcorrect-student and --postcorrect-copy.
I corrected this with revision r1359, so that logs gets clearer.

RE: "note" problem - Added by Nhu Le over 11 years ago

That's definitely part of the problem. I had this before too (the next flag is being used as the argument for the previous flag). I just forget that I have to think outside of the "flag" :).

However, the problem persists evern after I change my CLI command to

[nle@fedora17 dhcd2]$ auto-multiple-choice note --data /home/nle/MC-Projects/dhcd2/data --seuil 0.08 --grain 0.5 --arrondi inf --notemax 20 --plafond --notemin ""  --postcorrect-student ""  --postcorrect-copy ""  --progression-id notation --progression 1 --debug ./debug.log
===<notation>=+0.05
===<notation>=+0.95
===<notation>=+0

The log file comes out the same as before.

RE: "note" problem - Added by Alexis Bienvenüe over 11 years ago

What are the differences between the results with CLI and GUI?
Did you check the Update marking scale box in the GUI? If so, a auto-multiple-choice prepare command is issued before note to extract the scoring strategy: did you call this command on the CLI side?

RE: "note" problem - Added by Nhu Le over 11 years ago

Yes, that was the missing part. I did the 2nd prepare earlier but didn't do it after I change the "note" command.

I was going to ask you about the purpose of the second prepare command.

Everything works well now. Thank you.

(1-5/5)