[Ifeffit] error message by import

Zimina, Anna (IKFT) anna.zimina at kit.edu
Thu Apr 9 02:31:53 CDT 2015

Thank you, it helps.
The files are created with IgorPro, first developed for Mac, and could be that there is an old fashion character left.

Greetings, Anna.

-----Ursprüngliche Nachricht-----
Von: ifeffit-bounces at millenia.cars.aps.anl.gov [mailto:ifeffit-bounces at millenia.cars.aps.anl.gov] Im Auftrag von Bruce Ravel
Gesendet: Mittwoch, 8. April 2015 16:44
An: XAFS Analysis using Ifeffit
Betreff: Re: [Ifeffit] error message by import

On 04/08/2015 10:15 AM, Zimina, Anna (IKFT) wrote:
> When I try to import the attached file.txt, the warning message 
> appears (see screenshot.png). After clicking OK the file is imported.
> The log file (dathena.log) and the message (log.txt) are attached.

When Athena is given a file, it runs a sequence of tests to try to figure out what kind of file it is looking.  For example, it tries to recognize an Athena project file and interpret it as such before trying to interpret the file as column data.  File name and extension is not a reliable way to do this, so it examines the content of the file.

Your file is confusing one of the tests.  It's easily fixable.  I will push a solution to github shortly and include the fix in the next installer release.

So, what's the problem with your file?  Well, yours is a rather strange one for the year 2015.  The newline character used is CR, which is what was used by Mac OS9 and a few operating systems that were common in the 1980s.  Pretty uncommon kind of file these days.
To be honest, I am pleasantly surprised that Athena reads it correctly at all.

In fact, the test that gives that error message is something I wrote a few weeks ago.  I certainly did not test it against a file with CR line termination.

Until I make a new installer (which won't be for several weeks -- I am just about to go on travel), you have a couple of options.  One is to simply live with the error message and click the box away.  Annoying, but serviceable.  The other is to run your data files through some kind of filter that changes the end-of-line character.  Searching Google for "convert CR to CRLF" turns up several possibilities.


  Bruce Ravel  ------------------------------------ bravel at bnl.gov

  National Institute of Standards and Technology
  Synchrotron Science Group at NSLS-II
  Building 535A
  Upton NY, 11973

  Homepage:    http://bruceravel.github.io/home/
  Software:    https://github.com/bruceravel
  Demeter:     http://bruceravel.github.io/demeter/
Ifeffit mailing list
Ifeffit at millenia.cars.aps.anl.gov

More information about the Ifeffit mailing list