Skip to content

Add get_data_limits method to Artist class #29000

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

Closed
wants to merge 1 commit into from
Closed

Add get_data_limits method to Artist class #29000

wants to merge 1 commit into from

Conversation

gabisoaresm
Copy link

PR summary

This pull request introduces the get_data_limits method to the Artist class. This method serves as a placeholder for subclasses to override and implement their own logic to calculate data limits. This change helps centralize the logic of calculating data limits in the Artist class, simplifying future extensions and customizations for different plot elements. The subclasses still need to be modified to fully benefit from this centralization.

Closes #28816.

PR checklist

Copy link
Member

@rcomer rcomer 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 for your contribution @gabisoaresm. However, to close the linked issue we need a comprehensive change that implements the overrides you mention in the child classes, and also makes use of them.

Please also note that docstrings should be written in English.

Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

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

@gabisoaresm thanks for you willingness to contribute. Though I have to say this is far from adequate. Only writing a placeholder is maybe 1% of the task and has no value by it's own. A PR addressing #28816 must also do the refactoring. Otherwise, we don't know whether it's feasible or the API is appropriate. Please also note that all docstrings are English.

@rcomer
Copy link
Member

rcomer commented Nov 17, 2024

I'm going to close this one because the solution does not look likely to be completed here. I will be very happy to be proved wrong and we can re-open at any time.

@rcomer rcomer closed this Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for author
Development

Successfully merging this pull request may close these issues.

[MNT]: Refactor data limit handling
4 participants