Skip to content

Conversation

@fred3m
Copy link
Contributor

@fred3m fred3m commented Oct 28, 2025

No description provided.

@fred3m fred3m changed the title DM-52899: Add errors to be imported with __all__ DM-52921: Add errors to be imported with __all__ Oct 28, 2025
@property
def metadata(self):
for key, value in self._metadata.items():
if not (isinstance(value, int) or isinstance(value, float) or isinstance(value, str)):
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this not equivalent to:

if not isinstance(value, (int, float, str)):

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, yes it is. I literally just copied this whole class from https://github.com/lsst/meas_algorithms/blob/main/python/lsst/meas/algorithms/scaleVariance.py#L32-L59 and didn't even think about that.

Copy link
Contributor

@leeskelvin leeskelvin left a comment

Choose a reason for hiding this comment

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

Thanks, just one tidy-up suggestion, but otherwise LGTM.

@fred3m fred3m merged commit db1e2cd into main Oct 29, 2025
4 of 5 checks passed
@fred3m fred3m deleted the tickets/DM-52921 branch October 29, 2025 20:05
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.

3 participants