BYU-MicrostructureOfMaterials / OpenXY

Other
35 stars 14 forks source link

Error: "Reference to non-existent field 'PixelSize' #27

Open elegantEmily opened 3 years ago

elegantEmily commented 3 years ago

I was able to get the example to run through OpenXY, however when I try and run my data through it I am getting this error. "Reference to non-existent field 'PixelSize'. Error in HREBSDPrep (line 17) Settings.ROISize = round((Settings.ROISizePercent .01)Settings.PixelSize); Error in HREBSDMain (line 17) Settings = HREBSDPrep(Settings); Error in MainGUI>RunButton_Callback (line 564) Settings = HREBSDMain(Settings); Error in gui_mainfcn (line 95) feval(varargin{:}); Error in MainGUI (line 42) gui_mainfcn(gui_State, varargin{:}); Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)MainGUI('RunButton_Callback',hObject,eventdata,guidata(hObject)) Caused by: OpenXY encountered an error. Re-select the scan file to reset. Error while evaluating UIControl Callback."

When I look at my .ang file and grain file they seem to match the format of the example. I'm not sure what is going wrong, as in the example there isn't a step to set the PixelSize.

I have attached a text version of my ang file, my grain file and a jpeg of my first tiff image.

Have a wonderful day! Emily

HR-EBSD_map20190801102733830_x0y0 N205DF_Area4_HREBSD_GrainFile_20210223.txt

dtfullwood commented 3 years ago

Did you pull the latest version of OpenXY? There was an issue with Tiff files that I fixed recently (a few weeks ago). Thanks David

elegantEmily commented 3 years ago

I just downloaded the newest version (I had one from 7/2020). Everything seems to be running now!

Thanks! Emily

elegantEmily commented 3 years ago

Update: It looked like my file was running ok, but then it could not save the results. This was the error message displayed:

"Error using save Cannot create 'ErrorSettings.mat' because 'temp' does not exist. Error in MainGUI>RunButton_Callback (line 569) save('temp/ErrorSettings.mat'); Error in gui_mainfcn (line 95) feval(varargin{:}); Error in MainGUI (line 42) gui_mainfcn(gui_State, varargin{:}); Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)MainGUI('RunButton_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback."

It saved the Analysis Parameters file but not the corrected ang file. These were the commands output before the error:

" Entering HREBSDMain Running HREBSDPrep Getting Reference Image Indices... Setting up parallel processing... Starting cross-correlation Running strain cross-correlation... Time to finish: 129.4139 minutes Starting Dislocation Density Calculation 1 Hexagonal Analyzing and transferring files to the workers ...done."

dtfullwood commented 3 years ago

Hi Emily, I was just going to look at it, but my Matlab license in the office had expired, so I will look at it on my home computer. Feel free to ping me in a couple of days if I forget to get back to you: dfullwood@byu.edu

eretnek commented 3 years ago

The second error you mentioned is just because we tried to save a different error. Create a temp folder and run again and you'll get the proper error message. For some reason the temp folder isn't automatically generated anymore.

On Fri, Mar 5, 2021, 5:05 PM dtfullwood notifications@github.com wrote:

Hi Emily, I was just going to look at it, but my Matlab license in the office had expired, so I will look at it on my home computer. Feel free to ping me in a couple of days if I forget to get back to you: dfullwood@byu.edu

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BYU-MicrostructureOfMaterials/OpenXY/issues/27#issuecomment-791801748, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWHJDI74ZSQPSK4ELZVN6TTCFWWDANCNFSM4YVXM44A .