GithubHelp home page GithubHelp logo

contextlab / autofr Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 3.0 2.02 MB

Template for a free recall experiment with automatic audio transcription

Python 1.65% CSS 3.13% JavaScript 67.41% HTML 27.46% Dockerfile 0.36%

autofr's People

Contributors

andrewheusser avatar jackdolgin avatar jeremymanning avatar paxtonfitzpatrick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

autofr's Issues

new feature: output egg upon completion of study

it would simplify things quite a bit if at the end of an experiment, the .db file is processed and an egg containing the just finished subject's data would be saved out.

I think it may take too long for me to implement by the time we submit the paper, but would be a nice feature for a future release

documentation needed

at minimum we need:

  1. instructions for installing the experiment
  2. instructions for running the experiment
  3. detailed description of the data that would enable someone to analyze it

ideally we'd also have:

  1. documentation for the API-- explanations of how the experiment is organized and what the different key functions do
  2. instructions for setting the experiment up on MTurk
  3. reference to Quail for analyzing data

include a docker image?

we could use a docker image to replicate our testing room compute environment, which would hopefully simplify things if someone else wanted to run this experiment / use this template

Error message 'TemplateNotFound' running experiment

Hi,

Great package and super useful! I'm going to submit a pull request (I'm sort of new to GitHub but hopefully that's the right thing to do) with a couple updates to the repo to account for new semantics in using Google's API in the custom.py file, but even accounting for that change, I'm running into the following error running the experiment. As soon as I click that the participant has "Yes, they have signed" the consent form, the terminal displays "[psiTurk server:on mode:sdbx #HITs:0]$ creating audio folder... " and the server.log displays the error below. I'm able to run a sample of the experiment—just the appearance of the first two words, followed by instructions to recall all the words I remember (which are only two since I only saw two) and then after the red microphone appears for ~5 seconds the screen goes blank. Neither the terminal nor server.log have any additional messages. Any guidance would be much appreciated!

2020-05-23 18:31:57,113 Accessing /exp: debug772D75 debug30SB34 debugAOHAJU 
2020-05-23 18:31:57,146 given Counter({(0, 0): 5}) chose (0, 0)
2020-05-23 18:31:58,094 GET /sync route with id: debugAOHAJU:debug30SB34
2020-05-23 18:31:58,269 Exception on /function() {                    console.log('trial number', currentTrialNumber)                    console.log('stimulus', currentStimArray[currentTrialNumber])                    return stimHTMLFormatter(currentStimArray[currentTrialNumber])                } [GET]
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2317, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1840, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1743, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1838, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1824, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python2.7/dist-packages/psiturk/experiment.py", line 747, in regularpage
    return render_template(pagename)
  File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 134, in render_template
    return _render(ctx.app.jinja_env.get_or_select_template(template_name_or_list),
  File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 930, in get_or_select_template
    return self.get_template(template_name_or_list, parent, globals)
  File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 883, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 857, in _load_template
    template = self.loader.load(self, name, globals)
  File "/usr/local/lib/python2.7/dist-packages/jinja2/loaders.py", line 115, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 58, in get_source
    return self._get_source_fast(environment, template)
  File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 86, in _get_source_fast
    raise TemplateNotFound(template)
TemplateNotFound: function() {                    console.log('trial number', currentTrialNumber)                    console.log('stimulus', currentStimArray[currentTrialNumber])                    return stimHTMLFormatter(currentStimArray[currentTrialNumber])                }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.