Skip to content
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

Lazy loading euphonic #106

Merged
merged 8 commits into from
Dec 4, 2024

Conversation

mikibonacci
Copy link
Owner

@mikibonacci mikibonacci commented Dec 3, 2024

Hi @AndresOrtegaGuerrero , this PR is to add the euphonic lazy loaded results.
For now I think we can merge into your branch, and then proceed from there.

Missing parts are:

  • download of results
  • testing
  • additional factorization of the code
  • documentation on how the euphonic part is structured

all these missing things can be pushed into your branch as soon as I have done them.

mikibonacci and others added 8 commits December 2, 2024 18:56
missing: download of the data, proper testing,
detached app.
The problem was that the default value of a tl.List(tl.Float())
is tl.Undefined. Now we explicitely reset the default value
of Q0_vec, h_vec and k_vec
For now, I added it at the end of the main EuphonicBaseResultsWidget.
It will only allow to download phonopy.yaml and fc.hdf5. The plots can be downloaded in the corresponding tabs.

I added a method to the model which produce the downloadable files, and left the actual
_download_data method in the widget. I think this is a proper design as the model manipulates data,
the view can provide them.

Still missing the download of single tabs, for now it does not work
Copy link
Collaborator

@AndresOrtegaGuerrero AndresOrtegaGuerrero left a comment

Choose a reason for hiding this comment

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

LGTM

@AndresOrtegaGuerrero AndresOrtegaGuerrero merged commit 4a7a378 into lazy_loading_compatible Dec 4, 2024
2 checks passed
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.

2 participants