Skip to content

Conversation

@taylorbell57
Copy link
Contributor

This PR fixes several bugs with the JAX version of fleck as well as one bug with the non-JAX version of fleck. This also resolves #23 and resolves #24

For both versions of fleck, this PR makes sure that the transit chord always falls below the stellar equator. This was previously assumed during plotting, but when computing spot occultations sometimes the transit chord would lie above the equator and there would be no spot occultation even though the plot made it look like there should be. I also fixed a bug in the computation of the apparent position of the planet for eccentric orbits. I also added the argument of periastron to plot_star which had mistakenly always assumed omega was pi/2.

I added contrast as an argument to the init function and properly use the contrast argument to the add_spot function. The code can now handle spot temperatures, spot spectra, or spot contrasts and nicely meshes the different options. I also simplified the transit_model function to use the pre-computed spot contrasts rather than always computing them on the fly. I also tweaked the plot_star function to handle cases where no temperatures were provided and only contrasts were used.

I also switched from using the spot colatitudes (on 0 to pi) to spot latitudes (on -pi/2 to pi/2) to keep things consistent with the non-JAX version of fleck.

I also tidied up some of the documentation and comments and formatting while I was at it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inability to set contrast parameter for fleck.jax.ActiveStar Error in temp_cmap calculation when plotting the star

1 participant