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

Improvements to He approximation. #414

Merged

Conversation

aoifeboyle
Copy link
Contributor

Much more efficient I think.

@aoifeboyle
Copy link
Contributor Author

@wkerzendorf Merge if happy.

return level_boltzmann_factor.ix[2].ix[0].mul(
pd.DataFrame(phis.ix[2].ix[1].values)[0].transpose())
g.ix[2].ix[0], axis=0) * (1./(2*g.ix[2].ix[1].ix[0])) * \
Copy link
Member

Choose a reason for hiding this comment

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

you are not using the multiindex -> .ix[2, 0] for example.

@aoifeboyle
Copy link
Contributor Author

@wkerzendorf Better? :)

@wkerzendorf
Copy link
Member

Looks good. I guess tests already exist. I think this is mostly in your area of expertise, so merge when you think it's ready.

@aoifeboyle
Copy link
Contributor Author

Yeah it still passes the appropriate module test.

aoifeboyle pushed a commit that referenced this pull request Sep 28, 2015
@aoifeboyle aoifeboyle merged commit f4ade82 into tardis-sn:master Sep 28, 2015
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