Re: [Ifeffit] problems installing athena et al under ubuntu 16.04 LTS

2016-11-23 Thread Robert Gordon

Hi Juan,

I just installed demeter and larch on an Ubuntu 16.04lts system today.
I can reproduce something like your error. I use the 10K Cu data in the 
examples

folder.

If I import it and don't select the numerator on import, the plot window 
has issues

(~10^307 axis limit), but the file gets listed in the data list.

I can get 10^9 for the energy axis by specifying keV instead of eV for 
the import energy.


i.e. Matt's question: Did you import the data correctly?
(and why 10^9 if it is supposedly multiplying by 1000?...would have 
thought 10^6...)


Did you import a number of datasets with mixed keV and eV energy scales? 
I did that once
where the first file was in keV and subsequent ones in eV and the energy 
scale was decidedly

off for the subsequent ones.

cheers,
Robert

On 11/23/2016 7:45 PM, Matt Newville wrote:

Hi Juan,

On Wed, Nov 23, 2016 at 12:43 PM, Juan de la figuera 
> wrote:


Dear all,

I have been installing demeter from git under ubuntu 16.04 LTS,
following the non-root instructions from:
https://gist.github.com/waveform80/3959252


I also installed xraylarch from git. Xaylarch is only missing:
#=== Warning: Some recommended Python Packages are missing:
epics:  needed for using the EPICS control system
pyFAI:  needed for xrd modules

It seems to work, but when I try to open a file that can be open
properly from Athena installed on Windows, I get:

Trying Larch server:

/home/juan/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Demeter/share/ini/larch_server.in
i
Trying Larch server:  larch_server -p 4968 start
larch_server port=4968: started

gnuplot> set xrange [ 690013 : 795561 ]
 ^
line 0: warning: integer overflow; changing to floating point

gnuplot> set xrange [ 690013 : 795561 ]
^
line 0: warning: integer overflow; changing to floating point


and although it opens the data in a gnuplot window, the scale is
off (7x10^9 instead of 7x10^3). I am assuming once it is confused
about the scale, it makes a mess with the data.



Did you import the data correctly?

Did you try this with more than one data file?

Why did you not include that data file in your request for help?

If you had included the (or a) file giving you trouble, it would allow 
someone else to try to reproduce the problem, which might actually 
lead to an answer.


--Matt

PS:  Athena version 0.8.061 is more than 5 years old and is not supported.



___
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


___
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


Re: [Ifeffit] problems installing athena et al under ubuntu 16.04 LTS

2016-11-23 Thread Matt Newville
Hi Juan,

On Wed, Nov 23, 2016 at 12:43 PM, Juan de la figuera <
juan.delafigu...@gmail.com> wrote:

> Dear all,
>
> I have been installing demeter from git under ubuntu 16.04 LTS, following
> the non-root instructions from:
> https://gist.github.com/waveform80/3959252
>
> I also installed xraylarch from git. Xaylarch is only missing:
> #=== Warning: Some recommended Python Packages are missing:
> epics:  needed for using the EPICS control system
> pyFAI:  needed for xrd modules
>
> It seems to work, but when I try to open a file that can be open properly
> from Athena installed on Windows, I get:
>
> Trying Larch server: /home/juan/perl5/lib/perl5/x86
> _64-linux-gnu-thread-multi/Demeter/share/ini/larch_server.ini
> Trying Larch server:  larch_server -p 4968 start
> larch_server port=4968: started
>
> gnuplot> set xrange [ 690013 : 795561 ]
>  ^
> line 0: warning: integer overflow; changing to floating point
>
> gnuplot> set xrange [ 690013 : 795561 ]
>   ^
> line 0: warning: integer overflow; changing to floating point
>
>
> and although it opens the data in a gnuplot window, the scale is off
> (7x10^9 instead of 7x10^3). I am assuming once it is confused about the
> scale, it makes a mess with the data.
>


