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

Rebase PR #678 #724

Merged
merged 3 commits into from
May 19, 2017
Merged

Rebase PR #678 #724

merged 3 commits into from
May 19, 2017

Conversation

yeganer
Copy link
Contributor

@yeganer yeganer commented May 17, 2017

This is a rebase onto the current master of #678.

Copy link
Contributor

@unoebauer unoebauer left a comment

Choose a reason for hiding this comment

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

Looks good overall, apart from my question about the import.

@@ -11,12 +11,14 @@ from numpy cimport PyArray_DATA
from astropy import constants
from astropy import units
from libc.stdlib cimport free
from tardis.util import intensity_black_body
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this needed?

@yeganer
Copy link
Contributor Author

yeganer commented May 17, 2017 via email

Tomas Bylund added 2 commits May 17, 2017 14:52
Agregate all the changes needed to calculate the source function for
implementing the formal integral by Lucy 1999. The changes were
implemented as part of the 'Summer of Code in Space' project.
This implements a cleaned up version of the formal source function
integration originally written by Tobychev.
This version doesn't run by default and must be called manually.
A configuration option is expected to be added later.
@unoebauer unoebauer requested a review from talytha May 19, 2017 09:27
Copy link

@talytha talytha left a comment

Choose a reason for hiding this comment

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

It looks fine for me.

"""
Calculates the source function using the line absorption rate estimator `Edotlu_estimator`

Formally it calculates the expresion ( 1 - exp(-tau_ul) ) S_ul but this product is what we need later,
Copy link

Choose a reason for hiding this comment

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

"expresion" -> "expression"

r_shells[1:,0],r_shells[0,0] = self.runner.r_inner_cgs[::-1] / R_max, 1.0
z_crossings = np.sqrt(r_shells**2 - ps**2)

z_ct = z_crossings/ct
Copy link
Member

Choose a reason for hiding this comment

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

pep8

Copy link
Contributor

Choose a reason for hiding this comment

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

Really ;)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can fix all PEP8 violations introduced by this PR or I could work on the proper version which removes 80% of the code introduced by this PR anyway.

I'm perfectly fine fixing PEP8 but I don't think we gain much for the time this takes.

@wkerzendorf
Copy link
Member

@yeganer sounds good. merging

@wkerzendorf wkerzendorf merged commit d86187c into tardis-sn:master May 19, 2017
@yeganer yeganer mentioned this pull request May 22, 2017
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants