Skip to content

Commit

Permalink
changed filter docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlouden committed Oct 23, 2017
1 parent 032af91 commit 7577cd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spiderman/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
def get_filter(response):
filter_wvls = []
filter_responses = []
hc = 1.98644582e-25
for line in open(response,'r'):
l = line.strip('\n').split(' ')
wvl = float(l[0])
filter_wvls += [wvl]
# dividing by the factor of wvl makes the response proportional
# to units of energy density instead of photon number
filter_responses += [float(l[1]) / wvl]
filter_responses += [hc*float(l[1]) / wvl]
filter_wvls = np.array(filter_wvls)
filter_responses = np.array(filter_responses)
filter = [filter_wvls,filter_responses]
Expand Down

0 comments on commit 7577cd0

Please sign in to comment.