Skip to content
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

Add a Fxuv function using mors tracks #7

Merged
merged 3 commits into from
Oct 18, 2024
Merged

Conversation

EmmaPostolec
Copy link
Collaborator

In addition to the stellar files I added for the last pull request, I created a Fxuv_mors function. This function takes the stellar mass, the stellar rotation rate and the distance to the host star as arguments. It uses mors.Star() to load the evolution track of the star and return 2 arrays : the age of the star and the corresponding XUV flux. I wrote a small python script (test_fxuv_mors.py) to be sure it was working correctly.

@EmmaPostolec EmmaPostolec self-assigned this Oct 17, 2024
@EmmaPostolec EmmaPostolec marked this pull request as ready for review October 17, 2024 14:23
Copy link
Member

@lsoucasse lsoucasse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new function returns a vector while other Fxuv functions return a scalar. But it makes sense given the significant time to generate the whole track.

Looks good!

@EmmaPostolec
Copy link
Collaborator Author

Thanks for pointing this out, @lsoucasse . Do you think I should change the output to a scalar like the other functions, or leave it like that? Let me know what you think is the better option.

@lsoucasse
Copy link
Member

Thanks for pointing this out, @lsoucasse . Do you think I should change the output to a scalar like the other functions, or leave it like that? Let me know what you think is the better option.

No I think it is OK as it is. Again, it is convenient to compute all the values, because of the cost of the track generation. Just something to keep in mind.

@EmmaPostolec
Copy link
Collaborator Author

Ok thanks for the advice @lsoucasse !

@EmmaPostolec EmmaPostolec merged commit a6c2c32 into main Oct 18, 2024
6 checks passed
@EmmaPostolec EmmaPostolec deleted the new_fxuv_w_mors branch October 18, 2024 11:52
@EmmaPostolec EmmaPostolec restored the new_fxuv_w_mors branch October 18, 2024 11:59
@EmmaPostolec EmmaPostolec deleted the new_fxuv_w_mors branch October 18, 2024 12:05
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.

2 participants