-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
Rebase PR #678 #724
Conversation
There was a problem hiding this 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.
tardis/montecarlo/montecarlo.pyx
Outdated
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed?
You found the one line that I failed to clean up, good job!
Ulrich Noebauer <notifications@github.com> schrieb am Mi., 17. Mai 2017 um
14:40 Uhr:
… ***@***.**** commented on this pull request.
Looks good overall, apart from my question about the import.
------------------------------
In tardis/montecarlo/montecarlo.pyx
<#724 (comment)>:
> @@ -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
Is this needed?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#724 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF4OjqsvFTrQg82LeoqBhAisulhexQe-ks5r6uq-gaJpZM4Ndx4U>
.
|
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.
There was a problem hiding this 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.
tardis/simulation/base.py
Outdated
""" | ||
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, |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pep8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really ;)?
There was a problem hiding this comment.
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.
@yeganer sounds good. merging |
This is a rebase onto the current master of #678.