diff --git a/.github/workflows/notebooks.yml b/.github/workflows/notebooks.yml index 7de633e5..cee4eea4 100644 --- a/.github/workflows/notebooks.yml +++ b/.github/workflows/notebooks.yml @@ -37,6 +37,12 @@ jobs: run: | poetry install + - name: Install Scarlet + run: | + pip install "pybind11[global]" peigen + git clone https://github.com/pmelchior/scarlet.git + cd scarlet; python setup.py install; cd .. + # just checks if they run - name: Run notebooks run: | diff --git a/notebooks/00-quickstart.ipynb b/notebooks/00-quickstart.ipynb index a76fa3d3..e59d1d4a 100644 --- a/notebooks/00-quickstart.ipynb +++ b/notebooks/00-quickstart.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -40,7 +40,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -51,7 +51,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, "outputs": [], "source": [ @@ -84,14 +84,14 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Table length=5\n", - "\n", + "
\n", "\n", "\n", "\n", @@ -113,7 +113,7 @@ "2212241881 0.423181056976 -0.00218109996058 ... 26.7419490814 26.1817016602" ] }, - "execution_count": null, + "execution_count": 4, "metadata": {}, "output_type": "execute_result" } @@ -140,7 +140,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ @@ -165,14 +165,14 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Table length=3\n", - "
galtileidradecredshiftfluxnorm_bulgefluxnorm_diskfluxnorm_agna_ba_db_bb_dpa_bulgepa_disku_abg_abr_abi_abz_aby_ab
int64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64
22008714460.418319702147-0.0001483999949410.4963772892950.01.4144730572e-170.00.00.2786496877670.00.2213030010460.0307.34432983425.941862106325.12974357623.958881378223.360736846923.072380065922.9095973969
\n", + "
\n", "\n", "\n", "\n", @@ -190,7 +190,7 @@ "2202673364 0.6265404784005448 ... 25.0117759705 25.0565166473" ] }, - "execution_count": null, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -216,7 +216,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, "outputs": [], "source": [ @@ -233,7 +233,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 8, "metadata": {}, "outputs": [ { @@ -269,7 +269,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 9, "metadata": {}, "outputs": [], "source": [ @@ -302,7 +302,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 10, "metadata": {}, "outputs": [ { @@ -311,7 +311,7 @@ "(100, 6, 120, 120)" ] }, - "execution_count": null, + "execution_count": 10, "metadata": {}, "output_type": "execute_result" } @@ -331,14 +331,14 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Table length=3\n", - "
galtileidradecredshiftfluxnorm_bulgefluxnorm_diskfluxnorm_agna_ba_db_bb_dpa_bulgepa_disku_abg_abr_abi_abz_aby_ab
int64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64
2202909702-0.91805295212761060.82551115455544340.7610309123994.06549706794e-195.27902696464e-180.00.07502409815790.3977352082730.06381899863480.216169804335200.800704956200.80070495629.099554061927.488868713426.016326904324.909793853824.422931671124.1450653076
\n", + "
\n", "\n", "\n", "\n", @@ -356,7 +356,7 @@ "2202873263 -0.9945229996597038 0.45931089285988813 ... 0.0 0.0" ] }, - "execution_count": null, + "execution_count": 11, "metadata": {}, "output_type": "execute_result" } @@ -376,7 +376,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 12, "metadata": {}, "outputs": [ { @@ -390,7 +390,7 @@ "\t wcs: )" ] }, - "execution_count": null, + "execution_count": 12, "metadata": {}, "output_type": "execute_result" } @@ -409,16 +409,16 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 13, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": null, + "execution_count": 13, "metadata": {}, "output_type": "execute_result" }, @@ -453,16 +453,16 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": null, + "execution_count": 14, "metadata": {}, "output_type": "execute_result" }, @@ -498,16 +498,16 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 15, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": null, + "execution_count": 15, "metadata": {}, "output_type": "execute_result" }, @@ -551,7 +551,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 16, "metadata": {}, "outputs": [], "source": [ @@ -560,7 +560,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 17, "metadata": {}, "outputs": [], "source": [ @@ -580,7 +580,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 18, "metadata": {}, "outputs": [], "source": [ @@ -597,7 +597,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 19, "metadata": {}, "outputs": [ { @@ -618,14 +618,14 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 20, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Table length=2\n", - "
galtileidradecredshiftfluxnorm_bulgefluxnorm_diskfluxnorm_agna_ba_db_bb_dpa_bulgepa_disku_abg_abr_abi_abz_aby_abx_peaky_peakbtk_rotationnot_drawn_unot_drawn_gnot_drawn_rnot_drawn_inot_drawn_znot_drawn_y
int64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64
22020089550.87014484757553650.71480855317513870.7559062838550.07.038753629e-180.00.00.1634656041860.00.07195229828360.048.224197387725.494171142625.225288391124.943883895924.408843994124.324386596724.251682281563.85072423796563.074042766061570.00.00.00.00.00.00.0
\n", + "
\n", "\n", "\n", "\n", @@ -641,7 +641,7 @@ " 0.866781448569519 0.6445682006963833" ] }, - "execution_count": null, + "execution_count": 20, "metadata": {}, "output_type": "execute_result" } @@ -660,7 +660,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 21, "metadata": {}, "outputs": [], "source": [ @@ -677,14 +677,14 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 22, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Table length=2\n", - "
radec
float64float64
0.5341353877472973-1.0523902083800802
\n", + "
\n", "\n", "\n", "\n", @@ -700,7 +700,7 @@ " 0.866781448569519 0.6445682006963833" ] }, - "execution_count": null, + "execution_count": 22, "metadata": {}, "output_type": "execute_result" } @@ -718,16 +718,16 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 23, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": null, + "execution_count": 23, "metadata": {}, "output_type": "execute_result" }, @@ -770,16 +770,16 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 25, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": null, + "execution_count": 25, "metadata": {}, "output_type": "execute_result" }, @@ -815,7 +815,7 @@ "# plot isolated images from prediction\n", "for ii in range(3, 6):\n", " ax = axes.flatten()[ii]\n", - " ax.imshow(deblend_batch.deblended_images[0, ii-3, 2, clip:-clip, clip:-clip], cmap=\"gray\", \n", + " ax.imshow(deblend_batch.deblended_images[0, ii-3, 0, clip:-clip, clip:-clip], cmap=\"gray\", \n", " vmin=vmin, vmax=vmax)\n", "\n", "# add colorbar\n",
radec
float64float64
0.5341353877472973-1.0523902083800802