Re: [Ifeffit] Argument "h_rmax = 4" isn't numeric in array or hash

2023-04-15 Thread Robert Gordon
HI Ryan,

I have attached my test file...just an iron foil scan. It reads in without
any grievous issue on my pc running Win10
and version 0.9.26 of the Demeter package.

If you are running Win11, it is possible that an update has caused an
issue. Possibly your installation has become
corrupted somehow. Either reason could be why Athena no longer works as it
did for you a year ago.

Using legacy console might help:
[image: image.png]

or you could give Larch a try  https://xraypy.github.io/xraylarch/
or WinXAS http://winxas.de/

-R.



On Sat, Apr 15, 2023 at 2:35 AM Ryan Parmenter 
wrote:

> Hi all,
>
>
>
> I have been using the Demeter package for a year now and have recently
> been experiencing an issue when importing data. The following message pops
> up when importing data into Athena:
>
>
>
> 10:23:55: Argument "h_rmax = 4" isn't numeric in array or hash lookup at
> AppData/Roaming/DemeterPerl/perl/site/lib/Demeter/StrTypes.pm line 139.
>
>
>
> Line 139 contains:
>
> coerce Window, from Str, via { ($_ =~ m{[0-5]}) ? $window_list[$_] : $_ };
>
>
>
> This usually pertains to line 139, but the following errors appear after
> the data import window is closed.
>
>
>
>
>
>
>
>
>
> 10:23:58: Argument "h_rmax = 4" isn't numeric in array or hash lookup at
> AppData/Roaming/DemeterPerl/perl/site/lib/Demeter/StrTypes.pm line 139, 
> line 19.
>
>
>
> 10:23:58: Argument "h_rmax = 4" isn't numeric in array or hash lookup at
> AppData/Roaming/DemeterPerl/perl/site/lib/Demeter/StrTypes.pm line 139, 
> line 27.
>
>
>
> 10:23:58: Argument "h_rmax = 4" isn't numeric in array or hash lookup at
> AppData/Roaming/DemeterPerl/perl/site/lib/Demeter/StrTypes.pm line 139, 
> line 35.
>
>
>
> 10:23:58: Argument "h_rmax = 4" isn't numeric in array or hash lookup at
> AppData/Roaming/DemeterPerl/perl/site/lib/Demeter/StrTypes.pm line 139, 
> line 43.
>
>
>
> 10:23:58: Argument "h_rmax = 4" isn't numeric in array or hash lookup at
> AppData/Roaming/DemeterPerl/perl/site/lib/Demeter/StrTypes.pm line 139, 
> line 51.
>
>
>
> 10:23:58: Argument "h_rmax = 4" isn't numeric in array or hash lookup at
> AppData/Roaming/DemeterPerl/perl/site/lib/Demeter/StrTypes.pm line 139, 
> line 59.
>
>
>
> 10:23:58: Argument "h_rmax = 4" isn't numeric in array or hash lookup at
> AppData/Roaming/DemeterPerl/perl/site/lib/Demeter/StrTypes.pm line 139, 
> line 67.
>
>
>
>
>
> The programme still runs; however, this pop-up is becoming slightly
> frustrating, given the amount of data I have. I have tried to use an older
> version, but the issue persists. This occurs with new and old data files,
> which were fine in the past. Do you have any ideas on how I can resolve
> this? I appreciate any help you can give me.
>
>
>
>
> ___
> Ifeffit mailing list
> Ifeffit@millenia.cars.aps.anl.gov
> http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
> Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit
>
# created: Wed Jan 09 09:08:28 2019
# from file: fefoil.txt
# No: 361  [E0: 0,0,0,-1]
#-
#   X  Y
6.9718271736E+003  3.1371008379E-001
6.9767479971E+003  3.1089126005E-001
6.9817070281E+003  3.0800422954E-001
6.9868284175E+003  3.0506005802E-001
6.9915954539E+003  3.0194161622E-001
6.9967838188E+003  2.9921853792E-001
7.0016584570E+003  2.9626333068E-001
7.0066337362E+003  2.9343282108E-001
7.0117413192E+003  2.9055511016E-001
7.0165230556E+003  2.8783869570E-001
7.0217083429E+003  2.8494935294E-001
7.0265565563E+003  2.8228425448E-001
7.0315478879E+003  2.7955754636E-001
7.0366410077E+003  2.7687430621E-001
7.0414057342E+003  2.7428782362E-001
7.0465873922E+003  2.7131936382E-001
7.0514609826E+003  2.6883049238E-001
7.0564259997E+003  2.6659333883E-001
7.0614933954E+003  2.6396043725E-001
7.0662509750E+003  2.6172804077E-001
7.0712801203E+003  2.5946781823E-001
7.0762848999E+003  2.5728522575E-001
7.0810739131E+003  2.5584019366E-001
7.0861995790E+003  2.5437853242E-001
7.0909706232E+003  2.5383549655E-001
7.0958230730E+003  2.5470401617E-001
7.1008427660E+003  2.5818736437E-001
7.1014627305E+003  2.5913177908E-001
7.1018903580E+003  2.5965634024E-001
7.1023180391E+003  2.6039780060E-001
7.1029810509E+003  2.6175073102E-001
7.1035051354E+003  2.6289777627E-001
7.1039223215E+003  2.6403034833E-001
7.1042753649E+003  2.6513646074E-001
7.1048531513E+003  2.6708010328E-001
7.1054096307E+003  2.6947603252E-001
7.1059340887E+003  2.7192789857E-001
7.1062873406E+003  2.7419920566E-001
7.1067584000E+003  2.7776045615E-001
7.1073580243E+003  2.8283240095E-001
7.1078399416E+003  2.8915370204E-001
7.1082255245E+003  2.9598783753E-001
7.1086647137E+003  3.0535218192E-001
7.1093075315E+003  3.3002287142E-001
7.1098433055E+003  3.7572547122E-001
7.1103148563E+003  4.3977409820E-001
7.110690E+003  5.2307263857E-001
7.1113653627E+003  6.6546372068E-001
7.1119550743E+003  7.5606007282E-001
7.1123411225E+003  

