Closed Shailen9901 closed 4 months ago
This error is happening because it's not possible to use numpy functions on Theano tensor objects. In this case, you should be able to add the following import:
import theano.tensor as tt
then update the line with the error to:
- flux_model = flux_model/np.mean(flux_model)
+ flux_model = flux_model/tt.mean(flux_model)
Thank you so much!!! The code is now producing spots that fit the new flux models (demeaned relative flux) to my data.
I am currently trying to model a spot to some data that I have. However, the data is demeaned relative flux:
demeaned relative flux = (relative flux / mean relative flux)
So my data has a mean of 1 with the other values representing the fractional difference from this mean.
When using map.flux(), 1 is normalized so that it is the unspotted star, so currently the plots using map.flux() look like this:
But by dividing by the map.flux() by its mean I can get the plot to be the same as my data:
However when trying to apply this to define the spot model I get an error.
Is there a way to change the flux model so that it is a plot around 1 as the mean (demeaned)?