TypeError: Cannot cast ufunc multi output from dtype('float64') to dtype('uint16') with casting rule 'same_kind' error(Crying)

Asked 2 years ago, Updated 2 years ago, 125 views

I posted a question earlier, but as soon as I solved that error, I encountered a new error... Like this, it's a code that combines three RGB images to make one image, but does anyone know what the problem is and how to solve it? Please!

python typeerror

2022-09-22 15:17

1 Answers

I can't really see the error message and the code. If possible, please post a question in text format. If you insert three backsticks (`````) one line before and after the code, the code block will look clean.

The error message seems to come from the code for multiplying the number-fi array because the dtype of the number-fi array is float and the other is integer.

It seems to be an error occurring in the internal code of the package, so why don't you put it on the package GitHub (https://github.com/astropy/astropy ) as an issue?

Or you can find the problem by putting a debug message to check the dtype right in front of the code where the error occurs directly. I'd try it if I had time.


2022-09-22 15:17

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.