Did you import the data correctly?

Did you try this with more than one data file?

Why did you not include that data file in your request for help?

If you had included the (or a) file giving you trouble, it would allow
someone else to try to reproduce the problem, which might actually lead to
an answer.

--Matt

PS:  Athena version 0.8.061 is more than 5 years old and is not supported.
___
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


Re: [Ifeffit] problems installing athena et al under ubuntu 16.04 LTS

2016-11-23 Thread Juan de la figuera
Hi to all,

I found that there is actually an "horae" package in ubuntu. It is a bit
old (0.8.061 for athena) but it takes care of all the installing. Ifeffit
is also packaged, both by Carlo Segre .

Juan

El mié., 23 nov. 2016 a las 21:56, Juan de la figuera (<
juan.delafigu...@gmail.com>) escribió:

> BTW, it does not seem to be a problem with locale, I set it to "C"
> beforehand:
>
> juan@maghemite:xraylarch$ locale
> LANG=C
> LANGUAGE=C
> LC_CTYPE="C"
> LC_NUMERIC="C"
> LC_TIME="C"
> LC_COLLATE="C"
> LC_MONETARY="C"
> LC_MESSAGES="C"
> LC_PAPER="C"
> LC_NAME="C"
> LC_ADDRESS="C"
> LC_TELEPHONE="C"
> LC_MEASUREMENT="C"
> LC_IDENTIFICATION="C"
> LC_ALL=C
>
>
> El mié., 23 nov. 2016 a las 19:43, Juan de la figuera (<
> juan.delafigu...@gmail.com>) escribió:
>
> Dear all,
>
> I have been installing demeter from git under ubuntu 16.04 LTS, following
> the non-root instructions from:
> https://gist.github.com/waveform80/3959252
>
> I also installed xraylarch from git. Xaylarch is only missing:
> #=== Warning: Some recommended Python Packages are missing:
> epics:  needed for using the EPICS control system
> pyFAI:  needed for xrd modules
>
> It seems to work, but when I try to open a file that can be open properly
> from Athena installed on Windows, I get:
>
> Trying Larch server:
> /home/juan/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Demeter/share/ini/larch_server.ini
>
> Trying Larch server:  larch_server -p 4968 start
> larch_server port=4968: started
>
> gnuplot> set xrange [ 690013 : 795561 ]
>  ^
> line 0: warning: integer overflow; changing to floating point
>
> gnuplot> set xrange [ 690013 : 795561 ]
>   ^
> line 0: warning: integer overflow; changing to floating point
>
>
> and although it opens the data in a gnuplot window, the scale is off
> (7x10^9 instead of 7x10^3). I am assuming once it is confused about the
> scale, it makes a mess with the data.
> The output of probe -bv is:
> t/000_ifeffit.t .
> 1..6
> ok 1 - show
> ok 2 - show arrays:
> ok 3 - get_scalar 1.2345
> ok 4 - put scalar
> ok 5 - put/get_string: my.xmu
> ok 6 - put/get_array:
> ok
> t/001_base.t 
> 1..24
> Trying Larch server:
> /home/juan/soft/demeter/blib/lib/Demeter/share/ini/larch_server.ini
> Trying Larch server:  larch_server -p 4969 start
> larch_server port=4969: started
> ok 1 - new() works
> ok 2 - group is set: orihs
> ok 3 - unique group names: orihs & bcxkm
> ok 4 - installation location identified
> ok 5 - identity string
> ok 6 - generic object is not plottable
> ok 7 - generic object has no data
> ok 8 - Project role works
> ok 9 - demeter can do introspection
> ok 10 - ifeffit disposal mode flag: 1
> ok 11 - handle unknown mode gracefully
> ok 12 - other disposal modes all false
> ok 13 - turn on screen disposal mode flag
> ok 14 - turn on file disposal mode flag
> ok 15 - turn on buffer disposal mode flag
> ok 16 - unknown window not recognized
> ok 17 - known element (Cu) is recognized
> ok 18 - unknown element (Ci) not recognized
> ok 19 - simple template works
> not ok 20 - simple disposal to Ifeffit: string
>
> #   Failed test 'simple disposal to Ifeffit: string'
> #   at t/001_base.t line 69.
> not ok 21 - simple disposal to Ifeffit: scalar
>
> #   Failed test 'simple disposal to Ifeffit: scalar'
> #   at t/001_base.t line 70.
> Use of uninitialized value in numeric eq (==) at t/001_base.t line 71.
> not ok 22 - simple disposal to Ifeffit: array
>
> #   Failed test 'simple disposal to Ifeffit: array'
> #   at t/001_base.t line 71.
> ok 23 - simple disposal wrapper works
> ok 24 - plot_with works
> # Looks like you failed 3 tests of 24.
>
> Any help would be appreciated.
>
>
> Juan
>
>
___
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


