Replies: 5 comments 2 replies
-
Hi, I just tried this and had no problem with the normalize function. Could you provide what version of Python/lightkurve/astropy/numpy you are using? import sys; print("Python", sys.version) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thanks for that great breakdown. I've turned this comment into an issue we can look into more. |
Beta Was this translation helpful? Give feedback.
-
Upgrading astropy to version 5.3 solved the issue for me. With version 5.3, it's able to take in the flux as a MaskedQuantity and normalize it as intended. SPOC and TESS-SPOC measurements still give flux values in MaskedQuantity as opposed to Quantity with other sources. Unsure if that's by design or not. |
Beta Was this translation helpful? Give feedback.
-
I'm dealing with the same error, but I can't upgrade the astropy version because a part of the code failed when using the latest version. I would like to know if there is any solution to the TypeError: 'MaskedQuantity' object with a scalar value is not iterable problem. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I was trying to run the following code when I got this error message. It used to run just fine a couple of days ago but now it's giving me problems. Here's the relevant part of the code:
Normalize does not seem to be working like it used to. I also tried with flatten and it gave me the same issue.
The error message is very long, but at the end it says:
TypeError: 'MaskedQuantity' object with a scalar value is not iterable
This used to work not even a week ago so I am quite perplexed that it doesn't anymore. Has anyone ran into a similar issue recently? Does anyone know how to fix this? Am I missing something?
Thank you for your time.
Beta Was this translation helpful? Give feedback.
All reactions