Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
regression test v0.0.91
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanraba committed Sep 2, 2021
1 parent d1b6268 commit ae15cd4
Showing 1 changed file with 42 additions and 41 deletions.
83 changes: 42 additions & 41 deletions docs/calibration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@
"base_uri": "https://localhost:8080/"
},
"id": "SwzBGY3JdThK",
"outputId": "aba76f01-683d-4398-aa97-eddf1e673973"
"outputId": "81c1fc25-3505-4bc3-fb12-a5edd57a62fd"
},
"source": [
"import os\n",
"\n",
"os.system(\"pip install --extra-index-url https://test.pypi.org/simple/ cngi-prototype==0.0.86\")\n",
"os.system(\"pip install cngi-prototype==0.0.91\")\n",
"\n",
"!gdown -q --id 1esqPjOVVr-fuox78lqL7kxXv3Dt-T7Ox\n",
"!unzip selfcal_sim1_1scan.vis.zarr.zip > /dev/null\n",
Expand All @@ -92,14 +92,14 @@
"xr.set_options(display_style=\"html\")\n",
"print('complete')"
],
"execution_count": null,
"execution_count": 1,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"complete\n"
],
"name": "stdout"
]
}
]
},
Expand All @@ -122,7 +122,7 @@
},
"id": "pHP_zBN4sAoy",
"scrolled": false,
"outputId": "df1057ce-08b6-4946-ee61-4fe71c67b4c2"
"outputId": "07b8b219-641f-471f-9461-459f282b33dd"
},
"source": [
"import xarray as xr\n",
Expand Down Expand Up @@ -170,11 +170,13 @@
"write_vis(sc_vis_mxds,\"cor_selfcal_sim1_1scan.vis.zarr\")\n",
"#sc_vis_mxds.xds0"
],
"execution_count": null,
"execution_count": 2,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"overwrite_encoded_chunks True\n",
"######################### Start self_cal #########################\n",
"Setting default phase_only to False\n",
"Setting default minsnr to 0.0\n",
Expand All @@ -190,28 +192,27 @@
"Setting default data_group_out [' corrected_flag '] to CORRECTED_FLAG\n",
"Setting default data_group_out [' flag_info '] to FLAG_INFO\n",
"######################### Created self_cal graph #########################\n",
"Time to store and execute graph for xds0 write_zarr 79.7325668334961\n",
"Time to store and execute graph for ANTENNA write_zarr 0.053945064544677734\n",
"Time to store and execute graph for ASDM_ANTENNA write_zarr 0.04033327102661133\n",
"Time to store and execute graph for ASDM_CALATMOSPHERE write_zarr 0.20587611198425293\n",
"Time to store and execute graph for ASDM_CALWVR write_zarr 0.05418705940246582\n",
"Time to store and execute graph for ASDM_CORRELATORMODE write_zarr 0.03048419952392578\n",
"Time to store and execute graph for ASDM_RECEIVER write_zarr 0.0297701358795166\n",
"Time to store and execute graph for ASDM_SBSUMMARY write_zarr 0.05617260932922363\n",
"Time to store and execute graph for ASDM_SOURCE write_zarr 0.06744503974914551\n",
"Time to store and execute graph for ASDM_STATION write_zarr 0.015833139419555664\n",
"Time to store and execute graph for FEED write_zarr 0.03943204879760742\n",
"Time to store and execute graph for FIELD write_zarr 0.04533672332763672\n",
"Time to store and execute graph for FLAG_CMD write_zarr 0.06968426704406738\n",
"Time to store and execute graph for OBSERVATION write_zarr 0.03343319892883301\n",
"Time to store and execute graph for POLARIZATION write_zarr 0.010722875595092773\n",
"Time to store and execute graph for PROCESSOR write_zarr 0.01293635368347168\n",
"Time to store and execute graph for SOURCE write_zarr 0.0419154167175293\n",
"Time to store and execute graph for SPECTRAL_WINDOW write_zarr 0.046270132064819336\n",
"Time to store and execute graph for STATE write_zarr 0.019270658493041992\n",
"Time to store and execute graph for WEATHER write_zarr 0.06386113166809082\n"
],
"name": "stdout"
"Time to store and execute graph for xds0 write_zarr 93.75184869766235\n",
"Time to store and execute graph for ANTENNA write_zarr 0.026245832443237305\n",
"Time to store and execute graph for ASDM_ANTENNA write_zarr 0.03313755989074707\n",
"Time to store and execute graph for ASDM_CALATMOSPHERE write_zarr 0.2484433650970459\n",
"Time to store and execute graph for ASDM_CALWVR write_zarr 0.09831571578979492\n",
"Time to store and execute graph for ASDM_CORRELATORMODE write_zarr 0.03370928764343262\n",
"Time to store and execute graph for ASDM_RECEIVER write_zarr 0.027709245681762695\n",
"Time to store and execute graph for ASDM_SBSUMMARY write_zarr 0.08381080627441406\n",
"Time to store and execute graph for ASDM_SOURCE write_zarr 0.06781673431396484\n",
"Time to store and execute graph for ASDM_STATION write_zarr 0.018327951431274414\n",
"Time to store and execute graph for FEED write_zarr 0.04464125633239746\n",
"Time to store and execute graph for FIELD write_zarr 0.05102205276489258\n",
"Time to store and execute graph for FLAG_CMD write_zarr 0.08463907241821289\n",
"Time to store and execute graph for OBSERVATION write_zarr 0.028470993041992188\n",
"Time to store and execute graph for POLARIZATION write_zarr 0.011534690856933594\n",
"Time to store and execute graph for PROCESSOR write_zarr 0.02015399932861328\n",
"Time to store and execute graph for SOURCE write_zarr 0.05385231971740723\n",
"Time to store and execute graph for SPECTRAL_WINDOW write_zarr 0.05361151695251465\n",
"Time to store and execute graph for STATE write_zarr 0.030668258666992188\n",
"Time to store and execute graph for WEATHER write_zarr 0.07512664794921875\n"
]
}
]
},
Expand All @@ -234,7 +235,7 @@
"base_uri": "https://localhost:8080/",
"height": 1000
},
"outputId": "a21a561e-cc59-473e-d48f-fdcfea43481d"
"outputId": "22914c3d-80b2-451b-9ffb-b97907b4eb63"
},
"source": [
"import xarray as xr\n",
Expand Down Expand Up @@ -288,11 +289,13 @@
"\n",
"plt.show()\n"
],
"execution_count": null,
"execution_count": 3,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"overwrite_encoded_chunks True\n",
"<xarray.Dataset>\n",
"Dimensions: (baseline: 1128, flag_info: 3, pol: 4, pol_id: 1, spw_id: 1, time: 20, uvw_index: 3)\n",
"Coordinates:\n",
Expand Down Expand Up @@ -333,9 +336,8 @@
" sdm_num_bin: 1\n",
" sdm_window_function: HANNING\n",
" total_bandwidth: 343750000.0\n",
" write_zarr_time: 79.7325668334961\n"
],
"name": "stdout"
" write_zarr_time: 93.75184869766235\n"
]
},
{
"output_type": "display_data",
Expand All @@ -346,7 +348,6 @@
]
},
"metadata": {
"tags": [],
"needs_background": "light"
}
}
Expand All @@ -369,9 +370,9 @@
"id": "0U2JSNPB8bK8",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 565
"height": 582
},
"outputId": "e7c994f8-9e52-4aa7-cfed-e66b9cefcdc2"
"outputId": "66c4afa3-b936-41a8-92b8-4beabc93486d"
},
"source": [
"import xarray as xr\n",
Expand Down Expand Up @@ -434,11 +435,13 @@
"plt.axis('scaled')\n",
"plt.show()\n"
],
"execution_count": null,
"execution_count": 4,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"overwrite_encoded_chunks True\n",
"I= <xarray.DataArray 'CORRECTED_DATA' ()>\n",
"array(3.00001346)\n",
"Q= <xarray.DataArray 'CORRECTED_DATA' ()>\n",
Expand All @@ -447,8 +450,7 @@
"array(0.14953174)\n",
"V= <xarray.DataArray 'CORRECTED_DATA' ()>\n",
"array(-0.00058128)\n"
],
"name": "stdout"
]
},
{
"output_type": "display_data",
Expand All @@ -459,7 +461,6 @@
]
},
"metadata": {
"tags": [],
"needs_background": "light"
}
}
Expand Down

0 comments on commit ae15cd4

Please sign in to comment.