[Ifeffit] Argument "h_rmax = 4" isn't numeric in array or hash

2023-04-15 Thread Ryan Parmenter
Hi all,

I have been using the Demeter package for a year now and have recently been 
experiencing an issue when importing data. The following message pops up when 
importing data into Athena:

10:23:55: Argument "h_rmax = 4" isn't numeric in array or hash lookup at 
AppData/Roaming/DemeterPerl/perl/site/lib/Demeter/StrTypes.pm line 139.

Line 139 contains:
coerce Window, from Str, via { ($_ =~ m{[0-5]}) ? $window_list[$_] : $_ };

This usually pertains to line 139, but the following errors appear after the 
data import window is closed.




10:23:58: Argument "h_rmax = 4" isn't numeric in array or hash lookup at 
AppData/Roaming/DemeterPerl/perl/site/lib/Demeter/StrTypes.pm line 139,  
line 19.

10:23:58: Argument "h_rmax = 4" isn't numeric in array or hash lookup at 
AppData/Roaming/DemeterPerl/perl/site/lib/Demeter/StrTypes.pm line 139,  
line 27.

10:23:58: Argument "h_rmax = 4" isn't numeric in array or hash lookup at 
AppData/Roaming/DemeterPerl/perl/site/lib/Demeter/StrTypes.pm line 139,  
line 35.

10:23:58: Argument "h_rmax = 4" isn't numeric in array or hash lookup at 
AppData/Roaming/DemeterPerl/perl/site/lib/Demeter/StrTypes.pm line 139,  
line 43.

10:23:58: Argument "h_rmax = 4" isn't numeric in array or hash lookup at 
AppData/Roaming/DemeterPerl/perl/site/lib/Demeter/StrTypes.pm line 139,  
line 51.

10:23:58: Argument "h_rmax = 4" isn't numeric in array or hash lookup at 
AppData/Roaming/DemeterPerl/perl/site/lib/Demeter/StrTypes.pm line 139,  
line 59.

10:23:58: Argument "h_rmax = 4" isn't numeric in array or hash lookup at 
AppData/Roaming/DemeterPerl/perl/site/lib/Demeter/StrTypes.pm line 139,  
line 67.


The programme still runs; however, this pop-up is becoming slightly 
frustrating, given the amount of data I have. I have tried to use an older 
version, but the issue persists. This occurs with new and old data files, which 
were fine in the past. Do you have any ideas on how I can resolve this? I 
appreciate any help you can give me.


___
Ifeffit mailing list
Ifeffit@millenia.cars.aps.anl.gov
http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit