lib/transformers/timing_extractor.rb in optimus-ep-0.6.91 vs lib/transformers/timing_extractor.rb in optimus-ep-0.8.0
- old
+ new
@@ -1,8 +1,8 @@
# Part of the Optimus package for managing E-Prime data
#
-# Copyright (C) 2008 Board of Regents of the University of Wisconsin System
+# Copyright (C) 2008-09 Board of Regents of the University of Wisconsin System
#
# Written by Nathan Vack <njvack@wisc.edu>, at the Waisman Laborotory for Brain
# Imaging and Behavior, University of Wisconsin - Madison
#
# This class handles the creation of files that look, essentially, like:
@@ -16,11 +16,11 @@
# In an experiment, this will take, as an argument, a template written in ruby
# that will be eval'd in the context of this instance -- that will contain
# the guts of the logic to extract stimuli.
require 'transformers/basic_transformer'
-module Eprime
+module Optimus
module Transformers
class TimingExtractor < BasicTransformer
def initialize(data)
super(data)
@stim_schemas = []
@@ -52,10 +52,10 @@
@extracted_data = nil
end
def extract!
return if @extracted_data
- @extracted_data = Eprime::Data.new
+ @extracted_data = Optimus::Data.new
@stim_schemas.each do |ss|
matches = processed.find_all(&ss['row_filter'])
matches.each do |row|
nr = @extracted_data.add_row
nr['presented'] = row[ss['name_column']]
\ No newline at end of file