📣 An issue occured with the embedded container registry on October 25 2021, between 10:30 and 12:10 (UTC+2). Any persisting issues should be reported to CC-IN2P3 Support. 🐛

Commit 8d7c3cb7 authored by Maude Le Jeune's avatar Maude Le Jeune
Browse files

No commit message

No commit message
parent fd22725d
......@@ -107,7 +107,7 @@ def wg2bin (lstart, lstop, mind=1):
wg2_lmin = 0
wg2_lmax = 4000
wg2_ltrans = array([wg2_lmin,10,30,150,420,1200,2500,4000])
wg2_deltal = array([1,2,5,10,20,50,100])
wg2_deltal = array([1,2,5,10,20,30,40])
wg2_deltal[wg2_deltal<mind] = mind
## cut ltrans between lmin and lmax
......
......@@ -179,12 +179,9 @@ def read_col (filename, col=1):
"""
hdulist = pyfits.open(filename)
ncols = 1
nrows = shape(hdulist[1].data.field(0))[0]
mat = zeros((nrows, ncols))
mat[:,0] = hdulist[1].data.field(col-1)
mat = hdulist[1].data.field(col-1)
hdulist.close()
mat = squeeze(mat.reshape(size(mat), 1))
return mat
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment