Skip to content

Commit

Permalink
update files
Browse files Browse the repository at this point in the history
  • Loading branch information
yanzastro committed Jan 28, 2025
1 parent 11194f4 commit 7c80ef4
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1,319 deletions.
29 changes: 10 additions & 19 deletions examples/estimation_examples/somocluSOM_cluster_qc_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 12,
"id": "b187a115",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -59,7 +59,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 13,
"id": "b8cc9628",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -93,7 +93,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 14,
"id": "413b937a",
"metadata": {},
"outputs": [],
Expand All @@ -106,7 +106,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 15,
"id": "34082c32",
"metadata": {},
"outputs": [],
Expand All @@ -116,7 +116,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 16,
"id": "470ee4c8",
"metadata": {},
"outputs": [],
Expand All @@ -131,7 +131,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 17,
"id": "c988407f",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -177,7 +177,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"id": "b2e264ee",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -737,16 +737,7 @@
"cluster_ind_good_qc1 = np.where(zmean_diff_cluster_qc1<max(median_abs_deviation((mean_specZ_ref-mean_photZ_ref)[~np.isnan(mean_specZ_ref-mean_photZ_ref)])*5, 0))\n",
"cluster_ind_good_qc2 = np.where(zmean_diff_cluster_qccombined<0.02)\n",
"\n",
"cluster_ind_good_qccombined = np.intersect1d(cluster_ind_good_qc2, cluster_ind_good_qc1)\n"
]
},
{
"cell_type": "markdown",
"id": "48433d96",
"metadata": {},
"source": [
"fig, ax = plt.subplots(nrows=1, ncols=1, figsize=(12,12))\n",
"plot_som(ax, meanszs.reshape(dim, dim).T, grid_type=grid_type, colormap=cm.coolwarm, cbar_name='mean true redshift', vmin=bin_low, vmax=1)"
"cluster_ind_good_qccombined = np.intersect1d(cluster_ind_good_qc2, cluster_ind_good_qc1)"
]
},
{
Expand Down Expand Up @@ -1198,7 +1189,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "RAIL",
"display_name": "python39",
"language": "python",
"name": "python3"
},
Expand All @@ -1212,7 +1203,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.7"
"version": "3.9.10"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down
426 changes: 28 additions & 398 deletions examples/estimation_examples/somocluSOM_demo.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 7c80ef4

Please sign in to comment.