Re: [Ifeffit] problems installing athena et al under ubuntu 16.04 LTS

2016-11-23 Thread Juan de la figuera
BTW, it does not seem to be a problem with locale, I set it to "C"
beforehand:

juan@maghemite:xraylarch$ locale
LANG=C
LANGUAGE=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C


El mié., 23 nov. 2016 a las 19:43, Juan de la figuera (<
juan.delafigu...@gmail.com>) escribió:

> Dear all,
>
> I have been installing demeter from git under ubuntu 16.04 LTS, following
> the non-root instructions from:
> https://gist.github.com/waveform80/3959252
>
> I also installed xraylarch from git. Xaylarch is only missing:
> #=== Warning: Some recommended Python Packages are missing:
> epics:  needed for using the EPICS control system
> pyFAI:  needed for xrd modules
>
> It seems to work, but when I try to open a file that can be open properly
> from Athena installed on Windows, I get:
>
> Trying Larch server:
> /home/juan/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Demeter/share/ini/larch_server.ini
>
> Trying Larch server:  larch_server -p 4968 start
> larch_server port=4968: started
>
> gnuplot> set xrange [ 690013 : 795561 ]
>  ^
> line 0: warning: integer overflow; changing to floating point
>
> gnuplot> set xrange [ 690013 : 795561 ]
>   ^
> line 0: warning: integer overflow; changing to floating point
>
>
> and although it opens the data in a gnuplot window, the scale is off
> (7x10^9 instead of 7x10^3). I am assuming once it is confused about the
> scale, it makes a mess with the data.
> The output of probe -bv is:
> t/000_ifeffit.t .
> 1..6
> ok 1 - show
> ok 2 - show arrays:
> ok 3 - get_scalar 1.2345
> ok 4 - put scalar
> ok 5 - put/get_string: my.xmu
> ok 6 - put/get_array:
> ok
> t/001_base.t 
> 1..24
> Trying Larch server:
> /home/juan/soft/demeter/blib/lib/Demeter/share/ini/larch_server.ini
> Trying Larch server:  larch_server -p 4969 start
> larch_server port=4969: started
> ok 1 - new() works
> ok 2 - group is set: orihs
> ok 3 - unique group names: orihs & bcxkm
> ok 4 - installation location identified
> ok 5 - identity string
> ok 6 - generic object is not plottable
> ok 7 - generic object has no data
> ok 8 - Project role works
> ok 9 - demeter can do introspection
> ok 10 - ifeffit disposal mode flag: 1
> ok 11 - handle unknown mode gracefully
> ok 12 - other disposal modes all false
> ok 13 - turn on screen disposal mode flag
> ok 14 - turn on file disposal mode flag
> ok 15 - turn on buffer disposal mode flag
> ok 16 - unknown window not recognized
> ok 17 - known element (Cu) is recognized
> ok 18 - unknown element (Ci) not recognized
> ok 19 - simple template works
> not ok 20 - simple disposal to Ifeffit: string
>
> #   Failed test 'simple disposal to Ifeffit: string'
> #   at t/001_base.t line 69.
> not ok 21 - simple disposal to Ifeffit: scalar
>
> #   Failed test 'simple disposal to Ifeffit: scalar'
> #   at t/001_base.t line 70.
> Use of uninitialized value in numeric eq (==) at t/001_base.t line 71.
> not ok 22 - simple disposal to Ifeffit: array
>
> #   Failed test 'simple disposal to Ifeffit: array'
> #   at t/001_base.t line 71.
> ok 23 - simple disposal wrapper works
> ok 24 - plot_with works
> # Looks like you failed 3 tests of 24.
>
> Any help would be appreciated.
>
>
> Juan
>
___
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


