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

Fix #1302 #1306

Merged
merged 1 commit into from
Jul 25, 2024
Merged

Fix #1302 #1306

merged 1 commit into from
Jul 25, 2024

Conversation

rmjarvis
Copy link
Member

Fix an error found by @FedericoBerlfein that amounted to GSObjects missing a method needed to properly duck type as ChromaticObjects in some cases.

Specifically, if an inseparable chromatic object is convolved with a GSObject (in Federico's case, a Pixel), then a bit of code tries to call _fiducial_profile on the separable components, which didn't work, since GSObject didn't have this method. The fix is simply to add a trivial version of that method so the GSObject duck types properly in this context.

@rmjarvis rmjarvis added bug report Bug report chromatic Related to the Chromatic classes, SEDs, bandpasses, etc. labels Jul 24, 2024
@rmjarvis rmjarvis added this to the v2.6 milestone Jul 24, 2024
Copy link
Member

@jmeyers314 jmeyers314 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@rmandelb rmandelb left a comment

Choose a reason for hiding this comment

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

It's amazing the difference one line makes.

@rmjarvis rmjarvis merged commit b437a40 into main Jul 25, 2024
10 checks passed
@rmjarvis rmjarvis deleted the #1302 branch July 25, 2024 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Bug report chromatic Related to the Chromatic classes, SEDs, bandpasses, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants