[Rcicr-users] Non-conformable arrays

DANIEL NOAH ALBOHN dna5021 at psu.edu
Wed Nov 12 18:13:03 CET 2014


Hi Ron. 

Resizing the images did the trick. My images were only 512 px on one side, not on both sides. Thanks for your help! 

Best, 
Dan 

Daniel Albohn 
Lab Manager/Researcher 
Social Vision and Interpersonal Perception Lab 
Moore Building Room 463 
The Pennsylvania State University 

----- Original Message -----

From: "R. Dotsch (Ron)" <R.Dotsch at uu.nl> 
To: "DANIEL NOAH ALBOHN" <dna5021 at psu.edu> 
Cc: rcicr-users at r-forge.wu-wien.ac.at 
Sent: Wednesday, November 12, 2014 11:37:05 AM 
Subject: Re: [Rcicr-users] Non-conformable arrays 

Dear Dan, 

Can it be that your jpg’s don’t have the same size (or are not 512x512 pixels)? And could you check whether they are all encoded using greyscale (and not just grey values, but RGB encoded)? The error message you get is cryptic, something else I’ll need to work on when we figure out your problem. 

If this doesn’t help, could you please send me your files and script off list, and I’ll see whether I can reproduce the error message and figure out why you get it. 

Best, 

Ron 

________________________________ 
Dr. Ron Dotsch 

Utrecht University 
Social and Organizational Psychology (Room E2.22) 

Website: http://ron.dotsch.org 





On Nov 12, 2014, at 17:22, DANIEL NOAH ALBOHN < dna5021 at psu.edu > wrote: 

Hi Ron. 

Thank your for your reply. This is indeed useful information to know moving forward. However, I get this error when trying to create the stimuli, not when analyzing them. I've reproduced the code, and errors, below. Take a look and see if you can make any sense of it. 

> library(rcicr) 
> setwd("[Path to files here]") 
> base_face_files <- list('male'='Young_M_N.jpg', 'female'='Young_F_N.jpg') 
> generateStimuli2IFC(base_face_files, n_trials = 770) 
Error in stimulus + base_faces[[base_face]] : non-conformable arrays 
In addition: Warning message: 
In dir.create(stimulus_path, recursive = T) : '.\stimuli' already exists 

Thanks, 
Dan 


Daniel Albohn 
Lab Manager/Researcher 
Social Vision and Interpersonal Perception Lab 
Moore Building Room 463 
The Pennsylvania State University 

----- Original Message -----

From: "R. Dotsch (Ron)" < R.Dotsch at uu.nl > 
To: "DANIEL NOAH ALBOHN" < dna5021 at psu.edu > 
Cc: rcicr-users at r-forge.wu-wien.ac.at 
Sent: Wednesday, November 12, 2014 5:06:42 AM 
Subject: Re: [Rcicr-users] Non-conformable arrays 

Hi Dan, 

Possibly, you created your stimuli with a different label for the base face. For instance, let’s say you created your stimuli as follows: 

base_face_files <- list(’ xxxx ’=‘somebaseface.jpg') 
generateStimuli2IFC(base_face_files, n_trials = 770) 

>From now on, the functions of rcicr will know what stimulus data to retrieve from your .RData file by using the ‘xxxx’ label. You should use that label in all subsequent calls to rcicr functions. That means that when you call generateCI2IFC(stimuli, responses, baseimage, rdata), you substitute baseimage with the label you used when generating the stimuli, this way: 

ci <- generateCI2IFC(stimuli, responses, ’ xxxx ', rdata) 

The same goes for the baseimage parameter of batchGenerateCI2IFC(). 

The reason that you have to provide this label is to account for cases where you have studies with various base images that have the same noise patterns superimposed. I realize that this is not completely transparent and will update the documentation in the future. I'll also update functionality in the functions to automatically work without specifying a base image if only one base image was used in a next version of the package. 

Let me know if this helps. 

Best, 

Ron 

________________________________ 
Dr. Ron Dotsch 

Utrecht University 
Social and Organizational Psychology (Room E2.22) 

Website: http://ron.dotsch.org 



<blockquote>

On Nov 11, 2014, at 18:08, DANIEL NOAH ALBOHN < dna5021 at psu.edu > wrote: 

Hello, 

I am currently new to this package, and am trying to following along with the tutorial using my own stimuli. However, I keep getting the error "non-conformable arrays." Specifically, I keep getting this error. 

Error in stimulus + base_faces[[base_face]] : non-conformable arrays 

Any help on resolving this issue would be greatly appreciated. 

Best, 
Dan 

Daniel Albohn 
Lab Manager/Research 
Social Vision and Interpersonal Perception Lab 
Moore Building Room 463 
The Pennsylvania State University 
_______________________________________________ 
Rcicr-users mailing list 
Rcicr-users at lists.r-forge.r-project.org 
http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcicr-users 






</blockquote>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcicr-users/attachments/20141112/333b87b4/attachment.html>


More information about the Rcicr-users mailing list