Skip to content

Commit

Permalink
Bug fix on HDF-N
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelshirley committed Feb 8, 2018
1 parent 85f2b50 commit 3b7e9cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dmu1/dmu1_ml_HDF-N/1.4_Ultradeep-Ks-GOODS-N.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"%matplotlib inline\n",
Expand Down Expand Up @@ -140,7 +142,7 @@
" catalogue[errcol][np.isclose(catalogue[errcol], 0.0)] = np.nan\n",
" \n",
" #Calculate mags, errors \n",
" mag, error = flux_to_mag(np.array(catalogue[col]), np.array(catalogue[errcol] ))\n",
" mag, error = flux_to_mag(np.array(catalogue[col])*1.e-6, np.array(catalogue[errcol] )*1.e-6)\n",
" \n",
" # magnitudes are added\n",
" catalogue.add_column(Column(mag, name=\"m{}\".format(col[1:])))\n",
Expand Down

0 comments on commit 3b7e9cc

Please sign in to comment.