Skip to content

Commit

Permalink
Bug fixing CDFS-SWIRE
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelshirley committed Jan 25, 2018
1 parent 8cfa912 commit fe01a60
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 117 deletions.
39 changes: 11 additions & 28 deletions dmu1/dmu1_ml_CDFS-SWIRE/1.2_SERVS.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand All @@ -48,9 +46,7 @@
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
Expand Down Expand Up @@ -134,9 +130,7 @@
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"name": "stderr",
Expand All @@ -161,17 +155,16 @@
" catalogue.add_column(Column(error, name=\"m{}\".format(errcol[1:])))\n",
" \n",
" # Band-flag column\n",
" catalogue.add_column(Column(np.zeros(len(catalogue), dtype=bool), name=\"flag{}\".format(col[1:])))\n",
" if \"ap\" not in col:\n",
" catalogue.add_column(Column(np.zeros(len(catalogue), dtype=bool), name=\"flag{}\".format(col[1:])))\n",
" \n",
"# TODO: Set to True the flag columns for fluxes that should not be used for SED fitting."
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -240,9 +233,7 @@
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"name": "stderr",
Expand Down Expand Up @@ -302,9 +293,7 @@
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -335,9 +324,7 @@
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -373,9 +360,7 @@
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -426,9 +411,7 @@
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand Down
39 changes: 11 additions & 28 deletions dmu1/dmu1_ml_CDFS-SWIRE/1.3_SWIRE.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand All @@ -51,9 +49,7 @@
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
Expand Down Expand Up @@ -148,9 +144,7 @@
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"# Adding magnitude and band-flag columns\n",
Expand All @@ -166,7 +160,8 @@
" catalogue.add_column(Column(error, name=\"m{}\".format(errcol[1:])))\n",
" \n",
" # Band-flag column\n",
" catalogue.add_column(Column(\n",
" if \"ap\" not in col:\n",
" catalogue.add_column(Column(\n",
" np.zeros(len(catalogue), dtype=bool), name=\"flag{}\".format(col[1:])))\n",
" \n",
"# TODO: Set to True the flag columns for fluxes that should not be used for SED fitting."
Expand All @@ -175,9 +170,7 @@
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -246,9 +239,7 @@
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"name": "stderr",
Expand Down Expand Up @@ -309,9 +300,7 @@
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -342,9 +331,7 @@
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -380,9 +367,7 @@
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -433,9 +418,7 @@
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand Down
Loading

0 comments on commit fe01a60

Please sign in to comment.