-
Notifications
You must be signed in to change notification settings - Fork 18
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
♻️ Refactor DatasetModel to use properties #828
Comments
Would you mind if I worked on this one? |
@fidelak Sorry, I just talked to @joernweissenborn and this issue is quite tricky since it requires to interact with our runtime "decorator magic" (code that writes code). |
@s-weigand I assume you're talking about the follow up in #815? I will give it a shot |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been closed due to lack of recent activity. Please open a new issue if you're still encountering this problem. Thanks for your contributions! |
Version information
Describe the refactoring
Currently
DatasetModel
uses a lot ofget_
andset_
methodspyglotaran/glotaran/model/dataset_model.py
Lines 157 to 163 in 2f1afe7
The same functionality could be achieved using properties and setter.
Using
get_
andset_
is c++ like from the 90's, we have nice syntax sugar let's use it.Additional context
Besides refactoring of
glotaran/model/dataset_model.py
this will need additional changes to the tests and where it is used.The text was updated successfully, but these errors were encountered: