I get the following error message when I read the txt file with two columns of data (energy and intensity): "11:42:20: Use of uninitialized value $line in pattern match (m//) at C:/strawberry/perl/site/lib/Demeter/Files.pm line 188." Still the data can be read. What is the problem? Thanks in advance, Anna Zimina. ______________________________________________________________________________________ Karlsruhe Institute of Technology (KIT) Institute of Catalysis Research and Technology (IKFT) Dr. Anna Zimina Beamline scientist Hermann-von-Helmholtz-Platz 1 Building 345, Office 108 76344 Eggenstein-Leopoldshafen Phone: +49 721 608 28673 Fax: +49 721 608 26789 E-Mail anna.zimina@kit.edumailto:anna.zimina@kit.edu [cid:image001.jpg@01D071F1.C77B7BC0]
Hi Anna, It would be helpful to know a bit more about your problem. What version are you running? Could you provide the file? I have version 0.9.21x64 and encounter no difficulty importing a 2-column text file such as the attached. With regards to your other query, there is a stand-alone version of atoms that came with 0.9.21. It is visible in the windows start menu for me and opens the same window that I get if I try to import an atom.inp or feff.inp from D'Artemis. best regards, Robert On 4/8/2015 4:47 AM, Zimina, Anna (IKFT) wrote:
I get the following error message when I read the txt file with two columns of data (energy and intensity):
“11:42:20: Use of uninitialized value $line in pattern match (m//) at C:/strawberry/perl/site/lib/Demeter/Files.pm line 188.”
Still the data can be read. What is the problem?
Thanks in advance,
Anna Zimina.
______________________________________________________________________________________
Karlsruhe Institute of Technology (KIT)
Institute of Catalysis Research and Technology (IKFT)
Dr. Anna Zimina
Beamline scientist
Hermann-von-Helmholtz-Platz 1
Building 345, Office 108
76344 Eggenstein-Leopoldshafen
Phone: +49 721 608 28673
Fax: +49 721 608 26789
E-Mail anna.zimina@kit.edu mailto:anna.zimina@kit.edu
xasf16
_______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
-- Dr. Robert Gordon 9700 S Cass Ave. 435E Argonne, IL, USA 60439 630-252-0581 630-252-0580 fax
Hallo, Bruce, Robert. I'm using the 0.9.21 (64)Version with Windows 7. 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. The file from you, Robert, I can read without problem. I would be interesting if the warning message is caused by any strange/hidden signs in the file or some incapability of Win7 with Athena. Thank you for your response, Anna. Von: ifeffit-bounces@millenia.cars.aps.anl.gov [mailto:ifeffit-bounces@millenia.cars.aps.anl.gov] Im Auftrag von Robert Gordon Gesendet: Mittwoch, 8. April 2015 15:19 An: XAFS Analysis using Ifeffit Betreff: Re: [Ifeffit] error message by import Hi Anna, It would be helpful to know a bit more about your problem. What version are you running? Could you provide the file? I have version 0.9.21x64 and encounter no difficulty importing a 2-column text file such as the attached. With regards to your other query, there is a stand-alone version of atoms that came with 0.9.21. It is visible in the windows start menu for me and opens the same window that I get if I try to import an atom.inp or feff.inp from D'Artemis. best regards, Robert On 4/8/2015 4:47 AM, Zimina, Anna (IKFT) wrote: I get the following error message when I read the txt file with two columns of data (energy and intensity): "11:42:20: Use of uninitialized value $line in pattern match (m//) at C:/strawberry/perl/site/lib/Demeter/Files.pm line 188." Still the data can be read. What is the problem? Thanks in advance, Anna Zimina. ______________________________________________________________________________________ Karlsruhe Institute of Technology (KIT) Institute of Catalysis Research and Technology (IKFT) Dr. Anna Zimina Beamline scientist Hermann-von-Helmholtz-Platz 1 Building 345, Office 108 76344 Eggenstein-Leopoldshafen Phone: +49 721 608 28673 Fax: +49 721 608 26789 E-Mail anna.zimina@kit.edumailto:anna.zimina@kit.edu [cid:image001.jpg@01D07215.A4A48730] _______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.govmailto:Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit -- Dr. Robert Gordon 9700 S Cass Ave. 435E Argonne, IL, USA 60439 630-252-0581 630-252-0580 fax
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. HTH, B -- Bruce Ravel ------------------------------------ bravel@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/
Just opening the file.txt in wordpad, and saving is enough to avoid that message when importing. -R. On 4/8/2015 9:43 AM, Bruce Ravel wrote:
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.
HTH, B
-- Dr. Robert Gordon 9700 S Cass Ave. 435E Argonne, IL, USA 60439 630-252-0581 630-252-0580 fax
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@millenia.cars.aps.anl.gov [mailto:ifeffit-bounces@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. HTH, B -- Bruce Ravel ------------------------------------ bravel@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@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
On 04/08/2015 05:47 AM, Zimina, Anna (IKFT) wrote:
I get the following error message when I read the txt file with two columns of data (energy and intensity):
“11:42:20: Use of uninitialized value $line in pattern match (m//) at C:/strawberry/perl/site/lib/Demeter/Files.pm line 188.”
Still the data can be read. What is the problem?
My hints on submitting a useful bug report: http://bruceravel.github.com/demeter/pods/bugs.pod.html It is important to remember that if you do not provide enough information for me to reproduce the problem on my own computer, it's not reasonable to expect me to be able to understand and solve the problem. B -- Bruce Ravel ------------------------------------ bravel@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/
participants (3)
-
Bruce Ravel
-
Robert Gordon
-
Zimina, Anna (IKFT)