[Ifeffit] problems installing athena et al under ubuntu 16.04 LTS

2016-11-23 Thread Juan de la figuera
Dear all,

I have been installing demeter from git under ubuntu 16.04 LTS, following
the non-root instructions from:
https://gist.github.com/waveform80/3959252

I also installed xraylarch from git. Xaylarch is only missing:
#=== Warning: Some recommended Python Packages are missing:
epics:  needed for using the EPICS control system
pyFAI:  needed for xrd modules

It seems to work, but when I try to open a file that can be open properly
from Athena installed on Windows, I get:

Trying Larch server:
/home/juan/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Demeter/share/ini/larch_server.ini

Trying Larch server:  larch_server -p 4968 start
larch_server port=4968: started

gnuplot> set xrange [ 690013 : 795561 ]
 ^
line 0: warning: integer overflow; changing to floating point

gnuplot> set xrange [ 690013 : 795561 ]
  ^
line 0: warning: integer overflow; changing to floating point


and although it opens the data in a gnuplot window, the scale is off
(7x10^9 instead of 7x10^3). I am assuming once it is confused about the
scale, it makes a mess with the data.
The output of probe -bv is:
t/000_ifeffit.t .
1..6
ok 1 - show
ok 2 - show arrays:
ok 3 - get_scalar 1.2345
ok 4 - put scalar
ok 5 - put/get_string: my.xmu
ok 6 - put/get_array:
ok
t/001_base.t 
1..24
Trying Larch server:
/home/juan/soft/demeter/blib/lib/Demeter/share/ini/larch_server.ini
Trying Larch server:  larch_server -p 4969 start
larch_server port=4969: started
ok 1 - new() works
ok 2 - group is set: orihs
ok 3 - unique group names: orihs & bcxkm
ok 4 - installation location identified
ok 5 - identity string
ok 6 - generic object is not plottable
ok 7 - generic object has no data
ok 8 - Project role works
ok 9 - demeter can do introspection
ok 10 - ifeffit disposal mode flag: 1
ok 11 - handle unknown mode gracefully
ok 12 - other disposal modes all false
ok 13 - turn on screen disposal mode flag
ok 14 - turn on file disposal mode flag
ok 15 - turn on buffer disposal mode flag
ok 16 - unknown window not recognized
ok 17 - known element (Cu) is recognized
ok 18 - unknown element (Ci) not recognized
ok 19 - simple template works
not ok 20 - simple disposal to Ifeffit: string

#   Failed test 'simple disposal to Ifeffit: string'
#   at t/001_base.t line 69.
not ok 21 - simple disposal to Ifeffit: scalar

#   Failed test 'simple disposal to Ifeffit: scalar'
#   at t/001_base.t line 70.
Use of uninitialized value in numeric eq (==) at t/001_base.t line 71.
not ok 22 - simple disposal to Ifeffit: array

#   Failed test 'simple disposal to Ifeffit: array'
#   at t/001_base.t line 71.
ok 23 - simple disposal wrapper works
ok 24 - plot_with works
# Looks like you failed 3 tests of 24.

Any help would be appreciated.

Juan
___
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