unexpected keyword argument in YamboIn

Post here any question you encounter when running the scripts of the yambo-py suite. Post here problem strictly to the python interface as problem coming from the yambo runs should go in the appropriate subforum.

Moderators: palful, amolina, mbonacci

Post Reply
Longjun Xiang
Posts: 34
Joined: Tue May 07, 2019 9:53 am

unexpected keyword argument in YamboIn

Post by Longjun Xiang » Sun Jan 12, 2020 9:30 am

Dear developers:

I try to run the gw_si.py in your yambopy tutorial. But I get the following error messages. Is the yamopy module ready?

#####################################
nscf calculation found!
Traceback (most recent call last):
File "gw_si.py", line 33, in <module>
y = YamboIn('%s -p p -g n -V all'%yambo,folder='gw')
TypeError: __init__() got an unexpected keyword argument 'folder'
#####################################
Dr. Longjun Xiang
School of Physical Science and Technology, ShanghaiTech University, China

User avatar
amolina
Posts: 135
Joined: Fri Jul 15, 2011 11:23 am
Location: Valencia, Spain
Contact:

Re: unexpected keyword argument in YamboIn

Post by amolina » Sun Jan 12, 2020 4:21 pm

Dear Longjun,
we are going to publish an upgraded version of yambopy soon.
The new version will be hosted in the yambo git repository: https://github.com/yambo-code
In this particular case, your script should work if you replace the old command by this one:
y = YamboIn.from_runlevel('%s -p p -g n'%yambo,folder='gw_calc')

Cheers,
Alejandro.
Alejandro Molina-Sánchez
Institute of Materials Science (ICMUV)
University of Valencia, Spain

Longjun Xiang
Posts: 34
Joined: Tue May 07, 2019 9:53 am

Re: unexpected keyword argument in YamboIn

Post by Longjun Xiang » Mon Jan 13, 2020 1:51 am

OK, I am expecting the new version. Thanks.
Dr. Longjun Xiang
School of Physical Science and Technology, ShanghaiTech University, China

User avatar
amolina
Posts: 135
Joined: Fri Jul 15, 2011 11:23 am
Location: Valencia, Spain
Contact:

Re: unexpected keyword argument in YamboIn

Post by amolina » Mon Feb 03, 2020 11:24 pm

Dear Longjun,

you can download the new version of yambopy here:

https://github.com/yambo-code/yambopy.git

Cheers,
Alejandro.
Alejandro Molina-Sánchez
Institute of Materials Science (ICMUV)
University of Valencia, Spain

Post Reply