-
Notifications
You must be signed in to change notification settings - Fork 3
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
Pull Request / Code review #3
base: master
Are you sure you want to change the base?
Conversation
@@ -1,182 +1,221 @@ | |||
|
|||
# Jean-paul Ventura | |||
# January 12, 2017 | |||
# Modified: February 20th, 2016 |
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's not clear what the significance of these dates are and I'm not sure that you need them because GitHub tracks when you change things.
This function measures the equivalent width of spectral emission/absorption features. | ||
|
||
==================== | ||
Function parameters: |
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 there a reason this is "Function parameters" and not "Arguments"?
|
||
wavelength2 - wavelength value where continuum region to the left of the spectral feature ends. | ||
# Define wavelength and flux arrays by accessing .fits sloan data |
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.
Does this code only work for sloan data? If so, include that in the description of the function in your docstring/readme
fitl = np.array(m*lmbda + c) | ||
|
||
# Normalize the flux array by dividing it by the fitline. | ||
nflux = flux/fitline |
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.
Where is the variable "fitline" defined?
# Sum continuosly over the normalized flux array and assign result to a variable. | ||
eqwi = sum(1-nflux[ewindx])*dlmbda | ||
|
||
# Calculate the uncertainty in the equivalent with measurement |
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.
width*
|
||
""" | ||
# assign the number of monte carlo iterations to variable 'size'. | ||
size = 3000 |
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.
"iter" might be a better variable name than "size"
#Calculate line height of spectral emission feature | ||
def line_height(filename,wavelength1,wavelength2,wavelength3,wavelength4): | ||
""" | ||
Tnis function calculates the emission line feature height as the vertical-distance between the |
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.
This*
# Isolate the wavelength subarrays pertaining to both of the wings of the line feature | ||
x1 = lmbda[coindx] | ||
|
||
#Isolate the normalized flux subarrays of the line features wings. |
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.
feature's*
I can't find Victoria to initialize the code review... Only options listed are Kelle Cruz and Eileen Gonzalez.