Hello Matt.

Thank you for your help.
I solved my problem through your comments.

Your larch code in python gives me a great opportunity to build a new system.

Thank you again and have a great trip :)

2024년 2월 4일 (일) 오전 12:59, Matt Newville <newville@cars.uchicago.edu>님이 작성:
Hi Eun-Suk,

Sorry for the trouble.  I think this should have worked with 0.9.74,
but I also know that I already changed that section of code to avoid
similar problems.   It should work to do
       python -m pip install
https://millenia.cars.aps.anl.gov/xraylarch/downloads/xraylarch-latest-py3-none-any.whl

I think this is a pretty stable version, but I still have a small list
of things I would like to improve before releasing 0.9.75.  I have not
had a lot of time in January for coding and will be traveling for the
next couple of weeks, but talking about software a lot during that
time ;).

Hope that helps, and thanks for your patience.

On Fri, Feb 2, 2024 at 4:06 PM 정은석 <eunsuk1986@jbnu.ac.kr> wrote:
>
> Hello~
>
> I used Larch 0.9.71. until now. However, I would like to update larch and I reinstall anaconda and larch.
> I installed Larch 0.9.74. as following installation guide
> I didn't have any problems during the installation process. However, I faced problems during feffit fitting.
> Before, I used feffit fitting in larch 0.9.71., and then I hadn't had any problems.
>
> I only changed larch as new version. What am I doing?
>
> When I run feffit fitting, I have debugs as the below:
> -------------------------------------------------------------------------------------------------------------------------
>   File "c:\Users\Administrator\Desktop\RL\feffit_error_test\test-feffit.py", line 51, in <module>
>     out = feffit(pars, dset)
>           ^^^^^^^^^^^^^^^^^^
>   File "C:\ProgramData\anaconda3\envs\xraylarch\Lib\site-packages\larch\xafs\feffit.py", line 645, in feffit
>     ds.prepare_fit(params=params, other_hashkeys=dset_hashkeys)
>   File "C:\ProgramData\anaconda3\envs\xraylarch\Lib\site-packages\larch\xafs\feffit.py", line 374, in prepare_fit
>     self._generate_hashkey(other_hashkeys=other_hashkeys)
>   File "C:\ProgramData\anaconda3\envs\xraylarch\Lib\site-packages\larch\xafs\feffit.py", line 291, in _generate_hashkey
>     dat = [self.data.ek0, self.data.e0, self.data.rbkg]
>            ^^^^^^^^^^^^^
> AttributeError: 'Group' object has no attribute 'ek0'
> ----------------------------------------------------------------------------------------------------------------------
>
>
>
> --
> Best regards,
>
> Ph. D. Eun-Suk Jeong
> X-ray absorption fine structure(EXAFS+XANES)
> Mobile:+82-10-4628-9896
>
>
> _______________________________________________
> 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



--
--Matt Newville <newville at cars.uchicago.edu> 630-327-7411

_______________________________________________
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


--
Best regards,

Ph. D. Eun-Suk Jeong
X-ray absorption fine structure(EXAFS+XANES)
Mobile:+82-10-4628-9896