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

Refactoring Euphonic MVC. #108

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Refactoring Euphonic MVC. #108

wants to merge 8 commits into from

Conversation

mikibonacci
Copy link
Owner

@mikibonacci mikibonacci commented Dec 8, 2024

This fixes #107

Unification of plot and settings widgets, as well as polymorphism instead of inheritance and composition. This will help maintaining the code clear and readable.

This is still a draft PR. I started doing the unification in the euphonicmodel.py and in the structurefactorwidget.py - but the files, imports and everything need to be fixed

TODO:

  • structurefactorwidget.py
  • euphonicmodel.py
  • euphonicwidget.py (the widget to display the three tabs)
  • upload and download of phonopy.yaml and hdf5
  • download of data and plots
  • fixing qplanes plots
  • organization of the view, layout
  • final refactor if needed
  • final cleanup

mikibonacci and others added 8 commits December 8, 2024 22:16
unification of plot and settings widgets, as well as polymorphism instead of inheritance
and composition. This will help maintaining the code clear and readable.

This is still a draft commit, let's say. I started doing the unification in the euphonicmodel.py
and in the structurefactorwidget.py - but the files, imports and everything need to be fixed
Putting init in the model, to inject correct traits.
Missing several things:

- energy units conversion
- qplanes
- downloads.
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.

refactoring of euphonic widgets and model
1 participant