Skip to content

Cumulant spectral#83

Merged
hurricane642 merged 10 commits intomainfrom
cumulant-spectral
Dec 12, 2024
Merged

Cumulant spectral#83
hurricane642 merged 10 commits intomainfrom
cumulant-spectral

Conversation

@yaoluo
Copy link
Copy Markdown
Contributor

@yaoluo yaoluo commented Dec 9, 2024

All the comments from last PR are fixed. Thank you, Ivan!

Copy link
Copy Markdown
Member

@imaliyov imaliyov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, Yao, this is a lot better!

Next time, please do not close the initial pull request, but continue commiting there. In this case, it will be easier to track changes.

Unless you had to change a lot...

Please add just one test that I specified in the file and we'll be good to go!

Comment thread tests/test_spectral_cum.py
Copy link
Copy Markdown
Collaborator

@hurricane642 hurricane642 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, thank you!
My comments mainly on the documentation of the functions

Comment thread src/perturbopy/postproc/calc_modes/calc_mode.py
Comment thread src/perturbopy/postproc/calc_modes/spectral_cumulant.py Outdated
temp_array : numpy.ndarray
Array of temperatures corresponding to the spectral data.
freq_array : numpy.ndarray
Array of energy values (ω) in electron volts (eV).
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about usage of ω in the code - could be issues with this kind of symbols

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, @yaoluo @imaliyov , what do you think on this?

Comment thread src/perturbopy/postproc/calc_modes/spectral_cumulant.py Outdated

Parameters
----------
plt_loc : matplotlib.pyplot
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to pass the module to the function?

Comment thread src/perturbopy/postproc/calc_modes/spectral_cumulant.py

Parameters
----------
popu_path : str
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update documentation on this function

yaoluo and others added 2 commits December 10, 2024 12:42
Co-authored-by: Sergei Kliavinek <klyavinekss@gmail.com>
Co-authored-by: Sergei Kliavinek <klyavinekss@gmail.com>
Copy link
Copy Markdown
Collaborator

@hurricane642 hurricane642 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There still things to rework, I've opened issue back, see the comments earlier

Comment thread src/perturbopy/postproc/calc_modes/calc_mode.py
temp_array : numpy.ndarray
Array of temperatures corresponding to the spectral data.
freq_array : numpy.ndarray
Array of energy values (ω) in electron volts (eV).
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, @yaoluo @imaliyov , what do you think on this?

@yaoluo
Copy link
Copy Markdown
Contributor Author

yaoluo commented Dec 10, 2024

I've opened issue back, see the comments earlier

I click the resolve when I changed the code. Now it is updated.

Copy link
Copy Markdown
Collaborator

@hurricane642 hurricane642 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, LGTM! Thanks!

@hurricane642 hurricane642 merged commit a9fd28b into main Dec 12, 2024
@hurricane642 hurricane642 deleted the cumulant-spectral branch December 12, 2024 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants