No, it still is. They are not setting the subject name here. That still needs to be done in the options when you start their sample experiment. See page 13 where they talk about the command-line options.
And they do use optparse to get the command-line options. cheers, Maria On Mon, Oct 7, 2013 at 4:32 PM, Adrian Klaver <adrian.kla...@gmail.com>wrote: > On 10/07/2013 04:22 PM, Maria McKinley wrote: > >> I couldn't get either the sys.argv.extend or sys.argv = [None...] to >> work. I just keep getting the error to specify that option. They do >> specify it kind of strangely. the option is script.py -sName >> which I've never seen before. They just kind of run the option name and >> the argument together. I tried all kinds of variations >> '-sname' >> '-s', 'name' >> '-s=name' >> 's=name' >> >> Nothing works. This library doesn't seem to have an option for running >> it directly from the python API. I'm thinking their library was not >> tested with actual test code. Meh. >> I'm contemplating mucking with their code to set a default for their >> 'mandatory' option, but I'd really rather not do that. >> >> And yes, testing it as a script would not be unit testing. I'm not sure >> what I was imagining there. ;-) >> > > From their paper: > > http://memory.psych.upenn.edu/**files/pubs/SolwEtal13.pdf<http://memory.psych.upenn.edu/files/pubs/SolwEtal13.pdf> > > it does not look like running as script is necessary: > > class dboyLite: > def __init__(self): > exp = Experiment.getInstance() > exp.setSessionNum(0) > >> >> thanks, >> Maria >> >> > > -- > Adrian Klaver > adrian.kla...@gmail.com > -- Maria Mckinley Software Developer with Bonus SysAdmin Experience www.mariakathryn.net www.linkedin.com/in/mariamckinley