Skip to content

Commit

Permalink
big fix missing column
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelshirley committed Jan 10, 2018
1 parent 6e102f7 commit 47635e3
Showing 1 changed file with 81 additions and 28 deletions.
109 changes: 81 additions & 28 deletions dmu1/dmu1_ml_XMM-LSS/2.6_Merging_low_memory.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"from herschelhelp_internal import git_version\n",
Expand All @@ -22,7 +24,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"%matplotlib inline\n",
Expand Down Expand Up @@ -273,7 +277,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"nb_merge_dist_plot(\n",
Expand Down Expand Up @@ -304,7 +310,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"nb_merge_dist_plot(\n",
Expand Down Expand Up @@ -334,7 +342,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Given the graph above, we use 0.8 arc-second radius\n",
Expand All @@ -351,7 +361,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"nb_merge_dist_plot(\n",
Expand All @@ -363,7 +375,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Given the graph above, we use 0.8 arc-second radius\n",
Expand All @@ -384,7 +398,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"nb_merge_dist_plot(\n",
Expand All @@ -396,7 +412,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Given the graph above, we use 0.8 arc-second radius\n",
Expand All @@ -413,7 +431,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"nb_merge_dist_plot(\n",
Expand Down Expand Up @@ -444,7 +464,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"nb_merge_dist_plot(\n",
Expand Down Expand Up @@ -474,7 +496,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Given the graph above, we use 0.8 arc-second radius\n",
Expand All @@ -491,7 +515,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"nb_merge_dist_plot(\n",
Expand All @@ -503,7 +529,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Given the graph above, we use 0.8 arc-second radius\n",
Expand All @@ -520,7 +548,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"nb_merge_dist_plot(\n",
Expand All @@ -532,7 +562,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Given the graph above, we use 0.8 arc-second radius\n",
Expand All @@ -549,7 +581,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"nb_merge_dist_plot(\n",
Expand All @@ -561,7 +595,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Given the graph above, we use 0.8 arc-second radius\n",
Expand All @@ -578,7 +614,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"nb_merge_dist_plot(\n",
Expand Down Expand Up @@ -611,7 +649,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"for col in master_catalogue.colnames:\n",
Expand All @@ -630,7 +670,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"master_catalogue[:10].show_in_notebook()"
Expand Down Expand Up @@ -689,7 +731,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Check that the HELP Ids are unique\n",
Expand Down Expand Up @@ -720,7 +764,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"nb_merge_dist_plot(\n",
Expand Down Expand Up @@ -907,7 +953,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"#\n",
Expand Down Expand Up @@ -943,7 +991,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"id_names = []\n",
Expand Down Expand Up @@ -1025,7 +1075,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# We check for columns in the master catalogue that we will not save to disk.\n",
Expand Down Expand Up @@ -1054,7 +1106,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"split_length = 100000 #number of sources to include in every sub catalogue\n",
Expand Down Expand Up @@ -1299,7 +1353,6 @@
" 1 * ~np.isnan(sub_catalogue['f_ukidss_h']) +\n",
" 1 * ~np.isnan(sub_catalogue['f_ukidss_k']) +\n",
" # VISTA\n",
" 1 * ~np.isnan(sub_catalogue['f_vista_z']) +\n",
" 1 * ~np.isnan(sub_catalogue['f_vista_y']) +\n",
" 1 * ~np.isnan(sub_catalogue['f_vista_j']) +\n",
" 1 * ~np.isnan(sub_catalogue['f_vista_h']) +\n",
Expand Down

0 comments on commit 47635e3

Please sign in to comment.