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
Adding project.maintenance #396
Conversation
Is not it sufficient to import directly? like:
I do not see why the database statistics are related to a specific project. |
I agree! But Jörg required it yesterday in the technical meeting. I believe, he had the idea that the maintenance class can be extended to include more performance measures later on. |
But then at least keep the same function name, rather than making it a property:
|
Co-authored-by: Niklas Siemer <70580458+niklassiemer@users.noreply.github.com>
Yes, I raised the same argument that the database statistics is not related to a specific project. However, he really wants to be able to do everything with one import statement
Therefore, also #385. |
Now, it is implemented as you suggested. |
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. |
including pr.maintenance.global_status.get_database_statisitics()
Co-authored-by: Niklas Siemer <70580458+niklassiemer@users.noreply.github.com>
@niklassiemer, the reason that I chose |
Sure, I never used the |
@niklassiemer, if you agree, we can merge this. |
Introduces
Maintenance
class, which returnsget_database_statistics
as an attribute of a pyiron project. Of course, the maintenance class can be further extended to include other performance measures, like disk spaces, available memory, etc.The use case is:
this returns a dataframe including measure about postgres database statistics.