-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tutorial for using the effective mass calculator utility #34
Comments
Hi @josue-clavijo , Regarding your question, I realized I forgot to update the README documentation. Thanks for pointing that out. The Could you please try the following?
Also, for complete documentation, you can use Python's helper function instead: Thanks for your understanding, and feel free to reach out if you have further questions! Best regards, |
Badal, thank you for all of your kind assistance. The updated code now works like a charm. I'll test it against some reports on effective masses for hybrid perovskites. Again, thank you very much. |
Hi everyone. First, thanks to Stepan and to Badal for all your kind answers.
I'd like to ask for assistance to get working the effective mass calculator utility. The issue is that when I use the code
Where kpath and band_energy arrays (see below) were constructed from both kpoints_unfolded.dat and bandstructure_unfolded.dat files, for the top valence band containing the valence band maximum eigenvalue. In the kpath array, 1.47478091 corresponds to gamma point on BZ (k in A^-1 units), and the 0.09504498 energy It's the valence maxima eigenvalue at this gamma point:
But when i run the code, i consistently get the following error:
ValueError Traceback (most recent call last)
Cell In[36], line 31
28 UpwardHyp=False
29 DownwardHyp=False
---> 31 m_star, optimized_parameters, convergence_measure =
32 unfolded_band_properties.calculate_effecfive_mass(kpath, band_energy,
33 initial_guess_params=None,
34 params_bounds = (-np.inf, np.inf),
35 fit_weights=None, absolute_weights=False,
36 parabolic_dispersion=True,
37 hyperbolic_dispersion_positive=False,
38 hyperbolic_dispersion_negative=False,
39 params_name = ['alpha', 'kshift', 'cbm', 'gamma'])
41 band_energy_fit = unfolded_band_properties.fit_functions(kpath, optimized_parameters,
42 parabolic_dispersion=Parabolic,
43 hyperbolic_dispersion_positive=UpwardHyp,
44 hyperbolic_dispersion_negative=DownwardHyp)
ValueError: too many values to unpack (expected 3)
I don't know what am I missing or what am I doing wrong. Thanks in advance for all your corrections ands suggestions, since I'm not a hard coder, I'm a experimentalist exploring with the Banduppy code.
Best regards,
Josue
The text was updated successfully, but these errors were encountered: