Hello Matt

I am sorry to bother you.

I have another problem regarding ff2chi.

This problem is similar to the previous one. Could you check it?

---------------------------------------------------------------------------------------
  File "c:\Users\Administrator\Desktop\RL\RL-EXAFS\RL_fitting\chi_state_step_RL\Pt-foil\modules\FuncEnv.py", line 233, in step
    ff2chi(self.path_lists, group=theory_sum)
  File "C:\ProgramData\anaconda3\envs\xraylarch\Lib\site-packages\larch\xafs\feffdat.py", line 658, in ff2chi    
    path.create_path_params(params=params)
  File "C:\ProgramData\anaconda3\envs\xraylarch\Lib\site-packages\larch\xafs\feffdat.py", line 392, in create_path_params
    parname = self.pathpar_name(pname)
              ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ProgramData\anaconda3\envs\xraylarch\Lib\site-packages\larch\xafs\feffdat.py", line 331, in pathpar_name
    return f'{parname}_{self.dataset}_{self.hashkey}'
                        ^^^^^^^^^^^^
AttributeError: 'FeffPathGroup' object has no attribute 'dataset'
---------------------------------------------------------------------------------------------------------------
where self.path_lists indicates the list of path, for example, self.path_lists=[path1, path2, path3]

 



2024년 2월 4일 (일) 오후 2:38, 정은석 <eunsuk1986@jbnu.ac.kr>님이 작성:
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




--
Best regards,

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