Page 1 of 1

Easyspin source code

Posted: Wed Mar 23, 2016 3:04 am
by Charles
I heard rumours that the source code of Easyspin will be published soon. Is this true? If so, at which time is this planned?

Thanks for your help

Charles

Re: Easyspin source code

Posted: Wed Mar 23, 2016 7:36 am
by Stefan Stoll
There is no explicit time frame for this. We anticipate 2017.

Re: Easyspin source code

Posted: Mon Apr 03, 2017 3:05 pm
by mifrye
Are there any updates on this? I'm trying to develop a Python script to mimic eprload to use on a Raspberry Pi, but have had trouble decoding the .SPC files.

Re: Easyspin source code

Posted: Mon Apr 10, 2017 12:37 am
by katarkon
As I know, SPC file is a simple sequence or 4-byte floating point values. All other data are in the PAR file which is ASCII text.

Re: Easyspin source code

Posted: Sat Apr 15, 2017 4:34 pm
by Stefan Stoll
The PAR/SPC format changed quite a bit over time, depending whether you look at ESP data, WinEPR data, etc.

Here are a few snippets that should help. Little vs. big endian can make a difference:

Code: Select all

% For DOS ByteOrder is ieee-le, in all other cases ieee-be
if isfield(Parameters,'DOS')
  Endian = 'ieee-le';
  FileType = 'w';
else
  Endian = 'ieee-be';
end
The data could be complex or 2D:

Code: Select all

% Analyse data type flags stored in JSS.
if isfield(Parameters,'JSS')
  Flags = sscanf(Parameters.JSS,'%f');
  isComplex = bitget(Flags,5);
  TwoD = bitget(Flags,13);
end
The file type determines the number type in SPC:

Code: Select all

% FileType: flag for specific file format
% w   Windows machines, WinEPR
% c   ESP machines, cw EPR data
% p   ESP machines, pulse EPR data
% Set number format
switch FileType
  case 'c', NumberFormat = 'int32';
  case 'w', NumberFormat = 'float'; % WinEPR/Simfonia: single float
  case 'p', NumberFormat = 'int32'; % old: 'float'
end

Re: Easyspin source code

Posted: Tue Dec 19, 2017 3:01 am
by pegli
Are there any new plans to make the source code of Easyspin available as open source software?

Is it planed to port Easyspin to freely available frameworks like Python/Numpy ?

Re: Easyspin source code

Posted: Thu Jan 11, 2018 4:31 pm
by Stefan Stoll
We are working on making the EasySpin source code openly accessible.

Regarding Python/Numpy, there are currently no plans. It would a significant effort, and we unfortunately don't have the bandwidth to do that.