Easyspin source code

General forum for EasySpin: questions, how to's, etc.
Post Reply
Charles
Newbie
Posts: 5
Joined: Wed Mar 23, 2016 3:01 am

Easyspin source code

Post 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
Stefan Stoll
EasySpin Creator
Posts: 1041
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: Easyspin source code

Post by Stefan Stoll »

There is no explicit time frame for this. We anticipate 2017.
mifrye
Newbie
Posts: 1
Joined: Mon Apr 03, 2017 3:02 pm

Re: Easyspin source code

Post 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.
katarkon
Local Expert
Posts: 183
Joined: Mon Jan 12, 2015 4:01 am

Re: Easyspin source code

Post 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.
Stefan Stoll
EasySpin Creator
Posts: 1041
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: Easyspin source code

Post 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
pegli
Newbie
Posts: 3
Joined: Sat Sep 30, 2017 8:08 am

Re: Easyspin source code

Post 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 ?
Stefan Stoll
EasySpin Creator
Posts: 1041
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: Easyspin source code

Post 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.
Post Reply