Skip to content

Instantly share code, notes, and snippets.

@zonca
Created May 13, 2025 15:32
Show Gist options
  • Save zonca/0184ed7cfe15dcb3dd79bb15fb5d2281 to your computer and use it in GitHub Desktop.
Save zonca/0184ed7cfe15dcb3dd79bb15fb5d2281 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "0",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-09T20:13:54.098777Z",
"iopub.status.busy": "2025-05-09T20:13:54.098566Z",
"iopub.status.idle": "2025-05-09T20:13:54.956048Z",
"shell.execute_reply": "2025-05-09T20:13:54.955653Z"
},
"papermill": {
"duration": 0.86666,
"end_time": "2025-05-09T20:13:54.957209",
"exception": false,
"start_time": "2025-05-09T20:13:54.090549",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"import h5py\n",
"import numpy as np\n",
"import healpy as hp\n",
"import matplotlib.pyplot as plt"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "1",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-09T20:13:54.966406Z",
"iopub.status.busy": "2025-05-09T20:13:54.966130Z",
"iopub.status.idle": "2025-05-09T20:13:54.968505Z",
"shell.execute_reply": "2025-05-09T20:13:54.968180Z"
},
"papermill": {
"duration": 0.007639,
"end_time": "2025-05-09T20:13:54.969286",
"exception": false,
"start_time": "2025-05-09T20:13:54.961647",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"freqs = [\n",
" \"18.7\",\n",
" \"24.5\",\n",
" \"44.0\",\n",
" \"70.0\",\n",
" \"100.0\",\n",
" \"143.0\",\n",
" \"217.0\",\n",
" \"353.0\",\n",
" \"545.0\",\n",
" \"643.0\",\n",
" \"729.0\",\n",
" \"857.0\",\n",
" \"906.0\",\n",
"]"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "40",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-10T06:54:51.608747Z",
"iopub.status.busy": "2025-05-10T06:54:51.608436Z",
"iopub.status.idle": "2025-05-10T06:54:51.610505Z",
"shell.execute_reply": "2025-05-10T06:54:51.610173Z"
},
"papermill": {
"duration": 0.00921,
"end_time": "2025-05-10T06:54:51.611170",
"exception": false,
"start_time": "2025-05-10T06:54:51.601960",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"output_filename = \"data/websky_high_flux_catalog_1mJy.h5\""
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "41",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-10T06:54:51.623979Z",
"iopub.status.busy": "2025-05-10T06:54:51.623777Z",
"iopub.status.idle": "2025-05-10T06:54:51.826063Z",
"shell.execute_reply": "2025-05-10T06:54:51.825513Z"
},
"papermill": {
"duration": 0.209888,
"end_time": "2025-05-10T06:54:51.827142",
"exception": false,
"start_time": "2025-05-10T06:54:51.617254",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"-rw-rw-r-- 1 azonca azonca 38725282 May 12 22:41 data/websky_high_flux_catalog_1mJy.h5\n"
]
}
],
"source": [
"!ls -l $output_filename"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "45",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-10T06:54:52.072241Z",
"iopub.status.busy": "2025-05-10T06:54:52.071862Z",
"iopub.status.idle": "2025-05-10T06:54:52.266156Z",
"shell.execute_reply": "2025-05-10T06:54:52.265584Z"
},
"papermill": {
"duration": 0.202905,
"end_time": "2025-05-10T06:54:52.267250",
"exception": false,
"start_time": "2025-05-10T06:54:52.064345",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"-rw-rw-r-- 1 azonca azonca 37M May 12 22:41 data/websky_high_flux_catalog_1mJy.h5\n"
]
}
],
"source": [
"%ls -lah $output_filename"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "46",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-10T06:54:52.280706Z",
"iopub.status.busy": "2025-05-10T06:54:52.280448Z",
"iopub.status.idle": "2025-05-10T06:54:52.282876Z",
"shell.execute_reply": "2025-05-10T06:54:52.282534Z"
},
"papermill": {
"duration": 0.010053,
"end_time": "2025-05-10T06:54:52.283599",
"exception": false,
"start_time": "2025-05-10T06:54:52.273546",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"import xarray"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "47",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-10T06:54:52.297240Z",
"iopub.status.busy": "2025-05-10T06:54:52.296926Z",
"iopub.status.idle": "2025-05-10T06:54:52.355855Z",
"shell.execute_reply": "2025-05-10T06:54:52.355535Z"
},
"papermill": {
"duration": 0.067074,
"end_time": "2025-05-10T06:54:52.357351",
"exception": false,
"start_time": "2025-05-10T06:54:52.290277",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"new_catalog = xarray.open_dataset(output_filename)"
]
},
{
"cell_type": "code",
"execution_count": 16,
"id": "3905d3c1",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"html[data-theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 0 20px 0 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: inline-block;\n",
" opacity: 0;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:focus + label {\n",
" border: 2px solid var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: '►';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: '▼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt; Size: 39MB\n",
"Dimensions: (index: 372255, power: 5)\n",
"Coordinates:\n",
" * index (index) int64 3MB 27897657 242175600 ... 166742332\n",
" * power (power) int64 40B 4 3 2 1 0\n",
" theta (index) float64 3MB ...\n",
" phi (index) float64 3MB ...\n",
"Data variables:\n",
" logpolycoefflux (index, power) float64 15MB ...\n",
" logpolycoefpolflux (index, power) float64 15MB ...\n",
"Attributes:\n",
" description: Websky catalog of sources with flux &gt; 1 mJy at 100 GHz, fit...</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-dd6ead8b-f74e-4e4a-813c-c046fa825e88' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-dd6ead8b-f74e-4e4a-813c-c046fa825e88' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span class='xr-has-index'>index</span>: 372255</li><li><span class='xr-has-index'>power</span>: 5</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-22c795cc-cac2-4ee7-bb53-84dbb266ad11' class='xr-section-summary-in' type='checkbox' checked><label for='section-22c795cc-cac2-4ee7-bb53-84dbb266ad11' class='xr-section-summary' >Coordinates: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>index</span></div><div class='xr-var-dims'>(index)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>27897657 242175600 ... 166742332</div><input id='attrs-9c92fee2-8c92-43c7-ad26-2393f0276775' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-9c92fee2-8c92-43c7-ad26-2393f0276775' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-dabee5eb-8a9e-4164-8550-7bc59b10b72a' class='xr-var-data-in' type='checkbox'><label for='data-dabee5eb-8a9e-4164-8550-7bc59b10b72a' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([ 27897657, 242175600, 270516228, ..., 246732122, 263347056, 166742332])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>power</span></div><div class='xr-var-dims'>(power)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>4 3 2 1 0</div><input id='attrs-867bfddd-605c-4d89-baf1-68afcc98b951' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-867bfddd-605c-4d89-baf1-68afcc98b951' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-88c4602c-5a5c-44b2-a3f9-3671d49edea2' class='xr-var-data-in' type='checkbox'><label for='data-88c4602c-5a5c-44b2-a3f9-3671d49edea2' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([4, 3, 2, 1, 0])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>theta</span></div><div class='xr-var-dims'>(index)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-12fb9a86-dd79-47c5-a8dc-db7b48a88686' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-12fb9a86-dd79-47c5-a8dc-db7b48a88686' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-bac3ac99-27a7-48d9-aae2-0b1777d55ad2' class='xr-var-data-in' type='checkbox'><label for='data-bac3ac99-27a7-48d9-aae2-0b1777d55ad2' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>rad</dd><dt><span>reference_frame :</span></dt><dd>Galactic</dd></dl></div><div class='xr-var-data'><pre>[372255 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>phi</span></div><div class='xr-var-dims'>(index)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-94639278-2b7e-4565-bb7d-561e68571cb8' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-94639278-2b7e-4565-bb7d-561e68571cb8' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-151c04fa-3607-40de-9eef-b94cd66efb56' class='xr-var-data-in' type='checkbox'><label for='data-151c04fa-3607-40de-9eef-b94cd66efb56' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>rad</dd><dt><span>reference_frame :</span></dt><dd>Galactic</dd></dl></div><div class='xr-var-data'><pre>[372255 values with dtype=float64]</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-007e81d7-12eb-47df-9441-8756cb459e0d' class='xr-section-summary-in' type='checkbox' checked><label for='section-007e81d7-12eb-47df-9441-8756cb459e0d' class='xr-section-summary' >Data variables: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>logpolycoefflux</span></div><div class='xr-var-dims'>(index, power)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-4f377d01-f42e-4f4a-b42b-2daaf36ea41d' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-4f377d01-f42e-4f4a-b42b-2daaf36ea41d' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-cb1b3dd3-7c9a-4102-aff1-b344ac773fee' class='xr-var-data-in' type='checkbox'><label for='data-cb1b3dd3-7c9a-4102-aff1-b344ac773fee' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>Jy</dd></dl></div><div class='xr-var-data'><pre>[1861275 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>logpolycoefpolflux</span></div><div class='xr-var-dims'>(index, power)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-8620c57f-0d3f-4228-b600-061f5e183ae1' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-8620c57f-0d3f-4228-b600-061f5e183ae1' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-f6b0433d-6551-4d91-a712-f8ecab627875' class='xr-var-data-in' type='checkbox'><label for='data-f6b0433d-6551-4d91-a712-f8ecab627875' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>Jy</dd></dl></div><div class='xr-var-data'><pre>[1861275 values with dtype=float64]</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-65fb1c1c-8549-4740-a1bf-8549ec338f1c' class='xr-section-summary-in' type='checkbox' ><label for='section-65fb1c1c-8549-4740-a1bf-8549ec338f1c' class='xr-section-summary' >Indexes: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>index</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-5e79e005-e888-4a23-97e2-68e79af55c8d' class='xr-index-data-in' type='checkbox'/><label for='index-5e79e005-e888-4a23-97e2-68e79af55c8d' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([ 27897657, 242175600, 270516228, 276407774, 256213631, 281544643,\n",
" 263719520, 259533227, 251679008, 252717495,\n",
" ...\n",
" 238190295, 145826702, 108046020, 232265270, 174768449, 256408684,\n",
" 236382968, 246732122, 263347056, 166742332],\n",
" dtype=&#x27;int64&#x27;, name=&#x27;index&#x27;, length=372255))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>power</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-94e29ecc-5c41-430b-88fa-51b7764ff056' class='xr-index-data-in' type='checkbox'/><label for='index-94e29ecc-5c41-430b-88fa-51b7764ff056' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([4, 3, 2, 1, 0], dtype=&#x27;int64&#x27;, name=&#x27;power&#x27;))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-0325eb28-0f04-4821-9221-64d573990689' class='xr-section-summary-in' type='checkbox' checked><label for='section-0325eb28-0f04-4821-9221-64d573990689' class='xr-section-summary' >Attributes: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>description :</span></dt><dd>Websky catalog of sources with flux &gt; 1 mJy at 100 GHz, fitted with a 4th order polynomial in log frequency. Galactic reference frame. Sorted by flux at 100 GHz (descending). The &#x27;index&#x27; coordinate gives the original index in the Websky catalog.</dd></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.Dataset> Size: 39MB\n",
"Dimensions: (index: 372255, power: 5)\n",
"Coordinates:\n",
" * index (index) int64 3MB 27897657 242175600 ... 166742332\n",
" * power (power) int64 40B 4 3 2 1 0\n",
" theta (index) float64 3MB ...\n",
" phi (index) float64 3MB ...\n",
"Data variables:\n",
" logpolycoefflux (index, power) float64 15MB ...\n",
" logpolycoefpolflux (index, power) float64 15MB ...\n",
"Attributes:\n",
" description: Websky catalog of sources with flux > 1 mJy at 100 GHz, fit..."
]
},
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"new_catalog"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "48",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-10T06:54:52.372335Z",
"iopub.status.busy": "2025-05-10T06:54:52.371893Z",
"iopub.status.idle": "2025-05-10T06:54:52.380558Z",
"shell.execute_reply": "2025-05-10T06:54:52.380256Z"
},
"papermill": {
"duration": 0.017189,
"end_time": "2025-05-10T06:54:52.381272",
"exception": false,
"start_time": "2025-05-10T06:54:52.364083",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"data": {
"text/plain": [
"<HDF5 dataset \"logpolycoefflux\": shape (372255, 5), type \"<f8\">"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import h5py\n",
"f = h5py.File(output_filename, 'r')\n",
"f[\"logpolycoefflux\"]"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "49",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-10T06:54:52.395368Z",
"iopub.status.busy": "2025-05-10T06:54:52.395177Z",
"iopub.status.idle": "2025-05-10T06:54:52.398423Z",
"shell.execute_reply": "2025-05-10T06:54:52.398106Z"
},
"papermill": {
"duration": 0.011417,
"end_time": "2025-05-10T06:54:52.399410",
"exception": false,
"start_time": "2025-05-10T06:54:52.387993",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"data": {
"text/plain": [
"b'Jy'"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"f[\"logpolycoefflux\"].attrs[\"units\"]"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "6d2ff2bb",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'/mnt/home/azonca'"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from pathlib import Path\n",
"\n",
"home_folder = str(Path.home())\n",
"home_folder"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "85fa5dd5",
"metadata": {},
"outputs": [],
"source": [
"old_catalog= xarray.open_dataset(home_folder + \"/s/pysm-data/websky/0.4/radio_catalog/websky_high_flux_catalog_1mJy.h5\")"
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "77e3103a",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"html[data-theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 0 20px 0 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: inline-block;\n",
" opacity: 0;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:focus + label {\n",
" border: 2px solid var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: '►';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: '▼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt; Size: 39MB\n",
"Dimensions: (index: 372255, power: 5)\n",
"Coordinates:\n",
" * index (index) int64 3MB 11253 16428 ... 281755430 281755795\n",
" * power (power) int64 40B 4 3 2 1 0\n",
" theta (index) float64 3MB ...\n",
" phi (index) float64 3MB ...\n",
"Data variables:\n",
" logpolycoefflux (index, power) float64 15MB ...\n",
" logpolycoefpolflux (index, power) float64 15MB ...\n",
"Attributes:\n",
" notes: Catalog of sources where the flux in Jy at any frequency is cal...</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-0b6b1318-69c9-4df4-9f6b-f5a983f7973c' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-0b6b1318-69c9-4df4-9f6b-f5a983f7973c' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span class='xr-has-index'>index</span>: 372255</li><li><span class='xr-has-index'>power</span>: 5</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-1af219a9-8b56-457c-99df-8951ead6e18e' class='xr-section-summary-in' type='checkbox' checked><label for='section-1af219a9-8b56-457c-99df-8951ead6e18e' class='xr-section-summary' >Coordinates: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>index</span></div><div class='xr-var-dims'>(index)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>11253 16428 ... 281755430 281755795</div><input id='attrs-17cd005c-4f6a-419b-bf28-531ebe9cc8dc' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-17cd005c-4f6a-419b-bf28-531ebe9cc8dc' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-27a48085-c944-42be-87d1-8210d4760ca1' class='xr-var-data-in' type='checkbox'><label for='data-27a48085-c944-42be-87d1-8210d4760ca1' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([ 11253, 16428, 24110, ..., 281755117, 281755430, 281755795])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>power</span></div><div class='xr-var-dims'>(power)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>4 3 2 1 0</div><input id='attrs-e4eff832-eba9-4439-8d07-4fef80adcf8b' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-e4eff832-eba9-4439-8d07-4fef80adcf8b' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-50961382-2417-4448-88b7-167fb2bbe4aa' class='xr-var-data-in' type='checkbox'><label for='data-50961382-2417-4448-88b7-167fb2bbe4aa' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([4, 3, 2, 1, 0])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>theta</span></div><div class='xr-var-dims'>(index)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-897a48e2-a291-430f-8ff8-31630e7a4128' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-897a48e2-a291-430f-8ff8-31630e7a4128' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-35153d91-e508-4bd9-b583-98e61fcbe886' class='xr-var-data-in' type='checkbox'><label for='data-35153d91-e508-4bd9-b583-98e61fcbe886' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>rad</dd></dl></div><div class='xr-var-data'><pre>[372255 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>phi</span></div><div class='xr-var-dims'>(index)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-e0ad5b43-50f3-4eff-85d5-ef8d7d6b66ff' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-e0ad5b43-50f3-4eff-85d5-ef8d7d6b66ff' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9339581d-2dbb-4b06-866c-370dcd99be7a' class='xr-var-data-in' type='checkbox'><label for='data-9339581d-2dbb-4b06-866c-370dcd99be7a' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>rad</dd></dl></div><div class='xr-var-data'><pre>[372255 values with dtype=float64]</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-d6a2c642-6e79-4498-999a-ed156ecbfdcd' class='xr-section-summary-in' type='checkbox' checked><label for='section-d6a2c642-6e79-4498-999a-ed156ecbfdcd' class='xr-section-summary' >Data variables: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>logpolycoefflux</span></div><div class='xr-var-dims'>(index, power)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-7a1dedeb-142f-450d-9871-45d77c86bb01' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-7a1dedeb-142f-450d-9871-45d77c86bb01' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-2bcba05f-44d0-4870-a1d8-dcf2fbc36aa8' class='xr-var-data-in' type='checkbox'><label for='data-2bcba05f-44d0-4870-a1d8-dcf2fbc36aa8' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>Jy</dd></dl></div><div class='xr-var-data'><pre>[1861275 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>logpolycoefpolflux</span></div><div class='xr-var-dims'>(index, power)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-8f67f4b6-8ebb-4ad9-b654-189e94718dc8' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-8f67f4b6-8ebb-4ad9-b654-189e94718dc8' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-efd8a6d2-ccfc-452b-81da-799a3cea0925' class='xr-var-data-in' type='checkbox'><label for='data-efd8a6d2-ccfc-452b-81da-799a3cea0925' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>Jy</dd></dl></div><div class='xr-var-data'><pre>[1861275 values with dtype=float64]</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-bbc12773-8e71-4375-82e9-c13aed9f3198' class='xr-section-summary-in' type='checkbox' ><label for='section-bbc12773-8e71-4375-82e9-c13aed9f3198' class='xr-section-summary' >Indexes: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>index</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-4082e16d-c53b-4a57-9f30-abd2a78db979' class='xr-index-data-in' type='checkbox'/><label for='index-4082e16d-c53b-4a57-9f30-abd2a78db979' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([ 11253, 16428, 24110, 25342, 26268, 27427,\n",
" 27855, 40649, 43434, 44634,\n",
" ...\n",
" 281751967, 281752822, 281753210, 281753640, 281753799, 281754105,\n",
" 281754532, 281755117, 281755430, 281755795],\n",
" dtype=&#x27;int64&#x27;, name=&#x27;index&#x27;, length=372255))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>power</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-34a032d9-33df-4e68-91e9-6b96c28246fc' class='xr-index-data-in' type='checkbox'/><label for='index-34a032d9-33df-4e68-91e9-6b96c28246fc' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([4, 3, 2, 1, 0], dtype=&#x27;int64&#x27;, name=&#x27;power&#x27;))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-52ca8cd7-be06-483f-b6fe-e6ecb3bef304' class='xr-section-summary-in' type='checkbox' checked><label for='section-52ca8cd7-be06-483f-b6fe-e6ecb3bef304' class='xr-section-summary' >Attributes: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>notes :</span></dt><dd>Catalog of sources where the flux in Jy at any frequency is calculated with a 5th order polynomial in the logarithm of the frequency in GHz, separately for temperature and polarization.\n",
"The catalog does not contain information about the polarization angle of a source.\n",
"The catalog sorted in descending order based on the source flux at 100 GHz</dd></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.Dataset> Size: 39MB\n",
"Dimensions: (index: 372255, power: 5)\n",
"Coordinates:\n",
" * index (index) int64 3MB 11253 16428 ... 281755430 281755795\n",
" * power (power) int64 40B 4 3 2 1 0\n",
" theta (index) float64 3MB ...\n",
" phi (index) float64 3MB ...\n",
"Data variables:\n",
" logpolycoefflux (index, power) float64 15MB ...\n",
" logpolycoefpolflux (index, power) float64 15MB ...\n",
"Attributes:\n",
" notes: Catalog of sources where the flux in Jy at any frequency is cal..."
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"old_catalog"
]
},
{
"cell_type": "code",
"execution_count": 11,
"id": "606c20ce",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Indices match: True\n",
"Number of indices in new_catalog: 372255\n",
"Number of indices in old_catalog: 372255\n",
"Indices only in new_catalog: 0\n",
"Indices only in old_catalog: 0\n"
]
}
],
"source": [
"# Compare the index values of new_catalog and old_catalog, ignoring order\n",
"new_indices = set(new_catalog.index.values)\n",
"old_indices = set(old_catalog.index.values)\n",
"\n",
"print(\"Indices match:\", new_indices == old_indices)\n",
"print(\"Number of indices in new_catalog:\", len(new_indices))\n",
"print(\"Number of indices in old_catalog:\", len(old_indices))\n",
"print(\"Indices only in new_catalog:\", len(new_indices - old_indices))\n",
"print(\"Indices only in old_catalog:\", len(old_indices - new_indices))"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "3c9f110f",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 17,
"id": "7530924e",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"logpolycoefflux arrays are equal for all indices: False\n"
]
}
],
"source": [
"import numpy as np\n",
"\n",
"# Ensure both catalogs are aligned by index\n",
"new_sorted = new_catalog.sortby(\"index\")\n",
"old_sorted = old_catalog.sortby(\"index\")\n",
"# Compare logpolycoefflux values for all indices\n",
"coeff_equal = np.allclose(\n",
" new_sorted.logpolycoefflux.values,\n",
" old_sorted.logpolycoefflux.values,\n",
" rtol=1e-6,\n",
" atol=1e-10,\n",
" equal_nan=True,\n",
")\n",
"\n",
"print(\"logpolycoefflux arrays are equal for all indices:\", coeff_equal)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "2569363e",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 19,
"id": "74cf4056",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Total number of differing elements: 0\n"
]
}
],
"source": [
"# Find where the logpolycoefflux arrays differ and by how much\n",
"diff_mask = ~np.isclose(\n",
" new_sorted.logpolycoefflux.values,\n",
" old_sorted.logpolycoefflux.values,\n",
" rtol=1e-4,\n",
" atol=1e-6,\n",
" equal_nan=True,\n",
")\n",
"\n",
"# Get the indices (index, power) where they differ\n",
"diff_indices = np.argwhere(diff_mask)\n",
"\n",
"# Compute absolute differences for all differing elements\n",
"abs_diffs = [\n",
" (\n",
" abs(new_sorted.logpolycoefflux.values[i, p] - old_sorted.logpolycoefflux.values[i, p]),\n",
" i,\n",
" p\n",
" )\n",
" for i, p in diff_indices\n",
"]\n",
"\n",
"# Sort by absolute difference, descending\n",
"abs_diffs_sorted = sorted(abs_diffs, key=lambda x: x[0], reverse=True)\n",
"\n",
"# Show the 10 highest absolute differences\n",
"for abs_diff, i, p in abs_diffs_sorted[:10]:\n",
" new_val = new_sorted.logpolycoefflux.values[i, p]\n",
" old_val = old_sorted.logpolycoefflux.values[i, p]\n",
" print(\n",
" f\"index={new_sorted.index.values[i]}, power={new_sorted.power.values[p]}: \"\n",
" f\"new={new_val}, old={old_val}, abs_diff={abs_diff}\"\n",
" )\n",
" rel_diff = abs_diff / (abs(old_val) if old_val != 0 else 1)\n",
" print(f\" rel_diff={rel_diff}\")\n",
"print(f\"Total number of differing elements: {diff_mask.sum()}\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a616770f",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"@webio": {
"lastCommId": null,
"lastKernelId": null
},
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.7"
},
"papermill": {
"default_parameters": {},
"duration": 38459.845197,
"end_time": "2025-05-10T06:54:52.825666",
"environment_variables": {},
"exception": null,
"input_path": "websky_sources_high_flux_catalog_out_1mJy.ipynb",
"output_path": "websky_sources_high_flux_catalog_out_1mJy_executed.ipynb",
"parameters": {},
"start_time": "2025-05-09T20:13:52.980469",
"version": "2.4.0"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"state": {
"024a79333ddd48959fe4fc82f5627d59": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "2.0.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "2.0.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "2.0.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border_bottom": null,
"border_left": null,
"border_right": null,
"border_top": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"1b6594c2c7f845358d3bd5ac817abd4d": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "2.0.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "2.0.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "2.0.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border_bottom": null,
"border_left": null,
"border_right": null,
"border_top": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"25a43f23d4f149739a86cf794e2c8a9e": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "2.0.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "2.0.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "2.0.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border_bottom": null,
"border_left": null,
"border_right": null,
"border_top": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"36e00a207366459d87503933104e4fd1": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "HTMLStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "2.0.0",
"_model_name": "HTMLStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "2.0.0",
"_view_name": "StyleView",
"background": null,
"description_width": "",
"font_size": null,
"text_color": null
}
},
"587a2b21163345d98256a3bbabf9cbc4": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "HBoxModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "2.0.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "2.0.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_7cdb145ece0546bf80aa53de2617b85c",
"IPY_MODEL_d3d2801e63974a329912a5df25ad81c4",
"IPY_MODEL_ebfa5a5254364cabb47d81713c2fb534"
],
"layout": "IPY_MODEL_1b6594c2c7f845358d3bd5ac817abd4d",
"tabbable": null,
"tooltip": null
}
},
"78864cdd59544a60ae646f3a684b2d10": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "HTMLStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "2.0.0",
"_model_name": "HTMLStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "2.0.0",
"_view_name": "StyleView",
"background": null,
"description_width": "",
"font_size": null,
"text_color": null
}
},
"7cdb145ece0546bf80aa53de2617b85c": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "2.0.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "2.0.0",
"_view_name": "HTMLView",
"description": "",
"description_allow_html": false,
"layout": "IPY_MODEL_c8840cb740604294aeef1cf16126019e",
"placeholder": "​",
"style": "IPY_MODEL_36e00a207366459d87503933104e4fd1",
"tabbable": null,
"tooltip": null,
"value": "Fitting sources: 100%"
}
},
"979bfa501f37430fbb08638694a5d4a6": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "ProgressStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "2.0.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "2.0.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"c8840cb740604294aeef1cf16126019e": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "2.0.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "2.0.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "2.0.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border_bottom": null,
"border_left": null,
"border_right": null,
"border_top": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"d3d2801e63974a329912a5df25ad81c4": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "FloatProgressModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "2.0.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "2.0.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_allow_html": false,
"layout": "IPY_MODEL_25a43f23d4f149739a86cf794e2c8a9e",
"max": 372255,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_979bfa501f37430fbb08638694a5d4a6",
"tabbable": null,
"tooltip": null,
"value": 372255
}
},
"ebfa5a5254364cabb47d81713c2fb534": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "2.0.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "2.0.0",
"_view_name": "HTMLView",
"description": "",
"description_allow_html": false,
"layout": "IPY_MODEL_024a79333ddd48959fe4fc82f5627d59",
"placeholder": "​",
"style": "IPY_MODEL_78864cdd59544a60ae646f3a684b2d10",
"tabbable": null,
"tooltip": null,
"value": " 372255/372255 [10:35:28&lt;00:00,  9.75it/s, ETA: 0h 0m]"
}
}
},
"version_major": 2,
"version_minor": 0
}
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment