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

DM-48649: Expose ImageScaler's scale #1039

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

arunkannawadi
Copy link
Member

No description provided.

def scale(self) -> float:
"""Scale that it applies to a specified image."""
return self._scale

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure if there's any utility in keeping an instance's scale unmodified once created.

Copy link
Member

Choose a reason for hiding this comment

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

When in doubt, less mutability tends to be better.

def scale(self) -> float:
"""Scale that it applies to a specified image."""
return self._scale

Copy link
Member

Choose a reason for hiding this comment

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

When in doubt, less mutability tends to be better.

@TallJimbo TallJimbo changed the title DM-48649: Exposure ImageScaler's scale DM-48649: Expose ImageScaler's scale Feb 19, 2025
@arunkannawadi
Copy link
Member Author

The scale property won't work on SpatialImageScaler unless we redefine it appropriately. This needs a bit more work.

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