Error in EPR load

A place to report and discuss potential bugs
Post Reply
natalia
Newbie
Posts: 2
Joined: Sun Jan 31, 2016 8:23 am

Error in EPR load

Post by natalia »

Hi,
I recently installed Matlab R2015b. When I tried to load a bruker file the following message came up.
I am not sure what bufSize is. Can anyone help please?

>> [B59d,spc59d] = eprload('kk759d_wide');
Error using textscan
'BufSize' is no longer required and has been
removed.

Error in eprload

Error in eprload

Error in eprload
Stefan Stoll
EasySpin Creator
Posts: 1041
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: Error in EPR load

Post by Stefan Stoll »

Check whether you have the latest version of EasySpin. This used to be a bug, but was fixed in 5.0.8.
natalia
Newbie
Posts: 2
Joined: Sun Jan 31, 2016 8:23 am

Re: Error in EPR load

Post by natalia »

That was it!
Thank you. :D
myersw802
User
Posts: 13
Joined: Tue Aug 12, 2014 12:27 pm

Re: Error in EPR load

Post by myersw802 »

I have Matlab 2015b and EasySpin 5.0.22, error for multiple files of Xenon and Xepr origin is:

Error using textscan
'BufSize' is no longer required and has been removed.

Error in eprload

Error in eprload

Error in plot_ENDORxy (line 10)
[b,a,par] = eprload('AUTOSAVE0000.DTA');

This started spontaneously after some weeks/months with the Matlab EasySpin combo above. I'm using a pre-textscan eprload for now.
Stefan Stoll
EasySpin Creator
Posts: 1041
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: Error in EPR load

Post by Stefan Stoll »

This should not appear anymore in 5.0.22 with R2015b. Here is the corresponding code from eprload:

Code: Select all

MatlabVersion = sscanf(version,'%f',1);
if MatlabVersion<8.6  % prior to R2015b
    warning('off','MATLAB:textscan:BufSizeDeprecation');
    allLines = textscan(fh,'%s','whitespace','','delimiter','\n','bufsize',500000); %#ok<BUFSIZE>
  else
    allLines = textscan(fh,'%s','whitespace','','delimiter','\n');
  end
Please post a file so we can test this (again).
myersw802
User
Posts: 13
Joined: Tue Aug 12, 2014 12:27 pm

Re: Error in EPR load

Post by myersw802 »

>> version

ans =

8.6.0.267246 (R2015b)

>> easyspininfo
==================================================================
Release: 5.0.22 (2016-05-17)
Expiry date: 30-Jun-2017
Folder: [ ... ]
MATLAB version: 8.6.0.267246 (R2015b)
Platform: Microsoft Windows [Version 6.1.7601]
mex-files: mexw64, ok
System date: 16-Jul-2016 21:39:01
Temp dir: [ ... ]
==================================================================
Stefan Stoll
EasySpin Creator
Posts: 1041
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: Error in EPR load

Post by Stefan Stoll »

Please post DTA and DSC files that generate this error, so we can look into it.
myersw802
User
Posts: 13
Joined: Tue Aug 12, 2014 12:27 pm

Re: Error in EPR load

Post by myersw802 »

Sorry I missed the following error messages that appeared previously. The file attachment appears like it might work this time.

The extension dsc is not allowed. The extension des is not allowed. The extension txt is not allowed.
AUTOSAVE0000.m
rename extension to DSC
(2.9 KiB) Downloaded 552 times
rename extension to DSC

The extension dta is not allowed. The extension dat is not allowed.
AUTOSAVE0000.p
rename the extension to DTA
(23.44 KiB) Downloaded 495 times
rename the extension to DTA
Stefan Stoll
EasySpin Creator
Posts: 1041
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: Error in EPR load

Post by Stefan Stoll »

Thanks. I cannot reproduce this problem. The file loads cleanly with R2015b and 5.0.22 on my Win10 computer. Can you check whether the correct functions are being called? Use

Code: Select all

which eprload -all
which textscan -all
myersw802
User
Posts: 13
Joined: Tue Aug 12, 2014 12:27 pm

Re: Error in EPR load

Post by myersw802 »

That's it! Sorry I thought I had checked that previously by paring the path down to just EasySpin, but apparently not. Many thanks. -Will
...\Documents\MATLAB\UserCommunity\BrittLab\eprload.p
Post Reply