-
Notifications
You must be signed in to change notification settings - Fork 158
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
ValueError: unmergeable object classes #954
Comments
Hi there! 👋 Thank you for opening your first Lightkurve issue! 🙏 One of our maintainers will get back to you as soon as possible. 👩🚀 You can expect a response within 7 days. 📅 If you haven’t heard anything by then, feel free to ping this thread. 🛎️ We love that you are using Lightkurve and appreciate your feedback. 👍 |
@aguzmanmesa Thank you for taking the time to open this issue! 🙏 I am able to reproduce this error. It looks like a real bug we should fix. Note: the two light curves you are trying to stitch together are both TESS Sector 9 light curves of the same object. It doesn't make a lot of sense to stitch these together because you'd end up combining duplicate flux measurements into one light curve: |
It looks like this error is caused by the fact that we introduced a special I do not see a simple fix. Once AstroPy v4.3 is released in a few months, the need for the |
I hit this issue too. Would perhaps be nice to get a more descriptive error, but I don't know much about what's happening in the background! |
Thank you for raising this issue @aguzmanmesa & @dfm! In the example above, the underlying cause was that a SPOC and a QLP light curve were being stitched together. The SAP_FLUX column in the former has units electron/second, whereas the latter is unitless/normalized. I changed the behavior in #996 to exclude such incompatible columns from being stitched together, as opposed to having them raise the I suspect more problems related to stitching together light curves from different pipelines are hiding out there. In general, it is probably best to limit the use of |
The fix for this has been merged and will be part of v2.0.5, expected some time next week. Thanks again! 🙏 |
Problem description
Hi!
I'm new to lightkurve. I was running this piece of code (below) and I haven't been able to work out the ValueError. I can't find similar errors within the documentation either. Any suggestions? Thank you in advance.
Example
Environment
The text was updated successfully, but these errors were encountered: