diff --git a/.github/workflows/build_container.yaml b/.github/workflows/build_container.yaml index 612f6568..9da2e85e 100644 --- a/.github/workflows/build_container.yaml +++ b/.github/workflows/build_container.yaml @@ -1,4 +1,4 @@ -name: build docker image +name: Build docker image "on": workflow_dispatch: @@ -6,22 +6,18 @@ name: build docker image # Follows https://github.com/lsst-sqre/build-and-push-to-ghcr jobs: - build: + build_container: runs-on: ubuntu-latest - # See https://lsstc.slack.com/archives/C2JP8GGVC/p1698782669757349?thread_ts=1698779230.846079&cid=C2JP8GGVC permissions: contents: read packages: write steps: - - uses: actions/checkout@v3 - - # We need to install schedview in this workflow to get the data - # for rubin_sim, as download by rs_download_data or cached by github. + - uses: actions/checkout@v4 - uses: conda-incubator/setup-miniconda@v2 with: - python-version: ${{ matrix.python-version }} + python-version: "3.11" auto-update-conda: true channels: conda-forge,defaults miniforge-variant: Mambaforge @@ -29,45 +25,36 @@ jobs: channel-priority: strict show-channel-urls: true - - name: configure conda and install requirements + - name: Configure conda and install requirements id: rs-install shell: bash -l {0} run: | mamba install --quiet --file=requirements.txt mamba install --quiet --file=test-requirements.txt - mamba list rubin-sim | grep -v "#" | awk '{print $2}' > ${{ github.workspace }}/rs_version + mamba list rubin-scheduler | grep -v "#" | awk '{print $2}' > ${{ github.workspace }}/rs_version echo "rs-version" `cat ${{ github.workspace }}/rs_version` - echo "rs-version=`cat ${{ github.workspace }}/rs_version`" >> $GITHUB_OUTPUT + echo "rs-version=`cat ${{ github.workspace }}/rs_version`" >> $GITHUB_OUTPUT - - name: Access rubin-sim-data cache + - name: Access rubin-sched-data cache id: cache-rs uses: actions/cache@v3 env: - cache-name: cached-rubin-sim-data + cache-name: cached-rubin-sched-data with: - path: ${{ github.workspace }}/rubin_sim_data + path: ~/rubin_sim_data key: ${{ env.cache-name }}-v${{ steps.rs-install.outputs.rs-version }} restore-keys: | ${{ env.cache-name }}-v - - if: ${{ steps.cache-rs.outputs.cache-hit == 'true' }} - name: List cache contents. - shell: bash -l {0} - run: | - export RUBIN_SIM_DATA_DIR=${{ github.workspace }}/rubin_sim_data - echo $RUBIN_SIM_DATA_DIR - ls $RUBIN_SIM_DATA_DIR - echo "__contents of versions.txt__" - cat $RUBIN_SIM_DATA_DIR/versions.txt - - - if: ${{ steps.cache-rs.outputs.cache-hit != 'true' }} - name: Download data. + - name: Check and update cache contents. shell: bash -l {0} run: | - export RUBIN_SIM_DATA_DIR=${{ github.workspace }}/rubin_sim_data - rs_download_data --force --dirs scheduler,site_models,skybrightness_pre,throughputs,tests --tdqm_disable + export RUBIN_SIM_DATA_DIR=~/rubin_sim_data + scheduler_download_data --update --tdqm_disable + # Docker image copies from github.workspace, not ~ + cp -r ~/rubin_sim_data ${{ github.workspace }}/rubin_sim_data - - name: report environment + - name: Report environment shell: bash -l {0} run: | echo pwd is `pwd` @@ -75,11 +62,25 @@ jobs: echo github.workspace is ${{ github.workspace }} find ${{ github.workspace }} -maxdepth 2 - - uses: lsst-sqre/build-and-push-to-ghcr@v1 + - uses: lsst-sqre/build-and-push-to-ghcr@tickets/DM-41857 id: build with: image: ${{ github.repository }} github_token: ${{ secrets.GITHUB_TOKEN }} dockerfile: Dockerfile + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache + + - name: Report build outputs + shell: bash -l {0} + run: | + echo Pushed ghcr.io/${{ github.repository }}:${{ steps.build.outputs.tag }} + echo Fully qualified image digest: ${{ steps.build.outputs.fully_qualified_image_digest }} + echo Tag of the image: ${{ steps.build.outputs.tag }} + + + + + + - - run: echo Pushed ghcr.io/${{ github.repository }}:${{ steps.build.outputs.tag }} diff --git a/.github/workflows/build_docs.yaml b/.github/workflows/build_docs.yaml index 36ddb500..db293088 100644 --- a/.github/workflows/build_docs.yaml +++ b/.github/workflows/build_docs.yaml @@ -23,7 +23,7 @@ jobs: channel-priority: strict show-channel-urls: true - - name: configure and install requirements and documenteer + - name: Configure and install requirements and documenteer shell: bash -l {0} run: | conda config --set always_yes yes @@ -31,24 +31,24 @@ jobs: conda install --quiet pip pip install "documenteer[guide]" - - name: install schedview + - name: Install schedview shell: bash -l {0} run: | echo `pwd` python -m pip install . - - name: check conda and documenteer + - name: Check conda and documenteer shell: bash -l {0} run: | conda list - - name: build docs + - name: Build docs shell: bash -l {0} run: | cd docs package-docs build - - name: upload documentation + - name: Upload documentation uses: lsst-sqre/ltd-upload@v1 with: project: "schedview" diff --git a/.github/workflows/cache.yaml b/.github/workflows/cache.yaml index fe0f42fb..75483ee4 100644 --- a/.github/workflows/cache.yaml +++ b/.github/workflows/cache.yaml @@ -9,7 +9,7 @@ on: jobs: make-cache: - runs-on: ubuntu-latest + runs-on: macos-latest steps: - uses: actions/checkout@v4 @@ -25,20 +25,20 @@ jobs: show-channel-urls: true activate-environment: rubin-sim - - name: Install rubin-sim + - name: Install rubin-scheduler/rubin-sim id: rs-install shell: bash -l {0} run: | - mamba install --quiet rubin_sim - mamba list rubin-sim | grep -v "#" | awk '{print $2}' > ${{ github.workspace }}/rs_version + mamba install --quiet rubin-scheduler + mamba list rubin-scheduler | grep -v "#" | awk '{print $2}' > ${{ github.workspace }}/rs_version echo "rs-version" `cat ${{ github.workspace }}/rs_version` echo "rs-version=`cat ${{ github.workspace }}/rs_version`" >> $GITHUB_OUTPUT - - name: Access rubin-sim-data cache + - name: Access rubin-sched-data cache id: cache-rs uses: actions/cache@v3 env: - cache-name: cached-rubin-sim-data + cache-name: cached-rubin-sched-data with: path: ~/rubin_sim_data key: ${{ env.cache-name }}-v${{ steps.rs-install.outputs.rs-version }} @@ -56,11 +56,11 @@ jobs: cat $RUBIN_SIM_DATA_DIR/versions.txt - if: ${{ steps.cache-rs.outputs.cache-hit != 'true' }} - name: Download data. + name: Update/Download data. shell: bash -l {0} run: | export RUBIN_SIM_DATA_DIR=~/rubin_sim_data - rs_download_data --force --dirs scheduler,site_models,skybrightness_pre,throughputs,tests --tdqm_disable + scheduler_download_data --update --tdqm_disable - name: Check data shell: bash -l {0} @@ -70,6 +70,8 @@ jobs: ls $RUBIN_SIM_DATA_DIR echo "__contents of versions.txt__" cat $RUBIN_SIM_DATA_DIR/versions.txt + echo "is it in sync?" + scheduler_download_data --versions diff --git a/.github/workflows/cleanup_cache.yaml b/.github/workflows/cleanup_cache.yaml new file mode 100644 index 00000000..bafab8db --- /dev/null +++ b/.github/workflows/cleanup_cache.yaml @@ -0,0 +1,32 @@ +name: Auto cleanup cache for branch +on: + pull_request: + types: + - closed + +jobs: + cleanup-cache: + runs-on: ubuntu-latest + steps: + - name: Cleanup + run: | + gh extension install actions/gh-actions-cache + + echo "Fetching list of cache key" + cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1) + + ## Setting this to not fail the workflow while deleting cache keys. + set +e + echo "Deleting caches..." + for cacheKey in $cacheKeysForPR + do + gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm + done + echo "Done" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPO: ${{ github.repository }} + BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge + + + diff --git a/.github/workflows/ruff.yaml b/.github/workflows/ruff.yaml new file mode 100644 index 00000000..b7e2b3e6 --- /dev/null +++ b/.github/workflows/ruff.yaml @@ -0,0 +1,24 @@ +name: Ruff and iSort +on: + # Trigger the workflow on push (to main) or pull request + push: + branches: + - main + pull_request: + branches: + - main + workflow_dispatch: + +jobs: + isort: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: isort/isort-action@v1 + with: + requirements-files: "requirements.txt test-requirements.txt" + ruff: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: chartboost/ruff-action@v1 \ No newline at end of file diff --git a/.github/workflows/test_and_build.yaml b/.github/workflows/test_and_build.yaml index a13a2124..1b4d495f 100644 --- a/.github/workflows/test_and_build.yaml +++ b/.github/workflows/test_and_build.yaml @@ -36,55 +36,44 @@ jobs: channel-priority: strict show-channel-urls: true - - name: configure conda and install requirements + - name: Configure conda and install requirements id: rs-install shell: bash -l {0} run: | mamba install --quiet --file=requirements.txt mamba install --quiet --file=test-requirements.txt - mamba list rubin-sim | grep -v "#" | awk '{print $2}' > ${{ github.workspace }}/rs_version + mamba list rubin-scheduler | grep -v "#" | awk '{print $2}' > ${{ github.workspace }}/rs_version echo "rs-version" `cat ${{ github.workspace }}/rs_version` echo "rs-version=`cat ${{ github.workspace }}/rs_version`" >> $GITHUB_OUTPUT - - name: Access rubin-sim-data cache + - name: Access rubin-sched-data cache id: cache-rs uses: actions/cache@v3 env: - cache-name: cached-rubin-sim-data + cache-name: cached-rubin-sched-data with: path: ~/rubin_sim_data key: ${{ env.cache-name }}-v${{ steps.rs-install.outputs.rs-version }} restore-keys: | ${{ env.cache-name }}-v - - if: ${{ steps.cache-rs.outputs.cache-hit == 'true' }} - name: List cache contents. + - name: Check and update cache contents. shell: bash -l {0} run: | export RUBIN_SIM_DATA_DIR=~/rubin_sim_data - echo $RUBIN_SIM_DATA_DIR - ls $RUBIN_SIM_DATA_DIR - echo "__contents of versions.txt__" - cat $RUBIN_SIM_DATA_DIR/versions.txt + scheduler_download_data --update --tdqm_disable - - if: ${{ steps.cache-rs.outputs.cache-hit != 'true' }} - name: Download data. - shell: bash -l {0} - run: | - export RUBIN_SIM_DATA_DIR=~/rubin_sim_data - rs_download_data --force --dirs scheduler,site_models,skybrightness_pre,throughputs,tests --tdqm_disable - - - name: install schedview + - name: Install schedview shell: bash -l {0} run: | echo `pwd` python -m pip install . --no-deps - - name: conda list + - name: Conda list shell: bash -l {0} run: conda list - - name: run unit tests + - name: Run unit tests shell: bash -l {0} run: | export RUBIN_SIM_DATA_DIR=~/rubin_sim_data diff --git a/README.md b/README.md index d2a03d5a..3e397139 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,10 @@ # schedview + +[![pypi](https://img.shields.io/pypi/v/schedview.svg)](https://pypi.org/project/schedview/) + [![Conda Version](https://img.shields.io/conda/vn/conda-forge/schedview.svg)](https://anaconda.org/conda-forge/schedview)
+[![Run CI](https://github.com/lsst/schedview/actions/workflows/test_and_build.yaml/badge.svg)](https://github.com/lsst/schedview/actions/workflows/test_and_build.yaml) +[![codecov](https://codecov.io/gh/lsst/schedview/branch/main/graph/badge.svg?token=2BUBL8R9RH)](https://codecov.io/gh/lsst/schedview) + The `schedview` module provides tools for visualizing Rubin Observatory scheduler behaviour and Rubin Observatory/LSST survey status, including: - A collection of functions, eacho of which creates an independent visualization of some aspect of scheduler behaviour, state, or surve progress. These functions may be used in `jupyter` notebooks or other python applications, or combined into dashboards or other higher level applications. diff --git a/ci/Jenkinsfile_schedview.conda b/ci/Jenkinsfile_schedview.conda new file mode 100644 index 00000000..8d82fe21 --- /dev/null +++ b/ci/Jenkinsfile_schedview.conda @@ -0,0 +1,2 @@ +@Library('JenkinsShared')_ +ExternalCondaPipeline("schedview") diff --git a/container_environment.yaml b/container_environment.yaml index 89e60a5d..04854660 100644 --- a/container_environment.yaml +++ b/container_environment.yaml @@ -8,7 +8,7 @@ dependencies: - numpy - pandas - astropy >= 5.3 - - rubin-sim >= 1.3.0 + - rubin-scheduler - uranography >= 1.1.0 - bokeh >= 3.1.1 - panel >= 1.1.0 diff --git a/environment.yaml b/environment.yaml index 4e299493..af71c5e7 100644 --- a/environment.yaml +++ b/environment.yaml @@ -2,7 +2,7 @@ name: schedview channels: - conda-forge dependencies: - - rubin-sim + - rubin-scheduler - bokeh - pytest-flake8 - pytest-black diff --git a/notebooks/architecture.ipynb b/notebooks/architecture.ipynb index afe2dbdf..c1925115 100644 --- a/notebooks/architecture.ipynb +++ b/notebooks/architecture.ipynb @@ -530,9 +530,9 @@ ], "metadata": { "kernelspec": { - "display_name": "schedview", + "display_name": "Python 3 (ipykernel)", "language": "python", - "name": "schedview" + "name": "python3" }, "language_info": { "codemirror_mode": { diff --git a/notebooks/make_test_schedulers.ipynb b/notebooks/make_test_schedulers.ipynb index 9ce2255d..bda5c723 100644 --- a/notebooks/make_test_schedulers.ipynb +++ b/notebooks/make_test_schedulers.ipynb @@ -19,16 +19,9 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "id": "20b7a7e4-a1dd-4703-8830-d64e6c9a7341", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:16:16.626941Z", - "iopub.status.busy": "2023-11-03T18:16:16.626805Z", - "iopub.status.idle": "2023-11-03T18:16:16.629105Z", - "shell.execute_reply": "2023-11-03T18:16:16.628773Z", - "shell.execute_reply.started": "2023-11-03T18:16:16.626926Z" - }, "tags": [] }, "outputs": [], @@ -42,49 +35,36 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "id": "b89b4ab2-8751-4518-a7dc-db9cb732ac2a", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:16:16.673620Z", - "iopub.status.busy": "2023-11-03T18:16:16.673478Z", - "iopub.status.idle": "2023-11-03T18:16:18.260824Z", - "shell.execute_reply": "2023-11-03T18:16:18.260372Z", - "shell.execute_reply.started": "2023-11-03T18:16:16.673606Z" - }, "tags": [] }, "outputs": [], "source": [ + "import os\n", "import numpy as np\n", "import pandas as pd\n", "import healpy as hp\n", - "import rubin_sim\n", + "import rubin_scheduler\n", "from astropy.time import Time\n", "import astropy.units as u\n", "import astropy.coordinates\n", - "from rubin_sim.scheduler.model_observatory import ModelObservatory\n", - "from rubin_sim.scheduler.surveys.field_survey import FieldSurvey\n", - "from rubin_sim.scheduler.schedulers import CoreScheduler\n", - "import rubin_sim.scheduler.basis_functions as bf\n", - "from rubin_sim.scheduler import sim_runner\n", + "from rubin_scheduler.scheduler.model_observatory import ModelObservatory\n", + "from rubin_scheduler.scheduler.surveys.field_survey import FieldSurvey\n", + "from rubin_scheduler.scheduler.schedulers import CoreScheduler\n", + "import rubin_scheduler.scheduler.basis_functions as bf\n", + "from rubin_scheduler.scheduler import sim_runner\n", "import schedview.collect\n", "import schedview.compute\n", - "from rubin_sim.utils import survey_start_mjd" + "from rubin_scheduler.utils import survey_start_mjd" ] }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "id": "96800bac-3d6f-4325-ad09-20780c704096", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:16:18.261917Z", - "iopub.status.busy": "2023-11-03T18:16:18.261723Z", - "iopub.status.idle": "2023-11-03T18:16:18.264418Z", - "shell.execute_reply": "2023-11-03T18:16:18.264003Z", - "shell.execute_reply.started": "2023-11-03T18:16:18.261902Z" - }, "tags": [] }, "outputs": [], @@ -94,16 +74,9 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "id": "1681d2ba-4d80-416b-8dc3-2fdc88ce5fe7", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:16:18.264988Z", - "iopub.status.busy": "2023-11-03T18:16:18.264869Z", - "iopub.status.idle": "2023-11-03T18:16:21.314544Z", - "shell.execute_reply": "2023-11-03T18:16:21.314044Z", - "shell.execute_reply.started": "2023-11-03T18:16:18.264977Z" - }, "tags": [] }, "outputs": [], @@ -159,7 +132,7 @@ "id": "6b4f3571-e725-4ae3-8652-cb462515a6be", "metadata": {}, "source": [ - "python util/efd_sched.py get '2023-10-11 04:30:16'" + "python ../util/efd_sched.py get '2023-10-11 04:30:16'" ] }, { @@ -206,16 +179,9 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "id": "c4439c24-ba6a-4ca0-9406-df668cf1c507", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:16:21.315248Z", - "iopub.status.busy": "2023-11-03T18:16:21.315115Z", - "iopub.status.idle": "2023-11-03T18:16:21.318518Z", - "shell.execute_reply": "2023-11-03T18:16:21.318166Z", - "shell.execute_reply.started": "2023-11-03T18:16:21.315235Z" - }, "tags": [] }, "outputs": [], @@ -240,16 +206,9 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "id": "2bb70e9d-925a-477f-b304-f5195986f124", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:16:21.319755Z", - "iopub.status.busy": "2023-11-03T18:16:21.319517Z", - "iopub.status.idle": "2023-11-03T18:16:21.322952Z", - "shell.execute_reply": "2023-11-03T18:16:21.322614Z", - "shell.execute_reply.started": "2023-11-03T18:16:21.319741Z" - }, "tags": [] }, "outputs": [], @@ -262,16 +221,9 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "id": "62f9d5d0-4dc8-4c4f-b2f5-524458268250", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:16:21.323497Z", - "iopub.status.busy": "2023-11-03T18:16:21.323378Z", - "iopub.status.idle": "2023-11-03T18:16:21.328240Z", - "shell.execute_reply": "2023-11-03T18:16:21.327911Z", - "shell.execute_reply.started": "2023-11-03T18:16:21.323485Z" - }, "tags": [] }, "outputs": [], @@ -303,16 +255,9 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": null, "id": "a24c465e-719c-498e-942f-190dc604946d", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:16:21.328819Z", - "iopub.status.busy": "2023-11-03T18:16:21.328703Z", - "iopub.status.idle": "2023-11-03T18:16:21.414672Z", - "shell.execute_reply": "2023-11-03T18:16:21.414184Z", - "shell.execute_reply.started": "2023-11-03T18:16:21.328807Z" - }, "tags": [] }, "outputs": [], @@ -332,23 +277,16 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": null, "id": "cf7a6c39-a974-472f-92bd-c26f6e48facf", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:16:21.415425Z", - "iopub.status.busy": "2023-11-03T18:16:21.415276Z", - "iopub.status.idle": "2023-11-03T18:16:21.658354Z", - "shell.execute_reply": "2023-11-03T18:16:21.657835Z", - "shell.execute_reply.started": "2023-11-03T18:16:21.415411Z" - }, "tags": [] }, "outputs": [], "source": [ "sky_basis_functions = make_sky_bf_list(band=band, nside=nside)\n", "weights = [1] * len(sky_basis_functions)\n", - "greedy_surveys = [rubin_sim.scheduler.surveys.surveys.GreedySurvey(sky_basis_functions, weights, filtername=band, survey_name=f\"greedy_{band}\")]" + "greedy_surveys = [rubin_scheduler.scheduler.surveys.surveys.GreedySurvey(sky_basis_functions, weights, filtername=band, survey_name=f\"greedy_{band}\")]" ] }, { @@ -361,16 +299,9 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": null, "id": "dce7eaf9-dc00-4a27-8810-5dfc2984b1df", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:16:21.659063Z", - "iopub.status.busy": "2023-11-03T18:16:21.658937Z", - "iopub.status.idle": "2023-11-03T18:16:21.673953Z", - "shell.execute_reply": "2023-11-03T18:16:21.673607Z", - "shell.execute_reply.started": "2023-11-03T18:16:21.659050Z" - }, "tags": [] }, "outputs": [], @@ -388,16 +319,9 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "id": "a9351e92-5106-4209-b3dc-be8312fe4c9b", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:16:21.674538Z", - "iopub.status.busy": "2023-11-03T18:16:21.674424Z", - "iopub.status.idle": "2023-11-03T18:16:21.676346Z", - "shell.execute_reply": "2023-11-03T18:16:21.676018Z", - "shell.execute_reply.started": "2023-11-03T18:16:21.674527Z" - }, "tags": [] }, "outputs": [], @@ -415,30 +339,12 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": null, "id": "a74d2196-eaf5-4177-ae91-3db2a30504b1", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:16:21.676937Z", - "iopub.status.busy": "2023-11-03T18:16:21.676801Z", - "iopub.status.idle": "2023-11-03T18:17:07.197342Z", - "shell.execute_reply": "2023-11-03T18:17:07.196876Z", - "shell.execute_reply.started": "2023-11-03T18:16:21.676926Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "progress = 75.46%Skipped 0 observations\n", - "Flushed 0 observations from queue for being stale\n", - "Completed 397 observations\n", - "ran in 0 min = 0.0 hours\n" - ] - } - ], + "outputs": [], "source": [ "observatory, scheduler, observations, reward_df, obs_rewards = sim_runner(\n", " model_observatory,\n", @@ -460,32 +366,16 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": null, "id": "78a9f360-0aea-4964-8e32-a95d1b56a8ba", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:17:07.198055Z", - "iopub.status.busy": "2023-11-03T18:17:07.197925Z", - "iopub.status.idle": "2023-11-03T18:17:08.218313Z", - "shell.execute_reply": "2023-11-03T18:17:08.217845Z", - "shell.execute_reply.started": "2023-11-03T18:17:07.198042Z" - }, "tags": [] }, - "outputs": [ - { - "data": { - "text/plain": [ - "PosixPath('/sdf/data/rubin/user/neilsen/devel/schedview/tmp/eq_field_survey_v0.p.xz')" - ] - }, - "execution_count": 13, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "output_tuple = (scheduler, conditions)\n", + "if not os.path.isdir('../tmp'):\n", + " os.mkdir('../tmp')\n", "fname = Path('../tmp/eq_field_survey_v0.p.xz').resolve()\n", "with lzma.open(fname, 'wb') as sched_out:\n", " pickle.dump(output_tuple, sched_out)\n", @@ -495,27 +385,12 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": null, "id": "657d3bc7-f77f-4911-b0b8-705437fd5f0c", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:17:08.219030Z", - "iopub.status.busy": "2023-11-03T18:17:08.218902Z", - "iopub.status.idle": "2023-11-03T18:17:08.222049Z", - "shell.execute_reply": "2023-11-03T18:17:08.221699Z", - "shell.execute_reply.started": "2023-11-03T18:17:08.219018Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Conditions calculated for 2025-05-01 03:59:35.041 (mjd 60796.16637779371)\n" - ] - } - ], + "outputs": [], "source": [ "print(f\"Conditions calculated for {Time(conditions.mjd[0], format='mjd').iso} (mjd {conditions.mjd[0]})\")" ] @@ -530,239 +405,12 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": null, "id": "2b17dabd-fb8c-41e5-8306-e5a1314c62a6", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:17:08.223858Z", - "iopub.status.busy": "2023-11-03T18:17:08.223739Z", - "iopub.status.idle": "2023-11-03T18:17:08.610341Z", - "shell.execute_reply": "2023-11-03T18:17:08.609937Z", - "shell.execute_reply.started": "2023-11-03T18:17:08.223847Z" - }, "tags": [] }, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
basis_functionbasis_function_classfeasiblemax_basis_rewardbasis_areabasis_weightmax_accum_rewardaccum_areatier_labelsurvey_labelsurvey_classsurvey_reward
list_indexsurvey_index
01NotTwilightNotTwilightBasisFunctionTrue0.03.3571750.1428570.00000041252.961249tier 0field_15_p0_gFieldSurvey-inf
1MoonAvoidanceMoonAvoidanceBasisFunctionTrue1.03.3571750.1428570.14285741252.961249tier 0field_15_p0_gFieldSurvey-inf
1ZenithShadowMaskZenithShadowMaskBasisFunctionFalse-inf0.0000000.142857-inf0.000000tier 0field_15_p0_gFieldSurvey-inf
1SkybrightnessLimit gSkybrightnessLimitBasisFunctionFalse-inf0.0000000.142857-inf0.000000tier 0field_15_p0_gFieldSurvey-inf
1AvoidDirectWindAvoidDirectWindTrue0.03.3571750.142857-inf0.000000tier 0field_15_p0_gFieldSurvey-inf
1M5Diff gM5DiffBasisFunctionFalse-inf0.0000000.142857-inf0.000000tier 0field_15_p0_gFieldSurvey-inf
1HourAngleLimitHourAngleLimitBasisFunctionFalse-inf3.3571750.142857-inf0.000000tier 0field_15_p0_gFieldSurvey-inf
\n", - "
" - ], - "text/plain": [ - " basis_function \\\n", - "list_index survey_index \n", - "0 1 NotTwilight \n", - " 1 MoonAvoidance \n", - " 1 ZenithShadowMask \n", - " 1 SkybrightnessLimit g \n", - " 1 AvoidDirectWind \n", - " 1 M5Diff g \n", - " 1 HourAngleLimit \n", - "\n", - " basis_function_class feasible \\\n", - "list_index survey_index \n", - "0 1 NotTwilightBasisFunction True \n", - " 1 MoonAvoidanceBasisFunction True \n", - " 1 ZenithShadowMaskBasisFunction False \n", - " 1 SkybrightnessLimitBasisFunction False \n", - " 1 AvoidDirectWind True \n", - " 1 M5DiffBasisFunction False \n", - " 1 HourAngleLimitBasisFunction False \n", - "\n", - " max_basis_reward basis_area basis_weight \\\n", - "list_index survey_index \n", - "0 1 0.0 3.357175 0.142857 \n", - " 1 1.0 3.357175 0.142857 \n", - " 1 -inf 0.000000 0.142857 \n", - " 1 -inf 0.000000 0.142857 \n", - " 1 0.0 3.357175 0.142857 \n", - " 1 -inf 0.000000 0.142857 \n", - " 1 -inf 3.357175 0.142857 \n", - "\n", - " max_accum_reward accum_area tier_label \\\n", - "list_index survey_index \n", - "0 1 0.000000 41252.961249 tier 0 \n", - " 1 0.142857 41252.961249 tier 0 \n", - " 1 -inf 0.000000 tier 0 \n", - " 1 -inf 0.000000 tier 0 \n", - " 1 -inf 0.000000 tier 0 \n", - " 1 -inf 0.000000 tier 0 \n", - " 1 -inf 0.000000 tier 0 \n", - "\n", - " survey_label survey_class survey_reward \n", - "list_index survey_index \n", - "0 1 field_15_p0_g FieldSurvey -inf \n", - " 1 field_15_p0_g FieldSurvey -inf \n", - " 1 field_15_p0_g FieldSurvey -inf \n", - " 1 field_15_p0_g FieldSurvey -inf \n", - " 1 field_15_p0_g FieldSurvey -inf \n", - " 1 field_15_p0_g FieldSurvey -inf \n", - " 1 field_15_p0_g FieldSurvey -inf " - ] - }, - "execution_count": 15, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "scheduler_reward_df = scheduler.make_reward_df(conditions, accum=True)\n", "scheduler_reward_df.loc[(0,1),:]" @@ -778,354 +426,12 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": null, "id": "bc30a69b-7800-40a9-b18c-4e6ae1657f52", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:17:08.611015Z", - "iopub.status.busy": "2023-11-03T18:17:08.610884Z", - "iopub.status.idle": "2023-11-03T18:17:08.644065Z", - "shell.execute_reply": "2023-11-03T18:17:08.643716Z", - "shell.execute_reply.started": "2023-11-03T18:17:08.611003Z" - }, "tags": [] }, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
list_indexsurvey_indexsurvey_name_with_idsurvey_urltierreward
0000: field_0_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
1011: field_15_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
2022: field_30_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
3033: field_45_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
4044: field_60_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
5055: field_75_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
6066: field_90_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0MoonAvoidance, ZenithShadowMask, Skybrightness...
7077: field_105_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
8088: field_120_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
9099: field_135_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
1001010: field_150_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0HourAngleLimit
1101111: field_165_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0HourAngleLimit
1201212: field_180_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 00.467255
1301313: field_195_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 00.480597
1401414: field_210_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 00.482711
1501515: field_225_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 00.474278
1601616: field_240_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0HourAngleLimit
1701717: field_255_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0HourAngleLimit
1801818: field_270_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0SkybrightnessLimit g, M5Diff g, HourAngleLimit
1901919: field_285_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
2002020: field_300_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
2102121: field_315_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
2202222: field_330_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
2302323: field_345_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
\n", - "
" - ], - "text/plain": [ - " list_index survey_index survey_name_with_id \\\n", - "0 0 0 0: field_0_p0_g \n", - "1 0 1 1: field_15_p0_g \n", - "2 0 2 2: field_30_p0_g \n", - "3 0 3 3: field_45_p0_g \n", - "4 0 4 4: field_60_p0_g \n", - "5 0 5 5: field_75_p0_g \n", - "6 0 6 6: field_90_p0_g \n", - "7 0 7 7: field_105_p0_g \n", - "8 0 8 8: field_120_p0_g \n", - "9 0 9 9: field_135_p0_g \n", - "10 0 10 10: field_150_p0_g \n", - "11 0 11 11: field_165_p0_g \n", - "12 0 12 12: field_180_p0_g \n", - "13 0 13 13: field_195_p0_g \n", - "14 0 14 14: field_210_p0_g \n", - "15 0 15 15: field_225_p0_g \n", - "16 0 16 16: field_240_p0_g \n", - "17 0 17 17: field_255_p0_g \n", - "18 0 18 18: field_270_p0_g \n", - "19 0 19 19: field_285_p0_g \n", - "20 0 20 20: field_300_p0_g \n", - "21 0 21 21: field_315_p0_g \n", - "22 0 22 22: field_330_p0_g \n", - "23 0 23 23: field_345_p0_g \n", - "\n", - " survey_url tier \\\n", - "0 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "1 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "2 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "3 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "4 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "5 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "6 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "7 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "8 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "9 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "10 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "11 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "12 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "13 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "14 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "15 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "16 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "17 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "18 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "19 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "20 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "21 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "22 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "23 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "\n", - " reward \n", - "0 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "1 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "2 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "3 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "4 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "5 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "6 MoonAvoidance, ZenithShadowMask, Skybrightness... \n", - "7 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "8 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "9 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "10 HourAngleLimit \n", - "11 HourAngleLimit \n", - "12 0.467255 \n", - "13 0.480597 \n", - "14 0.482711 \n", - "15 0.474278 \n", - "16 HourAngleLimit \n", - "17 HourAngleLimit \n", - "18 SkybrightnessLimit g, M5Diff g, HourAngleLimit \n", - "19 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "20 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "21 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "22 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "23 ZenithShadowMask, SkybrightnessLimit g, M5Diff... " - ] - }, - "execution_count": 16, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "scheduler_summary_df = schedview.compute.make_scheduler_summary_df(scheduler, conditions, scheduler_reward_df)\n", "scheduler_summary_df.query('tier==\"tier 0\"')" @@ -1159,30 +465,12 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": null, "id": "81baec26-7670-4992-8db6-0408d49a2004", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:17:08.644718Z", - "iopub.status.busy": "2023-11-03T18:17:08.644596Z", - "iopub.status.idle": "2023-11-03T18:17:08.661006Z", - "shell.execute_reply": "2023-11-03T18:17:08.660658Z", - "shell.execute_reply.started": "2023-11-03T18:17:08.644706Z" - }, "tags": [] }, - "outputs": [ - { - "data": { - "text/plain": [ - "'2025-05-13 00:00:00.000'" - ] - }, - "execution_count": 17, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "month_mjds = np.arange(int(mjd_start), int(mjd_start)+30)\n", "month_phases = np.array([model_observatory.almanac.get_sun_moon_positions(mjd)['moon_phase'] for mjd in month_mjds])\n", @@ -1200,30 +488,12 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": null, "id": "4e38e507-c9b5-4672-a98d-77ec46666140", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:17:08.661771Z", - "iopub.status.busy": "2023-11-03T18:17:08.661531Z", - "iopub.status.idle": "2023-11-03T18:17:08.671460Z", - "shell.execute_reply": "2023-11-03T18:17:08.671086Z", - "shell.execute_reply.started": "2023-11-03T18:17:08.661758Z" - }, "tags": [] }, - "outputs": [ - { - "data": { - "text/plain": [ - "('2025-05-13 02:06:31.806', 60808.08786812174)" - ] - }, - "execution_count": 18, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "sunset_info = model_observatory.almanac.get_sunset_info(mjd)\n", "sunset, sunrise = sunset_info[3], sunset_info[4]\n", @@ -1238,16 +508,9 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": null, "id": "6e222897-5a42-4cbd-a58b-e28c93cf04c5", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:17:08.672006Z", - "iopub.status.busy": "2023-11-03T18:17:08.671891Z", - "iopub.status.idle": "2023-11-03T18:17:08.673956Z", - "shell.execute_reply": "2023-11-03T18:17:08.673632Z", - "shell.execute_reply.started": "2023-11-03T18:17:08.671996Z" - }, "tags": [] }, "outputs": [], @@ -1265,23 +528,16 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": null, "id": "f842487e-c53d-4c43-a4f3-1a160c682496", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:17:08.674564Z", - "iopub.status.busy": "2023-11-03T18:17:08.674452Z", - "iopub.status.idle": "2023-11-03T18:17:08.677747Z", - "shell.execute_reply": "2023-11-03T18:17:08.677408Z", - "shell.execute_reply.started": "2023-11-03T18:17:08.674553Z" - }, "tags": [] }, "outputs": [], "source": [ "moon_az = model_observatory.almanac.get_sun_moon_positions(time_to_sched.mjd)['moon_az']\n", "wind_az = moon_az - np.pi ;# opposite moon\n", - "wind_data = rubin_sim.site_models.ConstantWindData(wind_speed=18.0, wind_direction=wind_az)\n", + "wind_data = rubin_scheduler.site_models.ConstantWindData(wind_speed=18.0, wind_direction=wind_az)\n", "model_observatory.wind_data = wind_data" ] }, @@ -1295,16 +551,9 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": null, "id": "b3b3707d-1b43-4213-98d6-6f86b01a64d6", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:17:08.678309Z", - "iopub.status.busy": "2023-11-03T18:17:08.678189Z", - "iopub.status.idle": "2023-11-03T18:17:12.477163Z", - "shell.execute_reply": "2023-11-03T18:17:12.476679Z", - "shell.execute_reply.started": "2023-11-03T18:17:08.678298Z" - }, "tags": [] }, "outputs": [], @@ -1314,751 +563,34 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": null, "id": "775f7e96-2a26-46d0-8284-47867ed7feea", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:17:12.477893Z", - "iopub.status.busy": "2023-11-03T18:17:12.477772Z", - "iopub.status.idle": "2023-11-03T18:17:12.927662Z", - "shell.execute_reply": "2023-11-03T18:17:12.927231Z", - "shell.execute_reply.started": "2023-11-03T18:17:12.477881Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/sdf/data/rubin/user/neilsen/devel/rubin_sim/rubin_sim/scheduler/schedulers/core_scheduler.py:547: RuntimeWarning: All-NaN axis encountered\n", - " survey_df[\"survey_reward\"] = np.nanmax(survey.calc_reward_function(conditions))\n", - "/sdf/data/rubin/user/neilsen/devel/rubin_sim/rubin_sim/scheduler/schedulers/core_scheduler.py:547: RuntimeWarning: All-NaN axis encountered\n", - " survey_df[\"survey_reward\"] = np.nanmax(survey.calc_reward_function(conditions))\n", - "/sdf/data/rubin/user/neilsen/devel/rubin_sim/rubin_sim/scheduler/schedulers/core_scheduler.py:547: RuntimeWarning: All-NaN axis encountered\n", - " survey_df[\"survey_reward\"] = np.nanmax(survey.calc_reward_function(conditions))\n", - "/sdf/data/rubin/user/neilsen/devel/rubin_sim/rubin_sim/scheduler/schedulers/core_scheduler.py:547: RuntimeWarning: All-NaN axis encountered\n", - " survey_df[\"survey_reward\"] = np.nanmax(survey.calc_reward_function(conditions))\n", - "/sdf/data/rubin/user/neilsen/devel/rubin_sim/rubin_sim/scheduler/schedulers/core_scheduler.py:547: RuntimeWarning: All-NaN slice encountered\n", - " survey_df[\"survey_reward\"] = np.nanmax(survey.calc_reward_function(conditions))\n" - ] - }, - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
basis_functionbasis_function_classfeasiblemax_basis_rewardbasis_areabasis_weightmax_accum_rewardaccum_areatier_labelsurvey_labelsurvey_classsurvey_reward
list_indexsurvey_index
00NotTwilightNotTwilightBasisFunctionTrue0.0000003.3571750.1428570.00000041252.961249tier 0field_0_p0_gFieldSurvey-inf
0MoonAvoidanceMoonAvoidanceBasisFunctionTrue1.0000003.3571750.1428570.14285741252.961249tier 0field_0_p0_gFieldSurvey-inf
0ZenithShadowMaskZenithShadowMaskBasisFunctionFalse-inf0.0000000.142857-inf0.000000tier 0field_0_p0_gFieldSurvey-inf
0SkybrightnessLimit gSkybrightnessLimitBasisFunctionFalse-inf0.0000000.142857-inf0.000000tier 0field_0_p0_gFieldSurvey-inf
0AvoidDirectWindAvoidDirectWindTrue-52.6448173.3571750.142857-inf0.000000tier 0field_0_p0_gFieldSurvey-inf
..........................................
10MoonAvoidanceMoonAvoidanceBasisFunctionTrue1.00000038483.2922201.0000001.00000038483.292220tier 1greedy_gGreedySurveyNaN
0ZenithShadowMaskZenithShadowMaskBasisFunctionTrue1.00000013334.6974351.0000002.00000010601.957326tier 1greedy_gGreedySurveyNaN
0SkybrightnessLimit gSkybrightnessLimitBasisFunctionTrue1.0000002141.8773831.0000003.0000002141.877383tier 1greedy_gGreedySurveyNaN
0AvoidDirectWindAvoidDirectWindTrue-0.00020124329.4441871.000000-inf0.000000tier 1greedy_gGreedySurveyNaN
0M5Diff gM5DiffBasisFunctionTrue-1.63477312045.5423961.000000-inf0.000000tier 1greedy_gGreedySurveyNaN
\n", - "

174 rows × 12 columns

\n", - "
" - ], - "text/plain": [ - " basis_function \\\n", - "list_index survey_index \n", - "0 0 NotTwilight \n", - " 0 MoonAvoidance \n", - " 0 ZenithShadowMask \n", - " 0 SkybrightnessLimit g \n", - " 0 AvoidDirectWind \n", - "... ... \n", - "1 0 MoonAvoidance \n", - " 0 ZenithShadowMask \n", - " 0 SkybrightnessLimit g \n", - " 0 AvoidDirectWind \n", - " 0 M5Diff g \n", - "\n", - " basis_function_class feasible \\\n", - "list_index survey_index \n", - "0 0 NotTwilightBasisFunction True \n", - " 0 MoonAvoidanceBasisFunction True \n", - " 0 ZenithShadowMaskBasisFunction False \n", - " 0 SkybrightnessLimitBasisFunction False \n", - " 0 AvoidDirectWind True \n", - "... ... ... \n", - "1 0 MoonAvoidanceBasisFunction True \n", - " 0 ZenithShadowMaskBasisFunction True \n", - " 0 SkybrightnessLimitBasisFunction True \n", - " 0 AvoidDirectWind True \n", - " 0 M5DiffBasisFunction True \n", - "\n", - " max_basis_reward basis_area basis_weight \\\n", - "list_index survey_index \n", - "0 0 0.000000 3.357175 0.142857 \n", - " 0 1.000000 3.357175 0.142857 \n", - " 0 -inf 0.000000 0.142857 \n", - " 0 -inf 0.000000 0.142857 \n", - " 0 -52.644817 3.357175 0.142857 \n", - "... ... ... ... \n", - "1 0 1.000000 38483.292220 1.000000 \n", - " 0 1.000000 13334.697435 1.000000 \n", - " 0 1.000000 2141.877383 1.000000 \n", - " 0 -0.000201 24329.444187 1.000000 \n", - " 0 -1.634773 12045.542396 1.000000 \n", - "\n", - " max_accum_reward accum_area tier_label \\\n", - "list_index survey_index \n", - "0 0 0.000000 41252.961249 tier 0 \n", - " 0 0.142857 41252.961249 tier 0 \n", - " 0 -inf 0.000000 tier 0 \n", - " 0 -inf 0.000000 tier 0 \n", - " 0 -inf 0.000000 tier 0 \n", - "... ... ... ... \n", - "1 0 1.000000 38483.292220 tier 1 \n", - " 0 2.000000 10601.957326 tier 1 \n", - " 0 3.000000 2141.877383 tier 1 \n", - " 0 -inf 0.000000 tier 1 \n", - " 0 -inf 0.000000 tier 1 \n", - "\n", - " survey_label survey_class survey_reward \n", - "list_index survey_index \n", - "0 0 field_0_p0_g FieldSurvey -inf \n", - " 0 field_0_p0_g FieldSurvey -inf \n", - " 0 field_0_p0_g FieldSurvey -inf \n", - " 0 field_0_p0_g FieldSurvey -inf \n", - " 0 field_0_p0_g FieldSurvey -inf \n", - "... ... ... ... \n", - "1 0 greedy_g GreedySurvey NaN \n", - " 0 greedy_g GreedySurvey NaN \n", - " 0 greedy_g GreedySurvey NaN \n", - " 0 greedy_g GreedySurvey NaN \n", - " 0 greedy_g GreedySurvey NaN \n", - "\n", - "[174 rows x 12 columns]" - ] - }, - "execution_count": 22, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "scheduler.make_reward_df(conditions, accum=True)" ] }, { "cell_type": "code", - "execution_count": 23, + "execution_count": null, "id": "76205852-dfba-4061-a1f0-d167255ffe3f", "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:17:12.928383Z", - "iopub.status.busy": "2023-11-03T18:17:12.928241Z", - "iopub.status.idle": "2023-11-03T18:17:13.382555Z", - "shell.execute_reply": "2023-11-03T18:17:13.382136Z", - "shell.execute_reply.started": "2023-11-03T18:17:12.928370Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/sdf/data/rubin/user/neilsen/devel/rubin_sim/rubin_sim/scheduler/schedulers/core_scheduler.py:547: RuntimeWarning: All-NaN axis encountered\n", - " survey_df[\"survey_reward\"] = np.nanmax(survey.calc_reward_function(conditions))\n", - "/sdf/data/rubin/user/neilsen/devel/rubin_sim/rubin_sim/scheduler/schedulers/core_scheduler.py:547: RuntimeWarning: All-NaN axis encountered\n", - " survey_df[\"survey_reward\"] = np.nanmax(survey.calc_reward_function(conditions))\n", - "/sdf/data/rubin/user/neilsen/devel/rubin_sim/rubin_sim/scheduler/schedulers/core_scheduler.py:547: RuntimeWarning: All-NaN axis encountered\n", - " survey_df[\"survey_reward\"] = np.nanmax(survey.calc_reward_function(conditions))\n", - "/sdf/data/rubin/user/neilsen/devel/rubin_sim/rubin_sim/scheduler/schedulers/core_scheduler.py:547: RuntimeWarning: All-NaN axis encountered\n", - " survey_df[\"survey_reward\"] = np.nanmax(survey.calc_reward_function(conditions))\n", - "/sdf/data/rubin/user/neilsen/devel/rubin_sim/rubin_sim/scheduler/schedulers/core_scheduler.py:547: RuntimeWarning: All-NaN slice encountered\n", - " survey_df[\"survey_reward\"] = np.nanmax(survey.calc_reward_function(conditions))\n" - ] - }, - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
list_indexsurvey_indexsurvey_name_with_idsurvey_urltierreward
0000: field_0_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
1011: field_15_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
2022: field_30_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, AvoidD...
3033: field_45_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, AvoidD...
4044: field_60_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, AvoidD...
5055: field_75_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, AvoidD...
6066: field_90_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, AvoidD...
7077: field_105_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, AvoidD...
8088: field_120_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, AvoidD...
9099: field_135_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0SkybrightnessLimit g, AvoidDirectWind, HourAng...
1001010: field_150_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0AvoidDirectWind, HourAngleLimit
1101111: field_165_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0AvoidDirectWind
1201212: field_180_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0SkybrightnessLimit g, AvoidDirectWind
1301313: field_195_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0SkybrightnessLimit g
1401414: field_210_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0SkybrightnessLimit g
1501515: field_225_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0MoonAvoidance, SkybrightnessLimit g, HourAngle...
1601616: field_240_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0MoonAvoidance, SkybrightnessLimit g, HourAngle...
1701717: field_255_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0SkybrightnessLimit g, M5Diff g, HourAngleLimit
1801818: field_270_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
1901919: field_285_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
2002020: field_300_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
2102121: field_315_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
2202222: field_330_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
2302323: field_345_p0_ghttps://rubin-sim.lsst.io/api/FieldSurvey.html...tier 0ZenithShadowMask, SkybrightnessLimit g, M5Diff...
24100: greedy_ghttps://rubin-sim.lsst.io/api/GreedySurvey.htm...tier 1-inf
\n", - "
" - ], - "text/plain": [ - " list_index survey_index survey_name_with_id \\\n", - "0 0 0 0: field_0_p0_g \n", - "1 0 1 1: field_15_p0_g \n", - "2 0 2 2: field_30_p0_g \n", - "3 0 3 3: field_45_p0_g \n", - "4 0 4 4: field_60_p0_g \n", - "5 0 5 5: field_75_p0_g \n", - "6 0 6 6: field_90_p0_g \n", - "7 0 7 7: field_105_p0_g \n", - "8 0 8 8: field_120_p0_g \n", - "9 0 9 9: field_135_p0_g \n", - "10 0 10 10: field_150_p0_g \n", - "11 0 11 11: field_165_p0_g \n", - "12 0 12 12: field_180_p0_g \n", - "13 0 13 13: field_195_p0_g \n", - "14 0 14 14: field_210_p0_g \n", - "15 0 15 15: field_225_p0_g \n", - "16 0 16 16: field_240_p0_g \n", - "17 0 17 17: field_255_p0_g \n", - "18 0 18 18: field_270_p0_g \n", - "19 0 19 19: field_285_p0_g \n", - "20 0 20 20: field_300_p0_g \n", - "21 0 21 21: field_315_p0_g \n", - "22 0 22 22: field_330_p0_g \n", - "23 0 23 23: field_345_p0_g \n", - "24 1 0 0: greedy_g \n", - "\n", - " survey_url tier \\\n", - "0 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "1 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "2 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "3 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "4 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "5 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "6 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "7 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "8 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "9 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "10 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "11 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "12 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "13 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "14 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "15 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "16 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "17 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "18 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "19 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "20 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "21 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "22 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "23 https://rubin-sim.lsst.io/api/FieldSurvey.html... tier 0 \n", - "24 https://rubin-sim.lsst.io/api/GreedySurvey.htm... tier 1 \n", - "\n", - " reward \n", - "0 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "1 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "2 ZenithShadowMask, SkybrightnessLimit g, AvoidD... \n", - "3 ZenithShadowMask, SkybrightnessLimit g, AvoidD... \n", - "4 ZenithShadowMask, SkybrightnessLimit g, AvoidD... \n", - "5 ZenithShadowMask, SkybrightnessLimit g, AvoidD... \n", - "6 ZenithShadowMask, SkybrightnessLimit g, AvoidD... \n", - "7 ZenithShadowMask, SkybrightnessLimit g, AvoidD... \n", - "8 ZenithShadowMask, SkybrightnessLimit g, AvoidD... \n", - "9 SkybrightnessLimit g, AvoidDirectWind, HourAng... \n", - "10 AvoidDirectWind, HourAngleLimit \n", - "11 AvoidDirectWind \n", - "12 SkybrightnessLimit g, AvoidDirectWind \n", - "13 SkybrightnessLimit g \n", - "14 SkybrightnessLimit g \n", - "15 MoonAvoidance, SkybrightnessLimit g, HourAngle... \n", - "16 MoonAvoidance, SkybrightnessLimit g, HourAngle... \n", - "17 SkybrightnessLimit g, M5Diff g, HourAngleLimit \n", - "18 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "19 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "20 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "21 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "22 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "23 ZenithShadowMask, SkybrightnessLimit g, M5Diff... \n", - "24 -inf " - ] - }, - "execution_count": 23, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "schedview.compute.make_scheduler_summary_df(scheduler, conditions)" ] }, { "cell_type": "code", - "execution_count": 24, + "execution_count": null, "id": "8896369f-8935-4839-aeec-1153cda52712", - "metadata": { - "execution": { - "iopub.execute_input": "2023-11-03T18:17:13.383284Z", - "iopub.status.busy": "2023-11-03T18:17:13.383155Z", - "iopub.status.idle": "2023-11-03T18:17:14.704012Z", - "shell.execute_reply": "2023-11-03T18:17:14.703588Z", - "shell.execute_reply.started": "2023-11-03T18:17:13.383272Z" - } - }, - "outputs": [ - { - "data": { - "text/plain": [ - "PosixPath('/sdf/data/rubin/user/neilsen/devel/schedview/tmp/eq_field_survey_v0_infeasible1.p.xz')" - ] - }, - "execution_count": 24, - "metadata": {}, - "output_type": "execute_result" - } - ], + "metadata": {}, + "outputs": [], "source": [ "output_tuple = (scheduler, conditions)\n", "fname = Path('../tmp/eq_field_survey_v0_infeasible1.p.xz').resolve()\n", @@ -2087,7 +619,7 @@ { "cell_type": "code", "execution_count": null, - "id": "0993d5ce-3f0a-4827-841d-c90b223ada1b", + "id": "f40f816b-8bbe-4ee7-8f6b-5449ba8e8239", "metadata": {}, "outputs": [], "source": [] @@ -2095,9 +627,9 @@ ], "metadata": { "kernelspec": { - "display_name": "ehn311", + "display_name": "Python 3 (ipykernel)", "language": "python", - "name": "ehn311" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -2109,7 +641,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.5" + "version": "3.11.6" } }, "nbformat": 4, diff --git a/notebooks/prenight.ipynb b/notebooks/prenight.ipynb index af82241b..436d7d72 100644 --- a/notebooks/prenight.ipynb +++ b/notebooks/prenight.ipynb @@ -26,16 +26,9 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "id": "2385888e-2285-4f86-95c7-d616013e1674", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:36:40.916646Z", - "iopub.status.busy": "2023-10-31T21:36:40.916525Z", - "iopub.status.idle": "2023-10-31T21:36:40.930294Z", - "shell.execute_reply": "2023-10-31T21:36:40.929929Z", - "shell.execute_reply.started": "2023-10-31T21:36:40.916633Z" - }, "tags": [] }, "outputs": [], @@ -57,16 +50,9 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "id": "7c2adaf3-7d2c-44cd-8978-036e7b7814b0", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:36:40.931089Z", - "iopub.status.busy": "2023-10-31T21:36:40.930963Z", - "iopub.status.idle": "2023-10-31T21:36:42.207095Z", - "shell.execute_reply": "2023-10-31T21:36:42.206603Z", - "shell.execute_reply.started": "2023-10-31T21:36:40.931075Z" - }, "tags": [] }, "outputs": [], @@ -93,655 +79,12 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "id": "95bf450f-f267-40f6-bf5b-d6d7b755e625", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:36:42.210035Z", - "iopub.status.busy": "2023-10-31T21:36:42.209907Z", - "iopub.status.idle": "2023-10-31T21:36:43.645931Z", - "shell.execute_reply": "2023-10-31T21:36:43.645498Z", - "shell.execute_reply.started": "2023-10-31T21:36:42.210022Z" - }, "tags": [] }, - "outputs": [ - { - "data": { - "application/javascript": [ - "(function(root) {\n", - " function now() {\n", - " return new Date();\n", - " }\n", - "\n", - " var force = true;\n", - " var py_version = '3.3.0'.replace('rc', '-rc.').replace('.dev', '-dev.');\n", - " var is_dev = py_version.indexOf(\"+\") !== -1 || py_version.indexOf(\"-\") !== -1;\n", - " var reloading = false;\n", - " var Bokeh = root.Bokeh;\n", - " var bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n", - "\n", - " if (typeof (root._bokeh_timeout) === \"undefined\" || force) {\n", - " root._bokeh_timeout = Date.now() + 5000;\n", - " root._bokeh_failed_load = false;\n", - " }\n", - "\n", - " function run_callbacks() {\n", - " try {\n", - " root._bokeh_onload_callbacks.forEach(function(callback) {\n", - " if (callback != null)\n", - " callback();\n", - " });\n", - " } finally {\n", - " delete root._bokeh_onload_callbacks;\n", - " }\n", - " console.debug(\"Bokeh: all callbacks have finished\");\n", - " }\n", - "\n", - " function load_libs(css_urls, js_urls, js_modules, js_exports, callback) {\n", - " if (css_urls == null) css_urls = [];\n", - " if (js_urls == null) js_urls = [];\n", - " if (js_modules == null) js_modules = [];\n", - " if (js_exports == null) js_exports = {};\n", - "\n", - " root._bokeh_onload_callbacks.push(callback);\n", - "\n", - " if (root._bokeh_is_loading > 0) {\n", - " console.debug(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n", - " return null;\n", - " }\n", - " if (js_urls.length === 0 && js_modules.length === 0 && Object.keys(js_exports).length === 0) {\n", - " run_callbacks();\n", - " return null;\n", - " }\n", - " if (!reloading) {\n", - " console.debug(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n", - " }\n", - "\n", - " function on_load() {\n", - " root._bokeh_is_loading--;\n", - " if (root._bokeh_is_loading === 0) {\n", - " console.debug(\"Bokeh: all BokehJS libraries/stylesheets loaded\");\n", - " run_callbacks()\n", - " }\n", - " }\n", - " window._bokeh_on_load = on_load\n", - "\n", - " function on_error() {\n", - " console.error(\"failed to load \" + url);\n", - " }\n", - "\n", - " var skip = [];\n", - " if (window.requirejs) {\n", - " window.requirejs.config({'packages': {}, 'paths': {'jspanel': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/jspanel', 'jspanel-modal': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal', 'jspanel-tooltip': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip', 'jspanel-hint': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint', 'jspanel-layout': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout', 'jspanel-contextmenu': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu', 'jspanel-dock': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock', 'gridstack': 'https://cdn.jsdelivr.net/npm/gridstack@7.2.3/dist/gridstack-all', 'notyf': 'https://cdn.jsdelivr.net/npm/notyf@3/notyf.min'}, 'shim': {'jspanel': {'exports': 'jsPanel'}, 'gridstack': {'exports': 'GridStack'}}});\n", - " require([\"jspanel\"], function(jsPanel) {\n", - "\twindow.jsPanel = jsPanel\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel-modal\"], function() {\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel-tooltip\"], function() {\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel-hint\"], function() {\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel-layout\"], function() {\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel-contextmenu\"], function() {\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel-dock\"], function() {\n", - "\ton_load()\n", - " })\n", - " require([\"gridstack\"], function(GridStack) {\n", - "\twindow.GridStack = GridStack\n", - "\ton_load()\n", - " })\n", - " require([\"notyf\"], function() {\n", - "\ton_load()\n", - " })\n", - " root._bokeh_is_loading = css_urls.length + 9;\n", - " } else {\n", - " root._bokeh_is_loading = css_urls.length + js_urls.length + js_modules.length + Object.keys(js_exports).length;\n", - " }\n", - "\n", - " var existing_stylesheets = []\n", - " var links = document.getElementsByTagName('link')\n", - " for (var i = 0; i < links.length; i++) {\n", - " var link = links[i]\n", - " if (link.href != null) {\n", - "\texisting_stylesheets.push(link.href)\n", - " }\n", - " }\n", - " for (var i = 0; i < css_urls.length; i++) {\n", - " var url = css_urls[i];\n", - " if (existing_stylesheets.indexOf(url) !== -1) {\n", - "\ton_load()\n", - "\tcontinue;\n", - " }\n", - " const element = document.createElement(\"link\");\n", - " element.onload = on_load;\n", - " element.onerror = on_error;\n", - " element.rel = \"stylesheet\";\n", - " element.type = \"text/css\";\n", - " element.href = url;\n", - " console.debug(\"Bokeh: injecting link tag for BokehJS stylesheet: \", url);\n", - " document.body.appendChild(element);\n", - " } if (((window['jsPanel'] !== undefined) && (!(window['jsPanel'] instanceof HTMLElement))) || window.requirejs) {\n", - " var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/jspanel.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock.js'];\n", - " for (var i = 0; i < urls.length; i++) {\n", - " skip.push(urls[i])\n", - " }\n", - " } if (((window['GridStack'] !== undefined) && (!(window['GridStack'] instanceof HTMLElement))) || window.requirejs) {\n", - " var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/gridstack/gridstack@7.2.3/dist/gridstack-all.js'];\n", - " for (var i = 0; i < urls.length; i++) {\n", - " skip.push(urls[i])\n", - " }\n", - " } if (((window['Notyf'] !== undefined) && (!(window['Notyf'] instanceof HTMLElement))) || window.requirejs) {\n", - " var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/notificationarea/notyf@3/notyf.min.js'];\n", - " for (var i = 0; i < urls.length; i++) {\n", - " skip.push(urls[i])\n", - " }\n", - " } var existing_scripts = []\n", - " var scripts = document.getElementsByTagName('script')\n", - " for (var i = 0; i < scripts.length; i++) {\n", - " var script = scripts[i]\n", - " if (script.src != null) {\n", - "\texisting_scripts.push(script.src)\n", - " }\n", - " }\n", - " for (var i = 0; i < js_urls.length; i++) {\n", - " var url = js_urls[i];\n", - " if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n", - "\tif (!window.requirejs) {\n", - "\t on_load();\n", - "\t}\n", - "\tcontinue;\n", - " }\n", - " var element = document.createElement('script');\n", - " element.onload = on_load;\n", - " element.onerror = on_error;\n", - " element.async = false;\n", - " element.src = url;\n", - " console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n", - " document.head.appendChild(element);\n", - " }\n", - " for (var i = 0; i < js_modules.length; i++) {\n", - " var url = js_modules[i];\n", - " if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n", - "\tif (!window.requirejs) {\n", - "\t on_load();\n", - "\t}\n", - "\tcontinue;\n", - " }\n", - " var element = document.createElement('script');\n", - " element.onload = on_load;\n", - " element.onerror = on_error;\n", - " element.async = false;\n", - " element.src = url;\n", - " element.type = \"module\";\n", - " console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n", - " document.head.appendChild(element);\n", - " }\n", - " for (const name in js_exports) {\n", - " var url = js_exports[name];\n", - " if (skip.indexOf(url) >= 0 || root[name] != null) {\n", - "\tif (!window.requirejs) {\n", - "\t on_load();\n", - "\t}\n", - "\tcontinue;\n", - " }\n", - " var element = document.createElement('script');\n", - " element.onerror = on_error;\n", - " element.async = false;\n", - " element.type = \"module\";\n", - " console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n", - " element.textContent = `\n", - " import ${name} from \"${url}\"\n", - " window.${name} = ${name}\n", - " window._bokeh_on_load()\n", - " `\n", - " document.head.appendChild(element);\n", - " }\n", - " if (!js_urls.length && !js_modules.length) {\n", - " on_load()\n", - " }\n", - " };\n", - "\n", - " function inject_raw_css(css) {\n", - " const element = document.createElement(\"style\");\n", - " element.appendChild(document.createTextNode(css));\n", - " document.body.appendChild(element);\n", - " }\n", - "\n", - " var js_urls = [\"https://cdn.bokeh.org/bokeh/release/bokeh-3.3.0.min.js\", \"https://cdn.bokeh.org/bokeh/release/bokeh-gl-3.3.0.min.js\", \"https://cdn.bokeh.org/bokeh/release/bokeh-widgets-3.3.0.min.js\", \"https://cdn.bokeh.org/bokeh/release/bokeh-tables-3.3.0.min.js\", \"https://cdn.holoviz.org/panel/1.3.0/dist/panel.min.js\"];\n", - " var js_modules = [];\n", - " var js_exports = {};\n", - " var css_urls = [];\n", - " var inline_js = [ function(Bokeh) {\n", - " Bokeh.set_log_level(\"info\");\n", - " },\n", - "function(Bokeh) {} // ensure no trailing comma for IE\n", - " ];\n", - "\n", - " function run_inline_js() {\n", - " if ((root.Bokeh !== undefined) || (force === true)) {\n", - " for (var i = 0; i < inline_js.length; i++) {\n", - " inline_js[i].call(root, root.Bokeh);\n", - " }\n", - " // Cache old bokeh versions\n", - " if (Bokeh != undefined && !reloading) {\n", - "\tvar NewBokeh = root.Bokeh;\n", - "\tif (Bokeh.versions === undefined) {\n", - "\t Bokeh.versions = new Map();\n", - "\t}\n", - "\tif (NewBokeh.version !== Bokeh.version) {\n", - "\t Bokeh.versions.set(NewBokeh.version, NewBokeh)\n", - "\t}\n", - "\troot.Bokeh = Bokeh;\n", - " }} else if (Date.now() < root._bokeh_timeout) {\n", - " setTimeout(run_inline_js, 100);\n", - " } else if (!root._bokeh_failed_load) {\n", - " console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n", - " root._bokeh_failed_load = true;\n", - " }\n", - " root._bokeh_is_initializing = false\n", - " }\n", - "\n", - " function load_or_wait() {\n", - " // Implement a backoff loop that tries to ensure we do not load multiple\n", - " // versions of Bokeh and its dependencies at the same time.\n", - " // In recent versions we use the root._bokeh_is_initializing flag\n", - " // to determine whether there is an ongoing attempt to initialize\n", - " // bokeh, however for backward compatibility we also try to ensure\n", - " // that we do not start loading a newer (Panel>=1.0 and Bokeh>3) version\n", - " // before older versions are fully initialized.\n", - " if (root._bokeh_is_initializing && Date.now() > root._bokeh_timeout) {\n", - " root._bokeh_is_initializing = false;\n", - " root._bokeh_onload_callbacks = undefined;\n", - " console.log(\"Bokeh: BokehJS was loaded multiple times but one version failed to initialize.\");\n", - " load_or_wait();\n", - " } else if (root._bokeh_is_initializing || (typeof root._bokeh_is_initializing === \"undefined\" && root._bokeh_onload_callbacks !== undefined)) {\n", - " setTimeout(load_or_wait, 100);\n", - " } else {\n", - " Bokeh = root.Bokeh;\n", - " bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n", - " root._bokeh_is_initializing = true\n", - " root._bokeh_onload_callbacks = []\n", - " if (!reloading && (!bokeh_loaded || is_dev)) {\n", - "\troot.Bokeh = undefined;\n", - " }\n", - " load_libs(css_urls, js_urls, js_modules, js_exports, function() {\n", - "\tconsole.debug(\"Bokeh: BokehJS plotting callback run at\", now());\n", - "\trun_inline_js();\n", - " });\n", - " }\n", - " }\n", - " // Give older versions of the autoload script a head-start to ensure\n", - " // they initialize before we start loading newer version.\n", - " setTimeout(load_or_wait, 100)\n", - "}(window));" - ], - "application/vnd.holoviews_load.v0+json": "(function(root) {\n function now() {\n return new Date();\n }\n\n var force = true;\n var py_version = '3.3.0'.replace('rc', '-rc.').replace('.dev', '-dev.');\n var is_dev = py_version.indexOf(\"+\") !== -1 || py_version.indexOf(\"-\") !== -1;\n var reloading = false;\n var Bokeh = root.Bokeh;\n var bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n\n if (typeof (root._bokeh_timeout) === \"undefined\" || force) {\n root._bokeh_timeout = Date.now() + 5000;\n root._bokeh_failed_load = false;\n }\n\n function run_callbacks() {\n try {\n root._bokeh_onload_callbacks.forEach(function(callback) {\n if (callback != null)\n callback();\n });\n } finally {\n delete root._bokeh_onload_callbacks;\n }\n console.debug(\"Bokeh: all callbacks have finished\");\n }\n\n function load_libs(css_urls, js_urls, js_modules, js_exports, callback) {\n if (css_urls == null) css_urls = [];\n if (js_urls == null) js_urls = [];\n if (js_modules == null) js_modules = [];\n if (js_exports == null) js_exports = {};\n\n root._bokeh_onload_callbacks.push(callback);\n\n if (root._bokeh_is_loading > 0) {\n console.debug(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n return null;\n }\n if (js_urls.length === 0 && js_modules.length === 0 && Object.keys(js_exports).length === 0) {\n run_callbacks();\n return null;\n }\n if (!reloading) {\n console.debug(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n }\n\n function on_load() {\n root._bokeh_is_loading--;\n if (root._bokeh_is_loading === 0) {\n console.debug(\"Bokeh: all BokehJS libraries/stylesheets loaded\");\n run_callbacks()\n }\n }\n window._bokeh_on_load = on_load\n\n function on_error() {\n console.error(\"failed to load \" + url);\n }\n\n var skip = [];\n if (window.requirejs) {\n window.requirejs.config({'packages': {}, 'paths': {'jspanel': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/jspanel', 'jspanel-modal': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal', 'jspanel-tooltip': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip', 'jspanel-hint': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint', 'jspanel-layout': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout', 'jspanel-contextmenu': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu', 'jspanel-dock': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock', 'gridstack': 'https://cdn.jsdelivr.net/npm/gridstack@7.2.3/dist/gridstack-all', 'notyf': 'https://cdn.jsdelivr.net/npm/notyf@3/notyf.min'}, 'shim': {'jspanel': {'exports': 'jsPanel'}, 'gridstack': {'exports': 'GridStack'}}});\n require([\"jspanel\"], function(jsPanel) {\n\twindow.jsPanel = jsPanel\n\ton_load()\n })\n require([\"jspanel-modal\"], function() {\n\ton_load()\n })\n require([\"jspanel-tooltip\"], function() {\n\ton_load()\n })\n require([\"jspanel-hint\"], function() {\n\ton_load()\n })\n require([\"jspanel-layout\"], function() {\n\ton_load()\n })\n require([\"jspanel-contextmenu\"], function() {\n\ton_load()\n })\n require([\"jspanel-dock\"], function() {\n\ton_load()\n })\n require([\"gridstack\"], function(GridStack) {\n\twindow.GridStack = GridStack\n\ton_load()\n })\n require([\"notyf\"], function() {\n\ton_load()\n })\n root._bokeh_is_loading = css_urls.length + 9;\n } else {\n root._bokeh_is_loading = css_urls.length + js_urls.length + js_modules.length + Object.keys(js_exports).length;\n }\n\n var existing_stylesheets = []\n var links = document.getElementsByTagName('link')\n for (var i = 0; i < links.length; i++) {\n var link = links[i]\n if (link.href != null) {\n\texisting_stylesheets.push(link.href)\n }\n }\n for (var i = 0; i < css_urls.length; i++) {\n var url = css_urls[i];\n if (existing_stylesheets.indexOf(url) !== -1) {\n\ton_load()\n\tcontinue;\n }\n const element = document.createElement(\"link\");\n element.onload = on_load;\n element.onerror = on_error;\n element.rel = \"stylesheet\";\n element.type = \"text/css\";\n element.href = url;\n console.debug(\"Bokeh: injecting link tag for BokehJS stylesheet: \", url);\n document.body.appendChild(element);\n } if (((window['jsPanel'] !== undefined) && (!(window['jsPanel'] instanceof HTMLElement))) || window.requirejs) {\n var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/jspanel.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock.js'];\n for (var i = 0; i < urls.length; i++) {\n skip.push(urls[i])\n }\n } if (((window['GridStack'] !== undefined) && (!(window['GridStack'] instanceof HTMLElement))) || window.requirejs) {\n var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/gridstack/gridstack@7.2.3/dist/gridstack-all.js'];\n for (var i = 0; i < urls.length; i++) {\n skip.push(urls[i])\n }\n } if (((window['Notyf'] !== undefined) && (!(window['Notyf'] instanceof HTMLElement))) || window.requirejs) {\n var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/notificationarea/notyf@3/notyf.min.js'];\n for (var i = 0; i < urls.length; i++) {\n skip.push(urls[i])\n }\n } var existing_scripts = []\n var scripts = document.getElementsByTagName('script')\n for (var i = 0; i < scripts.length; i++) {\n var script = scripts[i]\n if (script.src != null) {\n\texisting_scripts.push(script.src)\n }\n }\n for (var i = 0; i < js_urls.length; i++) {\n var url = js_urls[i];\n if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n\tif (!window.requirejs) {\n\t on_load();\n\t}\n\tcontinue;\n }\n var element = document.createElement('script');\n element.onload = on_load;\n element.onerror = on_error;\n element.async = false;\n element.src = url;\n console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n document.head.appendChild(element);\n }\n for (var i = 0; i < js_modules.length; i++) {\n var url = js_modules[i];\n if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n\tif (!window.requirejs) {\n\t on_load();\n\t}\n\tcontinue;\n }\n var element = document.createElement('script');\n element.onload = on_load;\n element.onerror = on_error;\n element.async = false;\n element.src = url;\n element.type = \"module\";\n console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n document.head.appendChild(element);\n }\n for (const name in js_exports) {\n var url = js_exports[name];\n if (skip.indexOf(url) >= 0 || root[name] != null) {\n\tif (!window.requirejs) {\n\t on_load();\n\t}\n\tcontinue;\n }\n var element = document.createElement('script');\n element.onerror = on_error;\n element.async = false;\n element.type = \"module\";\n console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n element.textContent = `\n import ${name} from \"${url}\"\n window.${name} = ${name}\n window._bokeh_on_load()\n `\n document.head.appendChild(element);\n }\n if (!js_urls.length && !js_modules.length) {\n on_load()\n }\n };\n\n function inject_raw_css(css) {\n const element = document.createElement(\"style\");\n element.appendChild(document.createTextNode(css));\n document.body.appendChild(element);\n }\n\n var js_urls = [\"https://cdn.bokeh.org/bokeh/release/bokeh-3.3.0.min.js\", \"https://cdn.bokeh.org/bokeh/release/bokeh-gl-3.3.0.min.js\", \"https://cdn.bokeh.org/bokeh/release/bokeh-widgets-3.3.0.min.js\", \"https://cdn.bokeh.org/bokeh/release/bokeh-tables-3.3.0.min.js\", \"https://cdn.holoviz.org/panel/1.3.0/dist/panel.min.js\"];\n var js_modules = [];\n var js_exports = {};\n var css_urls = [];\n var inline_js = [ function(Bokeh) {\n Bokeh.set_log_level(\"info\");\n },\nfunction(Bokeh) {} // ensure no trailing comma for IE\n ];\n\n function run_inline_js() {\n if ((root.Bokeh !== undefined) || (force === true)) {\n for (var i = 0; i < inline_js.length; i++) {\n inline_js[i].call(root, root.Bokeh);\n }\n // Cache old bokeh versions\n if (Bokeh != undefined && !reloading) {\n\tvar NewBokeh = root.Bokeh;\n\tif (Bokeh.versions === undefined) {\n\t Bokeh.versions = new Map();\n\t}\n\tif (NewBokeh.version !== Bokeh.version) {\n\t Bokeh.versions.set(NewBokeh.version, NewBokeh)\n\t}\n\troot.Bokeh = Bokeh;\n }} else if (Date.now() < root._bokeh_timeout) {\n setTimeout(run_inline_js, 100);\n } else if (!root._bokeh_failed_load) {\n console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n root._bokeh_failed_load = true;\n }\n root._bokeh_is_initializing = false\n }\n\n function load_or_wait() {\n // Implement a backoff loop that tries to ensure we do not load multiple\n // versions of Bokeh and its dependencies at the same time.\n // In recent versions we use the root._bokeh_is_initializing flag\n // to determine whether there is an ongoing attempt to initialize\n // bokeh, however for backward compatibility we also try to ensure\n // that we do not start loading a newer (Panel>=1.0 and Bokeh>3) version\n // before older versions are fully initialized.\n if (root._bokeh_is_initializing && Date.now() > root._bokeh_timeout) {\n root._bokeh_is_initializing = false;\n root._bokeh_onload_callbacks = undefined;\n console.log(\"Bokeh: BokehJS was loaded multiple times but one version failed to initialize.\");\n load_or_wait();\n } else if (root._bokeh_is_initializing || (typeof root._bokeh_is_initializing === \"undefined\" && root._bokeh_onload_callbacks !== undefined)) {\n setTimeout(load_or_wait, 100);\n } else {\n Bokeh = root.Bokeh;\n bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n root._bokeh_is_initializing = true\n root._bokeh_onload_callbacks = []\n if (!reloading && (!bokeh_loaded || is_dev)) {\n\troot.Bokeh = undefined;\n }\n load_libs(css_urls, js_urls, js_modules, js_exports, function() {\n\tconsole.debug(\"Bokeh: BokehJS plotting callback run at\", now());\n\trun_inline_js();\n });\n }\n }\n // Give older versions of the autoload script a head-start to ensure\n // they initialize before we start loading newer version.\n setTimeout(load_or_wait, 100)\n}(window));" - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "application/javascript": [ - "\n", - "if ((window.PyViz === undefined) || (window.PyViz instanceof HTMLElement)) {\n", - " window.PyViz = {comms: {}, comm_status:{}, kernels:{}, receivers: {}, plot_index: []}\n", - "}\n", - "\n", - "\n", - " function JupyterCommManager() {\n", - " }\n", - "\n", - " JupyterCommManager.prototype.register_target = function(plot_id, comm_id, msg_handler) {\n", - " if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n", - " var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n", - " comm_manager.register_target(comm_id, function(comm) {\n", - " comm.on_msg(msg_handler);\n", - " });\n", - " } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n", - " window.PyViz.kernels[plot_id].registerCommTarget(comm_id, function(comm) {\n", - " comm.onMsg = msg_handler;\n", - " });\n", - " } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n", - " google.colab.kernel.comms.registerTarget(comm_id, (comm) => {\n", - " var messages = comm.messages[Symbol.asyncIterator]();\n", - " function processIteratorResult(result) {\n", - " var message = result.value;\n", - " console.log(message)\n", - " var content = {data: message.data, comm_id};\n", - " var buffers = []\n", - " for (var buffer of message.buffers || []) {\n", - " buffers.push(new DataView(buffer))\n", - " }\n", - " var metadata = message.metadata || {};\n", - " var msg = {content, buffers, metadata}\n", - " msg_handler(msg);\n", - " return messages.next().then(processIteratorResult);\n", - " }\n", - " return messages.next().then(processIteratorResult);\n", - " })\n", - " }\n", - " }\n", - "\n", - " JupyterCommManager.prototype.get_client_comm = function(plot_id, comm_id, msg_handler) {\n", - " if (comm_id in window.PyViz.comms) {\n", - " return window.PyViz.comms[comm_id];\n", - " } else if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n", - " var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n", - " var comm = comm_manager.new_comm(comm_id, {}, {}, {}, comm_id);\n", - " if (msg_handler) {\n", - " comm.on_msg(msg_handler);\n", - " }\n", - " } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n", - " var comm = window.PyViz.kernels[plot_id].connectToComm(comm_id);\n", - " comm.open();\n", - " if (msg_handler) {\n", - " comm.onMsg = msg_handler;\n", - " }\n", - " } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n", - " var comm_promise = google.colab.kernel.comms.open(comm_id)\n", - " comm_promise.then((comm) => {\n", - " window.PyViz.comms[comm_id] = comm;\n", - " if (msg_handler) {\n", - " var messages = comm.messages[Symbol.asyncIterator]();\n", - " function processIteratorResult(result) {\n", - " var message = result.value;\n", - " var content = {data: message.data};\n", - " var metadata = message.metadata || {comm_id};\n", - " var msg = {content, metadata}\n", - " msg_handler(msg);\n", - " return messages.next().then(processIteratorResult);\n", - " }\n", - " return messages.next().then(processIteratorResult);\n", - " }\n", - " }) \n", - " var sendClosure = (data, metadata, buffers, disposeOnDone) => {\n", - " return comm_promise.then((comm) => {\n", - " comm.send(data, metadata, buffers, disposeOnDone);\n", - " });\n", - " };\n", - " var comm = {\n", - " send: sendClosure\n", - " };\n", - " }\n", - " window.PyViz.comms[comm_id] = comm;\n", - " return comm;\n", - " }\n", - " window.PyViz.comm_manager = new JupyterCommManager();\n", - " \n", - "\n", - "\n", - "var JS_MIME_TYPE = 'application/javascript';\n", - "var HTML_MIME_TYPE = 'text/html';\n", - "var EXEC_MIME_TYPE = 'application/vnd.holoviews_exec.v0+json';\n", - "var CLASS_NAME = 'output';\n", - "\n", - "/**\n", - " * Render data to the DOM node\n", - " */\n", - "function render(props, node) {\n", - " var div = document.createElement(\"div\");\n", - " var script = document.createElement(\"script\");\n", - " node.appendChild(div);\n", - " node.appendChild(script);\n", - "}\n", - "\n", - "/**\n", - " * Handle when a new output is added\n", - " */\n", - "function handle_add_output(event, handle) {\n", - " var output_area = handle.output_area;\n", - " var output = handle.output;\n", - " if ((output.data == undefined) || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {\n", - " return\n", - " }\n", - " var id = output.metadata[EXEC_MIME_TYPE][\"id\"];\n", - " var toinsert = output_area.element.find(\".\" + CLASS_NAME.split(' ')[0]);\n", - " if (id !== undefined) {\n", - " var nchildren = toinsert.length;\n", - " var html_node = toinsert[nchildren-1].children[0];\n", - " html_node.innerHTML = output.data[HTML_MIME_TYPE];\n", - " var scripts = [];\n", - " var nodelist = html_node.querySelectorAll(\"script\");\n", - " for (var i in nodelist) {\n", - " if (nodelist.hasOwnProperty(i)) {\n", - " scripts.push(nodelist[i])\n", - " }\n", - " }\n", - "\n", - " scripts.forEach( function (oldScript) {\n", - " var newScript = document.createElement(\"script\");\n", - " var attrs = [];\n", - " var nodemap = oldScript.attributes;\n", - " for (var j in nodemap) {\n", - " if (nodemap.hasOwnProperty(j)) {\n", - " attrs.push(nodemap[j])\n", - " }\n", - " }\n", - " attrs.forEach(function(attr) { newScript.setAttribute(attr.name, attr.value) });\n", - " newScript.appendChild(document.createTextNode(oldScript.innerHTML));\n", - " oldScript.parentNode.replaceChild(newScript, oldScript);\n", - " });\n", - " if (JS_MIME_TYPE in output.data) {\n", - " toinsert[nchildren-1].children[1].textContent = output.data[JS_MIME_TYPE];\n", - " }\n", - " output_area._hv_plot_id = id;\n", - " if ((window.Bokeh !== undefined) && (id in Bokeh.index)) {\n", - " window.PyViz.plot_index[id] = Bokeh.index[id];\n", - " } else {\n", - " window.PyViz.plot_index[id] = null;\n", - " }\n", - " } else if (output.metadata[EXEC_MIME_TYPE][\"server_id\"] !== undefined) {\n", - " var bk_div = document.createElement(\"div\");\n", - " bk_div.innerHTML = output.data[HTML_MIME_TYPE];\n", - " var script_attrs = bk_div.children[0].attributes;\n", - " for (var i = 0; i < script_attrs.length; i++) {\n", - " toinsert[toinsert.length - 1].childNodes[1].setAttribute(script_attrs[i].name, script_attrs[i].value);\n", - " }\n", - " // store reference to server id on output_area\n", - " output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE][\"server_id\"];\n", - " }\n", - "}\n", - "\n", - "/**\n", - " * Handle when an output is cleared or removed\n", - " */\n", - "function handle_clear_output(event, handle) {\n", - " var id = handle.cell.output_area._hv_plot_id;\n", - " var server_id = handle.cell.output_area._bokeh_server_id;\n", - " if (((id === undefined) || !(id in PyViz.plot_index)) && (server_id !== undefined)) { return; }\n", - " var comm = window.PyViz.comm_manager.get_client_comm(\"hv-extension-comm\", \"hv-extension-comm\", function () {});\n", - " if (server_id !== null) {\n", - " comm.send({event_type: 'server_delete', 'id': server_id});\n", - " return;\n", - " } else if (comm !== null) {\n", - " comm.send({event_type: 'delete', 'id': id});\n", - " }\n", - " delete PyViz.plot_index[id];\n", - " if ((window.Bokeh !== undefined) & (id in window.Bokeh.index)) {\n", - " var doc = window.Bokeh.index[id].model.document\n", - " doc.clear();\n", - " const i = window.Bokeh.documents.indexOf(doc);\n", - " if (i > -1) {\n", - " window.Bokeh.documents.splice(i, 1);\n", - " }\n", - " }\n", - "}\n", - "\n", - "/**\n", - " * Handle kernel restart event\n", - " */\n", - "function handle_kernel_cleanup(event, handle) {\n", - " delete PyViz.comms[\"hv-extension-comm\"];\n", - " window.PyViz.plot_index = {}\n", - "}\n", - "\n", - "/**\n", - " * Handle update_display_data messages\n", - " */\n", - "function handle_update_output(event, handle) {\n", - " handle_clear_output(event, {cell: {output_area: handle.output_area}})\n", - " handle_add_output(event, handle)\n", - "}\n", - "\n", - "function register_renderer(events, OutputArea) {\n", - " function append_mime(data, metadata, element) {\n", - " // create a DOM node to render to\n", - " var toinsert = this.create_output_subarea(\n", - " metadata,\n", - " CLASS_NAME,\n", - " EXEC_MIME_TYPE\n", - " );\n", - " this.keyboard_manager.register_events(toinsert);\n", - " // Render to node\n", - " var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};\n", - " render(props, toinsert[0]);\n", - " element.append(toinsert);\n", - " return toinsert\n", - " }\n", - "\n", - " events.on('output_added.OutputArea', handle_add_output);\n", - " events.on('output_updated.OutputArea', handle_update_output);\n", - " events.on('clear_output.CodeCell', handle_clear_output);\n", - " events.on('delete.Cell', handle_clear_output);\n", - " events.on('kernel_ready.Kernel', handle_kernel_cleanup);\n", - "\n", - " OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {\n", - " safe: true,\n", - " index: 0\n", - " });\n", - "}\n", - "\n", - "if (window.Jupyter !== undefined) {\n", - " try {\n", - " var events = require('base/js/events');\n", - " var OutputArea = require('notebook/js/outputarea').OutputArea;\n", - " if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {\n", - " register_renderer(events, OutputArea);\n", - " }\n", - " } catch(err) {\n", - " }\n", - "}\n" - ], - "application/vnd.holoviews_load.v0+json": "\nif ((window.PyViz === undefined) || (window.PyViz instanceof HTMLElement)) {\n window.PyViz = {comms: {}, comm_status:{}, kernels:{}, receivers: {}, plot_index: []}\n}\n\n\n function JupyterCommManager() {\n }\n\n JupyterCommManager.prototype.register_target = function(plot_id, comm_id, msg_handler) {\n if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n comm_manager.register_target(comm_id, function(comm) {\n comm.on_msg(msg_handler);\n });\n } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n window.PyViz.kernels[plot_id].registerCommTarget(comm_id, function(comm) {\n comm.onMsg = msg_handler;\n });\n } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n google.colab.kernel.comms.registerTarget(comm_id, (comm) => {\n var messages = comm.messages[Symbol.asyncIterator]();\n function processIteratorResult(result) {\n var message = result.value;\n console.log(message)\n var content = {data: message.data, comm_id};\n var buffers = []\n for (var buffer of message.buffers || []) {\n buffers.push(new DataView(buffer))\n }\n var metadata = message.metadata || {};\n var msg = {content, buffers, metadata}\n msg_handler(msg);\n return messages.next().then(processIteratorResult);\n }\n return messages.next().then(processIteratorResult);\n })\n }\n }\n\n JupyterCommManager.prototype.get_client_comm = function(plot_id, comm_id, msg_handler) {\n if (comm_id in window.PyViz.comms) {\n return window.PyViz.comms[comm_id];\n } else if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n var comm = comm_manager.new_comm(comm_id, {}, {}, {}, comm_id);\n if (msg_handler) {\n comm.on_msg(msg_handler);\n }\n } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n var comm = window.PyViz.kernels[plot_id].connectToComm(comm_id);\n comm.open();\n if (msg_handler) {\n comm.onMsg = msg_handler;\n }\n } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n var comm_promise = google.colab.kernel.comms.open(comm_id)\n comm_promise.then((comm) => {\n window.PyViz.comms[comm_id] = comm;\n if (msg_handler) {\n var messages = comm.messages[Symbol.asyncIterator]();\n function processIteratorResult(result) {\n var message = result.value;\n var content = {data: message.data};\n var metadata = message.metadata || {comm_id};\n var msg = {content, metadata}\n msg_handler(msg);\n return messages.next().then(processIteratorResult);\n }\n return messages.next().then(processIteratorResult);\n }\n }) \n var sendClosure = (data, metadata, buffers, disposeOnDone) => {\n return comm_promise.then((comm) => {\n comm.send(data, metadata, buffers, disposeOnDone);\n });\n };\n var comm = {\n send: sendClosure\n };\n }\n window.PyViz.comms[comm_id] = comm;\n return comm;\n }\n window.PyViz.comm_manager = new JupyterCommManager();\n \n\n\nvar JS_MIME_TYPE = 'application/javascript';\nvar HTML_MIME_TYPE = 'text/html';\nvar EXEC_MIME_TYPE = 'application/vnd.holoviews_exec.v0+json';\nvar CLASS_NAME = 'output';\n\n/**\n * Render data to the DOM node\n */\nfunction render(props, node) {\n var div = document.createElement(\"div\");\n var script = document.createElement(\"script\");\n node.appendChild(div);\n node.appendChild(script);\n}\n\n/**\n * Handle when a new output is added\n */\nfunction handle_add_output(event, handle) {\n var output_area = handle.output_area;\n var output = handle.output;\n if ((output.data == undefined) || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {\n return\n }\n var id = output.metadata[EXEC_MIME_TYPE][\"id\"];\n var toinsert = output_area.element.find(\".\" + CLASS_NAME.split(' ')[0]);\n if (id !== undefined) {\n var nchildren = toinsert.length;\n var html_node = toinsert[nchildren-1].children[0];\n html_node.innerHTML = output.data[HTML_MIME_TYPE];\n var scripts = [];\n var nodelist = html_node.querySelectorAll(\"script\");\n for (var i in nodelist) {\n if (nodelist.hasOwnProperty(i)) {\n scripts.push(nodelist[i])\n }\n }\n\n scripts.forEach( function (oldScript) {\n var newScript = document.createElement(\"script\");\n var attrs = [];\n var nodemap = oldScript.attributes;\n for (var j in nodemap) {\n if (nodemap.hasOwnProperty(j)) {\n attrs.push(nodemap[j])\n }\n }\n attrs.forEach(function(attr) { newScript.setAttribute(attr.name, attr.value) });\n newScript.appendChild(document.createTextNode(oldScript.innerHTML));\n oldScript.parentNode.replaceChild(newScript, oldScript);\n });\n if (JS_MIME_TYPE in output.data) {\n toinsert[nchildren-1].children[1].textContent = output.data[JS_MIME_TYPE];\n }\n output_area._hv_plot_id = id;\n if ((window.Bokeh !== undefined) && (id in Bokeh.index)) {\n window.PyViz.plot_index[id] = Bokeh.index[id];\n } else {\n window.PyViz.plot_index[id] = null;\n }\n } else if (output.metadata[EXEC_MIME_TYPE][\"server_id\"] !== undefined) {\n var bk_div = document.createElement(\"div\");\n bk_div.innerHTML = output.data[HTML_MIME_TYPE];\n var script_attrs = bk_div.children[0].attributes;\n for (var i = 0; i < script_attrs.length; i++) {\n toinsert[toinsert.length - 1].childNodes[1].setAttribute(script_attrs[i].name, script_attrs[i].value);\n }\n // store reference to server id on output_area\n output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE][\"server_id\"];\n }\n}\n\n/**\n * Handle when an output is cleared or removed\n */\nfunction handle_clear_output(event, handle) {\n var id = handle.cell.output_area._hv_plot_id;\n var server_id = handle.cell.output_area._bokeh_server_id;\n if (((id === undefined) || !(id in PyViz.plot_index)) && (server_id !== undefined)) { return; }\n var comm = window.PyViz.comm_manager.get_client_comm(\"hv-extension-comm\", \"hv-extension-comm\", function () {});\n if (server_id !== null) {\n comm.send({event_type: 'server_delete', 'id': server_id});\n return;\n } else if (comm !== null) {\n comm.send({event_type: 'delete', 'id': id});\n }\n delete PyViz.plot_index[id];\n if ((window.Bokeh !== undefined) & (id in window.Bokeh.index)) {\n var doc = window.Bokeh.index[id].model.document\n doc.clear();\n const i = window.Bokeh.documents.indexOf(doc);\n if (i > -1) {\n window.Bokeh.documents.splice(i, 1);\n }\n }\n}\n\n/**\n * Handle kernel restart event\n */\nfunction handle_kernel_cleanup(event, handle) {\n delete PyViz.comms[\"hv-extension-comm\"];\n window.PyViz.plot_index = {}\n}\n\n/**\n * Handle update_display_data messages\n */\nfunction handle_update_output(event, handle) {\n handle_clear_output(event, {cell: {output_area: handle.output_area}})\n handle_add_output(event, handle)\n}\n\nfunction register_renderer(events, OutputArea) {\n function append_mime(data, metadata, element) {\n // create a DOM node to render to\n var toinsert = this.create_output_subarea(\n metadata,\n CLASS_NAME,\n EXEC_MIME_TYPE\n );\n this.keyboard_manager.register_events(toinsert);\n // Render to node\n var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};\n render(props, toinsert[0]);\n element.append(toinsert);\n return toinsert\n }\n\n events.on('output_added.OutputArea', handle_add_output);\n events.on('output_updated.OutputArea', handle_update_output);\n events.on('clear_output.CodeCell', handle_clear_output);\n events.on('delete.Cell', handle_clear_output);\n events.on('kernel_ready.Kernel', handle_kernel_cleanup);\n\n OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {\n safe: true,\n index: 0\n });\n}\n\nif (window.Jupyter !== undefined) {\n try {\n var events = require('base/js/events');\n var OutputArea = require('notebook/js/outputarea').OutputArea;\n if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {\n register_renderer(events, OutputArea);\n }\n } catch(err) {\n }\n}\n" - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "application/vnd.holoviews_exec.v0+json": "", - "text/html": [ - "
\n", - "
\n", - "
\n", - "" - ] - }, - "metadata": { - "application/vnd.holoviews_exec.v0+json": { - "id": "p1002" - } - }, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "from astropy.time import Time, TimeDelta\n", "from zoneinfo import ZoneInfo\n", @@ -752,697 +95,27 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "id": "4a8c3442-8881-4c9e-b341-54fa699c7e14", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:36:43.646658Z", - "iopub.status.busy": "2023-10-31T21:36:43.646521Z", - "iopub.status.idle": "2023-10-31T21:36:44.270742Z", - "shell.execute_reply": "2023-10-31T21:36:44.270316Z", - "shell.execute_reply.started": "2023-10-31T21:36:43.646644Z" - }, "tags": [] }, "outputs": [], "source": [ - "from rubin_sim.scheduler.example import example_scheduler\n", - "from rubin_sim.scheduler import sim_runner\n", - "from rubin_sim.scheduler.model_observatory import ModelObservatory\n", - "from rubin_sim.scheduler.utils import SchemaConverter" + "from rubin_scheduler.scheduler.example import example_scheduler\n", + "from rubin_scheduler.scheduler import sim_runner\n", + "from rubin_scheduler.scheduler.model_observatory import ModelObservatory\n", + "from rubin_scheduler.scheduler.utils import SchemaConverter" ] }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "id": "c86fdcf4-e7cb-4636-bee8-cb07f3a4374c", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:36:44.271548Z", - "iopub.status.busy": "2023-10-31T21:36:44.271333Z", - "iopub.status.idle": "2023-10-31T21:36:46.999328Z", - "shell.execute_reply": "2023-10-31T21:36:46.998910Z", - "shell.execute_reply.started": "2023-10-31T21:36:44.271533Z" - }, "tags": [] }, - "outputs": [ - { - "data": { - "application/javascript": [ - "(function(root) {\n", - " function now() {\n", - " return new Date();\n", - " }\n", - "\n", - " var force = true;\n", - " var py_version = '3.3.0'.replace('rc', '-rc.').replace('.dev', '-dev.');\n", - " var is_dev = py_version.indexOf(\"+\") !== -1 || py_version.indexOf(\"-\") !== -1;\n", - " var reloading = true;\n", - " var Bokeh = root.Bokeh;\n", - " var bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n", - "\n", - " if (typeof (root._bokeh_timeout) === \"undefined\" || force) {\n", - " root._bokeh_timeout = Date.now() + 5000;\n", - " root._bokeh_failed_load = false;\n", - " }\n", - "\n", - " function run_callbacks() {\n", - " try {\n", - " root._bokeh_onload_callbacks.forEach(function(callback) {\n", - " if (callback != null)\n", - " callback();\n", - " });\n", - " } finally {\n", - " delete root._bokeh_onload_callbacks;\n", - " }\n", - " console.debug(\"Bokeh: all callbacks have finished\");\n", - " }\n", - "\n", - " function load_libs(css_urls, js_urls, js_modules, js_exports, callback) {\n", - " if (css_urls == null) css_urls = [];\n", - " if (js_urls == null) js_urls = [];\n", - " if (js_modules == null) js_modules = [];\n", - " if (js_exports == null) js_exports = {};\n", - "\n", - " root._bokeh_onload_callbacks.push(callback);\n", - "\n", - " if (root._bokeh_is_loading > 0) {\n", - " console.debug(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n", - " return null;\n", - " }\n", - " if (js_urls.length === 0 && js_modules.length === 0 && Object.keys(js_exports).length === 0) {\n", - " run_callbacks();\n", - " return null;\n", - " }\n", - " if (!reloading) {\n", - " console.debug(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n", - " }\n", - "\n", - " function on_load() {\n", - " root._bokeh_is_loading--;\n", - " if (root._bokeh_is_loading === 0) {\n", - " console.debug(\"Bokeh: all BokehJS libraries/stylesheets loaded\");\n", - " run_callbacks()\n", - " }\n", - " }\n", - " window._bokeh_on_load = on_load\n", - "\n", - " function on_error() {\n", - " console.error(\"failed to load \" + url);\n", - " }\n", - "\n", - " var skip = [];\n", - " if (window.requirejs) {\n", - " window.requirejs.config({'packages': {}, 'paths': {'tabulator': 'https://cdn.jsdelivr.net/npm/tabulator-tables@5.5.0/dist/js/tabulator', 'moment': 'https://cdn.jsdelivr.net/npm/luxon/build/global/luxon.min', 'jspanel': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/jspanel', 'jspanel-modal': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal', 'jspanel-tooltip': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip', 'jspanel-hint': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint', 'jspanel-layout': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout', 'jspanel-contextmenu': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu', 'jspanel-dock': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock', 'gridstack': 'https://cdn.jsdelivr.net/npm/gridstack@7.2.3/dist/gridstack-all', 'notyf': 'https://cdn.jsdelivr.net/npm/notyf@3/notyf.min'}, 'shim': {'jspanel': {'exports': 'jsPanel'}, 'gridstack': {'exports': 'GridStack'}}});\n", - " require([\"tabulator\"], function(Tabulator) {\n", - "\twindow.Tabulator = Tabulator\n", - "\ton_load()\n", - " })\n", - " require([\"moment\"], function(moment) {\n", - "\twindow.moment = moment\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel\"], function(jsPanel) {\n", - "\twindow.jsPanel = jsPanel\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel-modal\"], function() {\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel-tooltip\"], function() {\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel-hint\"], function() {\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel-layout\"], function() {\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel-contextmenu\"], function() {\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel-dock\"], function() {\n", - "\ton_load()\n", - " })\n", - " require([\"gridstack\"], function(GridStack) {\n", - "\twindow.GridStack = GridStack\n", - "\ton_load()\n", - " })\n", - " require([\"notyf\"], function() {\n", - "\ton_load()\n", - " })\n", - " root._bokeh_is_loading = css_urls.length + 11;\n", - " } else {\n", - " root._bokeh_is_loading = css_urls.length + js_urls.length + js_modules.length + Object.keys(js_exports).length;\n", - " }\n", - "\n", - " var existing_stylesheets = []\n", - " var links = document.getElementsByTagName('link')\n", - " for (var i = 0; i < links.length; i++) {\n", - " var link = links[i]\n", - " if (link.href != null) {\n", - "\texisting_stylesheets.push(link.href)\n", - " }\n", - " }\n", - " for (var i = 0; i < css_urls.length; i++) {\n", - " var url = css_urls[i];\n", - " if (existing_stylesheets.indexOf(url) !== -1) {\n", - "\ton_load()\n", - "\tcontinue;\n", - " }\n", - " const element = document.createElement(\"link\");\n", - " element.onload = on_load;\n", - " element.onerror = on_error;\n", - " element.rel = \"stylesheet\";\n", - " element.type = \"text/css\";\n", - " element.href = url;\n", - " console.debug(\"Bokeh: injecting link tag for BokehJS stylesheet: \", url);\n", - " document.body.appendChild(element);\n", - " } if (((window['Tabulator'] !== undefined) && (!(window['Tabulator'] instanceof HTMLElement))) || window.requirejs) {\n", - " var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/tabulator-tables@5.5.0/dist/js/tabulator.js'];\n", - " for (var i = 0; i < urls.length; i++) {\n", - " skip.push(urls[i])\n", - " }\n", - " } if (((window['moment'] !== undefined) && (!(window['moment'] instanceof HTMLElement))) || window.requirejs) {\n", - " var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/luxon/build/global/luxon.min.js'];\n", - " for (var i = 0; i < urls.length; i++) {\n", - " skip.push(urls[i])\n", - " }\n", - " } if (((window['jsPanel'] !== undefined) && (!(window['jsPanel'] instanceof HTMLElement))) || window.requirejs) {\n", - " var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/jspanel.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock.js'];\n", - " for (var i = 0; i < urls.length; i++) {\n", - " skip.push(urls[i])\n", - " }\n", - " } if (((window['GridStack'] !== undefined) && (!(window['GridStack'] instanceof HTMLElement))) || window.requirejs) {\n", - " var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/gridstack/gridstack@7.2.3/dist/gridstack-all.js'];\n", - " for (var i = 0; i < urls.length; i++) {\n", - " skip.push(urls[i])\n", - " }\n", - " } if (((window['Notyf'] !== undefined) && (!(window['Notyf'] instanceof HTMLElement))) || window.requirejs) {\n", - " var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/notificationarea/notyf@3/notyf.min.js'];\n", - " for (var i = 0; i < urls.length; i++) {\n", - " skip.push(urls[i])\n", - " }\n", - " } var existing_scripts = []\n", - " var scripts = document.getElementsByTagName('script')\n", - " for (var i = 0; i < scripts.length; i++) {\n", - " var script = scripts[i]\n", - " if (script.src != null) {\n", - "\texisting_scripts.push(script.src)\n", - " }\n", - " }\n", - " for (var i = 0; i < js_urls.length; i++) {\n", - " var url = js_urls[i];\n", - " if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n", - "\tif (!window.requirejs) {\n", - "\t on_load();\n", - "\t}\n", - "\tcontinue;\n", - " }\n", - " var element = document.createElement('script');\n", - " element.onload = on_load;\n", - " element.onerror = on_error;\n", - " element.async = false;\n", - " element.src = url;\n", - " console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n", - " document.head.appendChild(element);\n", - " }\n", - " for (var i = 0; i < js_modules.length; i++) {\n", - " var url = js_modules[i];\n", - " if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n", - "\tif (!window.requirejs) {\n", - "\t on_load();\n", - "\t}\n", - "\tcontinue;\n", - " }\n", - " var element = document.createElement('script');\n", - " element.onload = on_load;\n", - " element.onerror = on_error;\n", - " element.async = false;\n", - " element.src = url;\n", - " element.type = \"module\";\n", - " console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n", - " document.head.appendChild(element);\n", - " }\n", - " for (const name in js_exports) {\n", - " var url = js_exports[name];\n", - " if (skip.indexOf(url) >= 0 || root[name] != null) {\n", - "\tif (!window.requirejs) {\n", - "\t on_load();\n", - "\t}\n", - "\tcontinue;\n", - " }\n", - " var element = document.createElement('script');\n", - " element.onerror = on_error;\n", - " element.async = false;\n", - " element.type = \"module\";\n", - " console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n", - " element.textContent = `\n", - " import ${name} from \"${url}\"\n", - " window.${name} = ${name}\n", - " window._bokeh_on_load()\n", - " `\n", - " document.head.appendChild(element);\n", - " }\n", - " if (!js_urls.length && !js_modules.length) {\n", - " on_load()\n", - " }\n", - " };\n", - "\n", - " function inject_raw_css(css) {\n", - " const element = document.createElement(\"style\");\n", - " element.appendChild(document.createTextNode(css));\n", - " document.body.appendChild(element);\n", - " }\n", - "\n", - " var js_urls = [\"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/tabulator-tables@5.5.0/dist/js/tabulator.js\", \"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/luxon/build/global/luxon.min.js\"];\n", - " var js_modules = [];\n", - " var js_exports = {};\n", - " var css_urls = [\"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/tabulator-tables@5.5.0/dist/css/tabulator_simple.min.css\", \"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/font-awesome/css/all.min.css\"];\n", - " var inline_js = [ function(Bokeh) {\n", - " inject_raw_css(\".tabulator{position:relative;border:1px solid #999;font-size:14px;text-align:left;overflow:hidden;-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0);transform:translateZ(0)}.tabulator[tabulator-layout=fitDataFill] .tabulator-tableholder .tabulator-table{min-width:100%}.tabulator[tabulator-layout=fitDataTable]{display:inline-block}.tabulator.tabulator-block-select{user-select:none}.tabulator .tabulator-header{position:relative;box-sizing:border-box;width:100%;border-bottom:1px solid #999;background-color:#fff;color:#555;font-weight:700;white-space:nowrap;overflow:hidden;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator .tabulator-header.tabulator-header-hidden{display:none}.tabulator .tabulator-header .tabulator-header-contents{position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-header-contents .tabulator-headers{display:inline-block}.tabulator .tabulator-header .tabulator-col{display:inline-flex;position:relative;box-sizing:border-box;flex-direction:column;justify-content:flex-start;border-right:1px solid #ddd;background:#fff;text-align:left;vertical-align:bottom;overflow:hidden}.tabulator .tabulator-header .tabulator-col.tabulator-moving{position:absolute;border:1px solid #999;background:#e6e6e6;pointer-events:none}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{box-sizing:border-box;position:relative;padding:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button{padding:0 8px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button:hover{cursor:pointer;opacity:.6}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title-holder{position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{box-sizing:border-box;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title.tabulator-col-title-wrap{white-space:normal;text-overflow:clip}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor{box-sizing:border-box;width:100%;border:1px solid #999;padding:1px;background:#fff}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-header-popup-button+.tabulator-title-editor{width:calc(100% - 22px)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{display:flex;align-items:center;position:absolute;top:0;bottom:0;right:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{position:relative;display:flex;border-top:1px solid #ddd;overflow:hidden;margin-right:-1px}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter{position:relative;box-sizing:border-box;margin-top:2px;width:100%;text-align:center}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea{height:auto!important}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg{margin-top:3px}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear{width:0;height:0}.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:25px}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover{cursor:pointer;background-color:#e6e6e6}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter{color:#bbb}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-bottom:6px solid #555}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter{color:#666}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-bottom:6px solid #555}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid #666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter{color:#666}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-top:6px solid #555}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:none;border-top:6px solid #666;color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title{writing-mode:vertical-rl;text-orientation:mixed;display:flex;align-items:center;justify-content:center}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title{transform:rotate(180deg)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title{padding-right:0;padding-top:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title{padding-right:0;padding-bottom:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-sorter{justify-content:center;left:0;right:0;top:4px;bottom:auto}.tabulator .tabulator-header .tabulator-frozen{position:sticky;left:0;z-index:10}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left{border-right:2px solid #ddd}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right{border-left:2px solid #ddd}.tabulator .tabulator-header .tabulator-calcs-holder{box-sizing:border-box;background:#fff!important;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:#fff!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle,.tabulator .tabulator-header .tabulator-frozen-rows-holder:empty{display:none}.tabulator .tabulator-tableholder{position:relative;width:100%;white-space:nowrap;overflow:auto;-webkit-overflow-scrolling:touch}.tabulator .tabulator-tableholder:focus{outline:none}.tabulator .tabulator-tableholder .tabulator-placeholder{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%}.tabulator .tabulator-tableholder .tabulator-placeholder[tabulator-render-mode=virtual]{min-height:100%;min-width:100%}.tabulator .tabulator-tableholder .tabulator-placeholder .tabulator-placeholder-contents{display:inline-block;text-align:center;padding:10px;color:#ccc;font-weight:700;font-size:20px;white-space:normal}.tabulator .tabulator-tableholder .tabulator-table{position:relative;display:inline-block;background-color:#fff;white-space:nowrap;overflow:visible;color:#333}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs{font-weight:700;background:#f2f2f2!important}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top{border-bottom:2px solid #ddd}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom{border-top:2px solid #ddd}.tabulator .tabulator-footer{border-top:1px solid #999;background-color:#fff;color:#555;font-weight:700;white-space:nowrap;user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator .tabulator-footer .tabulator-footer-contents{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:5px 10px}.tabulator .tabulator-footer .tabulator-footer-contents:empty{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder{box-sizing:border-box;width:100%;text-align:left;background:#fff!important;border-bottom:1px solid #ddd;border-top:1px solid #ddd;overflow:hidden}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{display:inline-block;background:#fff!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder:only-child{margin-bottom:-5px;border-bottom:none}.tabulator .tabulator-footer>*+.tabulator-page-counter{margin-left:10px}.tabulator .tabulator-footer .tabulator-page-counter{font-weight:400}.tabulator .tabulator-footer .tabulator-paginator{flex:1;text-align:right;color:#555;font-family:inherit;font-weight:inherit;font-size:inherit}.tabulator .tabulator-footer .tabulator-page-size{display:inline-block;margin:0 5px;padding:2px 5px;border:1px solid #aaa;border-radius:3px}.tabulator .tabulator-footer .tabulator-pages{margin:0 7px}.tabulator .tabulator-footer .tabulator-page{display:inline-block;margin:0 2px;padding:2px 5px;border:1px solid #aaa;border-radius:3px;background:hsla(0,0%,100%,.2)}.tabulator .tabulator-footer .tabulator-page.active{color:#d00}.tabulator .tabulator-footer .tabulator-page:disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-footer .tabulator-page:not(.disabled):hover{cursor:pointer;background:rgba(0,0,0,.2);color:#fff}}.tabulator .tabulator-col-resize-handle{position:relative;display:inline-block;width:6px;margin-left:-3px;margin-right:-3px;z-index:10;vertical-align:middle}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-col-resize-handle:hover{cursor:ew-resize}}.tabulator .tabulator-col-resize-handle:last-of-type{width:3px;margin-right:0}.tabulator .tabulator-alert{position:absolute;display:flex;align-items:center;top:0;left:0;z-index:100;height:100%;width:100%;background:rgba(0,0,0,.4);text-align:center}.tabulator .tabulator-alert .tabulator-alert-msg{display:inline-block;margin:0 auto;padding:10px 20px;border-radius:10px;background:#fff;font-weight:700;font-size:16px}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-msg{border:4px solid #333;color:#000}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-error{border:4px solid #d00;color:#590000}.tabulator-row{position:relative;box-sizing:border-box;min-height:22px}.tabulator-row,.tabulator-row.tabulator-row-even{background-color:#fff}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selectable:hover{background-color:#bbb;cursor:pointer}}.tabulator-row.tabulator-selected{background-color:#9abcea}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selected:hover{background-color:#769bcc;cursor:pointer}}.tabulator-row.tabulator-row-moving{border:1px solid #000;background:#fff}.tabulator-row.tabulator-moving{position:absolute;border-top:1px solid #ddd;border-bottom:1px solid #ddd;pointer-events:none;z-index:15}.tabulator-row .tabulator-row-resize-handle{position:absolute;right:0;bottom:0;left:0;height:5px}.tabulator-row .tabulator-row-resize-handle.prev{top:0;bottom:auto}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-row-resize-handle:hover{cursor:ns-resize}}.tabulator-row .tabulator-responsive-collapse{box-sizing:border-box;padding:5px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.tabulator-row .tabulator-responsive-collapse:empty{display:none}.tabulator-row .tabulator-responsive-collapse table{font-size:14px}.tabulator-row .tabulator-responsive-collapse table tr td{position:relative}.tabulator-row .tabulator-responsive-collapse table tr td:first-of-type{padding-right:10px}.tabulator-row .tabulator-cell{display:inline-block;position:relative;box-sizing:border-box;padding:4px;border-right:1px solid #ddd;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tabulator-row .tabulator-cell.tabulator-frozen{display:inline-block;position:sticky;left:0;background-color:inherit;z-index:10}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-right:2px solid #ddd}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-left:2px solid #ddd}.tabulator-row .tabulator-cell.tabulator-editing{border:1px solid #1d68cd;outline:none;padding:0}.tabulator-row .tabulator-cell.tabulator-editing input,.tabulator-row .tabulator-cell.tabulator-editing select{border:1px;background:transparent;outline:none}.tabulator-row .tabulator-cell.tabulator-validation-fail{border:1px solid #d00}.tabulator-row .tabulator-cell.tabulator-validation-fail input,.tabulator-row .tabulator-cell.tabulator-validation-fail select{border:1px;background:transparent;color:#d00}.tabulator-row .tabulator-cell.tabulator-row-handle{display:inline-flex;align-items:center;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box{width:80%}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar{width:100%;height:3px;margin-top:2px;background:#666}.tabulator-row .tabulator-cell .tabulator-data-tree-branch{display:inline-block;vertical-align:middle;height:9px;width:7px;margin-top:-9px;margin-right:5px;border-bottom-left-radius:1px;border-left:2px solid #ddd;border-bottom:2px solid #ddd}.tabulator-row .tabulator-cell .tabulator-data-tree-control{display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;height:11px;width:11px;margin-right:5px;border:1px solid #333;border-radius:2px;background:rgba(0,0,0,.1);overflow:hidden}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-data-tree-control:hover{cursor:pointer;background:rgba(0,0,0,.2)}}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse{display:inline-block;position:relative;height:7px;width:1px;background:transparent}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{position:absolute;content:\\\"\\\";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand{display:inline-block;position:relative;height:7px;width:1px;background:#333}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{position:absolute;content:\\\"\\\";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle{display:inline-flex;align-items:center;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;height:15px;width:15px;border-radius:20px;background:#666;color:#fff;font-weight:700;font-size:1.1em}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover{opacity:.7;cursor:pointer}}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close{display:initial}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open{display:none}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle svg{stroke:#fff}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close{display:none}.tabulator-row .tabulator-cell .tabulator-traffic-light{display:inline-block;height:14px;width:14px;border-radius:14px}.tabulator-row.tabulator-group{box-sizing:border-box;border-bottom:1px solid #999;border-right:1px solid #ddd;border-top:1px solid #999;padding:5px 5px 5px 10px;background:#ccc;font-weight:700;min-width:100%}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-group:hover{cursor:pointer;background-color:rgba(0,0,0,.1)}}.tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow{margin-right:10px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;border-bottom:0}.tabulator-row.tabulator-group.tabulator-group-level-1{padding-left:30px}.tabulator-row.tabulator-group.tabulator-group-level-2{padding-left:50px}.tabulator-row.tabulator-group.tabulator-group-level-3{padding-left:70px}.tabulator-row.tabulator-group.tabulator-group-level-4{padding-left:90px}.tabulator-row.tabulator-group.tabulator-group-level-5{padding-left:110px}.tabulator-row.tabulator-group .tabulator-group-toggle{display:inline-block}.tabulator-row.tabulator-group .tabulator-arrow{display:inline-block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-align:middle}.tabulator-row.tabulator-group span{margin-left:10px;color:#d00}.tabulator-popup-container{position:absolute;display:inline-block;box-sizing:border-box;background:#fff;border:1px solid #ddd;box-shadow:0 0 5px 0 rgba(0,0,0,.2);font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:10000}.tabulator-popup{padding:5px;border-radius:3px}.tabulator-tooltip{max-width:Min(500px,100%);padding:3px 5px;border-radius:2px;box-shadow:none;font-size:12px;pointer-events:none}.tabulator-menu .tabulator-menu-item{position:relative;box-sizing:border-box;padding:5px 10px;user-select:none}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover{cursor:pointer;background:#fff}}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu{padding-right:25px}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu:after{display:inline-block;position:absolute;top:calc(5px + .4em);right:10px;height:7px;width:7px;content:\\\"\\\";border-color:#ddd;border-style:solid;border-width:1px 1px 0 0;vertical-align:top;transform:rotate(45deg)}.tabulator-menu .tabulator-menu-separator{border-top:1px solid #ddd}.tabulator-edit-list{max-height:200px;font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch}.tabulator-edit-list .tabulator-edit-list-item{padding:4px;color:#333;outline:none}.tabulator-edit-list .tabulator-edit-list-item.active{color:#fff;background:#1d68cd}.tabulator-edit-list .tabulator-edit-list-item.active.focused{outline:1px solid hsla(0,0%,100%,.5)}.tabulator-edit-list .tabulator-edit-list-item.focused{outline:1px solid #1d68cd}@media (hover:hover) and (pointer:fine){.tabulator-edit-list .tabulator-edit-list-item:hover{cursor:pointer;color:#fff;background:#1d68cd}}.tabulator-edit-list .tabulator-edit-list-placeholder{padding:4px;color:#333;text-align:center}.tabulator-edit-list .tabulator-edit-list-group{border-bottom:1px solid #ddd;padding:6px 4px 4px;color:#333;font-weight:700}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-2,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-2{padding-left:12px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-3,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-3{padding-left:20px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-4,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-4{padding-left:28px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-5,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-5{padding-left:36px}.tabulator.tabulator-ltr{direction:ltr}.tabulator.tabulator-rtl{text-align:initial;direction:rtl}.tabulator.tabulator-rtl .tabulator-header .tabulator-col{text-align:initial;border-left:1px solid #ddd;border-right:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{margin-right:0;margin-left:-1px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:0;padding-left:25px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{left:8px;right:auto}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell{border-right:initial;border-left:1px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-branch{margin-right:0;margin-left:5px;border-bottom-left-radius:0;border-bottom-right-radius:1px;border-left:initial;border-right:2px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-control{margin-right:0;margin-left:5px}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-left:2px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-right:2px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-col-resize-handle:last-of-type{width:3px;margin-left:0;margin-right:-3px}.tabulator.tabulator-rtl .tabulator-footer .tabulator-calcs-holder{text-align:initial}.tabulator-print-fullscreen{position:absolute;top:0;bottom:0;left:0;right:0;z-index:10000}body.tabulator-print-fullscreen-hide>:not(.tabulator-print-fullscreen){display:none!important}.tabulator-print-table{border-collapse:collapse}.tabulator-print-table .tabulator-data-tree-branch{display:inline-block;vertical-align:middle;height:9px;width:7px;margin-top:-9px;margin-right:5px;border-bottom-left-radius:1px;border-left:2px solid #ddd;border-bottom:2px solid #ddd}.tabulator-print-table .tabulator-print-table-group{box-sizing:border-box;border-bottom:1px solid #999;border-right:1px solid #ddd;border-top:1px solid #999;padding:5px 5px 5px 10px;background:#ccc;font-weight:700;min-width:100%}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-print-table-group:hover{cursor:pointer;background-color:rgba(0,0,0,.1)}}.tabulator-print-table .tabulator-print-table-group.tabulator-group-visible .tabulator-arrow{margin-right:10px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;border-bottom:0}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-1 td{padding-left:30px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-2 td{padding-left:50px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-3 td{padding-left:70px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-4 td{padding-left:90px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-5 td{padding-left:110px!important}.tabulator-print-table .tabulator-print-table-group .tabulator-group-toggle{display:inline-block}.tabulator-print-table .tabulator-print-table-group .tabulator-arrow{display:inline-block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-align:middle}.tabulator-print-table .tabulator-print-table-group span{color:#d00}.tabulator-print-table .tabulator-data-tree-control{display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;height:11px;width:11px;margin-right:5px;border:1px solid #333;border-radius:2px;background:rgba(0,0,0,.1);overflow:hidden}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-data-tree-control:hover{cursor:pointer;background:rgba(0,0,0,.2)}}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse{display:inline-block;position:relative;height:7px;width:1px;background:transparent}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{position:absolute;content:\\\"\\\";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand{display:inline-block;position:relative;height:7px;width:1px;background:#333}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{position:absolute;content:\\\"\\\";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator{border:none;background-color:#fff}.tabulator .tabulator-header .tabulator-calcs-holder{background:#f2f2f2!important;border-bottom:1px solid #999}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:#f2f2f2!important}.tabulator .tabulator-tableholder .tabulator-placeholder span{color:#000}.tabulator .tabulator-footer .tabulator-calcs-holder{background:#f2f2f2!important;border-bottom:1px solid #fff}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{background:#f2f2f2!important}.tabulator-row{border-bottom:1px solid #ddd}.tabulator-row .tabulator-cell:last-of-type{border-right:none}.tabulator-row.tabulator-group span{color:#666}.tabulator-print-table .tabulator-print-table-group span{margin-left:10px;color:#666}\\n/*# sourceMappingURL=tabulator_simple.min.css.map */\");\n", - " }, function(Bokeh) {\n", - " Bokeh.set_log_level(\"info\");\n", - " },\n", - "function(Bokeh) {} // ensure no trailing comma for IE\n", - " ];\n", - "\n", - " function run_inline_js() {\n", - " if ((root.Bokeh !== undefined) || (force === true)) {\n", - " for (var i = 0; i < inline_js.length; i++) {\n", - " inline_js[i].call(root, root.Bokeh);\n", - " }\n", - " // Cache old bokeh versions\n", - " if (Bokeh != undefined && !reloading) {\n", - "\tvar NewBokeh = root.Bokeh;\n", - "\tif (Bokeh.versions === undefined) {\n", - "\t Bokeh.versions = new Map();\n", - "\t}\n", - "\tif (NewBokeh.version !== Bokeh.version) {\n", - "\t Bokeh.versions.set(NewBokeh.version, NewBokeh)\n", - "\t}\n", - "\troot.Bokeh = Bokeh;\n", - " }} else if (Date.now() < root._bokeh_timeout) {\n", - " setTimeout(run_inline_js, 100);\n", - " } else if (!root._bokeh_failed_load) {\n", - " console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n", - " root._bokeh_failed_load = true;\n", - " }\n", - " root._bokeh_is_initializing = false\n", - " }\n", - "\n", - " function load_or_wait() {\n", - " // Implement a backoff loop that tries to ensure we do not load multiple\n", - " // versions of Bokeh and its dependencies at the same time.\n", - " // In recent versions we use the root._bokeh_is_initializing flag\n", - " // to determine whether there is an ongoing attempt to initialize\n", - " // bokeh, however for backward compatibility we also try to ensure\n", - " // that we do not start loading a newer (Panel>=1.0 and Bokeh>3) version\n", - " // before older versions are fully initialized.\n", - " if (root._bokeh_is_initializing && Date.now() > root._bokeh_timeout) {\n", - " root._bokeh_is_initializing = false;\n", - " root._bokeh_onload_callbacks = undefined;\n", - " console.log(\"Bokeh: BokehJS was loaded multiple times but one version failed to initialize.\");\n", - " load_or_wait();\n", - " } else if (root._bokeh_is_initializing || (typeof root._bokeh_is_initializing === \"undefined\" && root._bokeh_onload_callbacks !== undefined)) {\n", - " setTimeout(load_or_wait, 100);\n", - " } else {\n", - " Bokeh = root.Bokeh;\n", - " bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n", - " root._bokeh_is_initializing = true\n", - " root._bokeh_onload_callbacks = []\n", - " if (!reloading && (!bokeh_loaded || is_dev)) {\n", - "\troot.Bokeh = undefined;\n", - " }\n", - " load_libs(css_urls, js_urls, js_modules, js_exports, function() {\n", - "\tconsole.debug(\"Bokeh: BokehJS plotting callback run at\", now());\n", - "\trun_inline_js();\n", - " });\n", - " }\n", - " }\n", - " // Give older versions of the autoload script a head-start to ensure\n", - " // they initialize before we start loading newer version.\n", - " setTimeout(load_or_wait, 100)\n", - "}(window));" - ], - "application/vnd.holoviews_load.v0+json": "(function(root) {\n function now() {\n return new Date();\n }\n\n var force = true;\n var py_version = '3.3.0'.replace('rc', '-rc.').replace('.dev', '-dev.');\n var is_dev = py_version.indexOf(\"+\") !== -1 || py_version.indexOf(\"-\") !== -1;\n var reloading = true;\n var Bokeh = root.Bokeh;\n var bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n\n if (typeof (root._bokeh_timeout) === \"undefined\" || force) {\n root._bokeh_timeout = Date.now() + 5000;\n root._bokeh_failed_load = false;\n }\n\n function run_callbacks() {\n try {\n root._bokeh_onload_callbacks.forEach(function(callback) {\n if (callback != null)\n callback();\n });\n } finally {\n delete root._bokeh_onload_callbacks;\n }\n console.debug(\"Bokeh: all callbacks have finished\");\n }\n\n function load_libs(css_urls, js_urls, js_modules, js_exports, callback) {\n if (css_urls == null) css_urls = [];\n if (js_urls == null) js_urls = [];\n if (js_modules == null) js_modules = [];\n if (js_exports == null) js_exports = {};\n\n root._bokeh_onload_callbacks.push(callback);\n\n if (root._bokeh_is_loading > 0) {\n console.debug(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n return null;\n }\n if (js_urls.length === 0 && js_modules.length === 0 && Object.keys(js_exports).length === 0) {\n run_callbacks();\n return null;\n }\n if (!reloading) {\n console.debug(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n }\n\n function on_load() {\n root._bokeh_is_loading--;\n if (root._bokeh_is_loading === 0) {\n console.debug(\"Bokeh: all BokehJS libraries/stylesheets loaded\");\n run_callbacks()\n }\n }\n window._bokeh_on_load = on_load\n\n function on_error() {\n console.error(\"failed to load \" + url);\n }\n\n var skip = [];\n if (window.requirejs) {\n window.requirejs.config({'packages': {}, 'paths': {'tabulator': 'https://cdn.jsdelivr.net/npm/tabulator-tables@5.5.0/dist/js/tabulator', 'moment': 'https://cdn.jsdelivr.net/npm/luxon/build/global/luxon.min', 'jspanel': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/jspanel', 'jspanel-modal': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal', 'jspanel-tooltip': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip', 'jspanel-hint': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint', 'jspanel-layout': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout', 'jspanel-contextmenu': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu', 'jspanel-dock': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock', 'gridstack': 'https://cdn.jsdelivr.net/npm/gridstack@7.2.3/dist/gridstack-all', 'notyf': 'https://cdn.jsdelivr.net/npm/notyf@3/notyf.min'}, 'shim': {'jspanel': {'exports': 'jsPanel'}, 'gridstack': {'exports': 'GridStack'}}});\n require([\"tabulator\"], function(Tabulator) {\n\twindow.Tabulator = Tabulator\n\ton_load()\n })\n require([\"moment\"], function(moment) {\n\twindow.moment = moment\n\ton_load()\n })\n require([\"jspanel\"], function(jsPanel) {\n\twindow.jsPanel = jsPanel\n\ton_load()\n })\n require([\"jspanel-modal\"], function() {\n\ton_load()\n })\n require([\"jspanel-tooltip\"], function() {\n\ton_load()\n })\n require([\"jspanel-hint\"], function() {\n\ton_load()\n })\n require([\"jspanel-layout\"], function() {\n\ton_load()\n })\n require([\"jspanel-contextmenu\"], function() {\n\ton_load()\n })\n require([\"jspanel-dock\"], function() {\n\ton_load()\n })\n require([\"gridstack\"], function(GridStack) {\n\twindow.GridStack = GridStack\n\ton_load()\n })\n require([\"notyf\"], function() {\n\ton_load()\n })\n root._bokeh_is_loading = css_urls.length + 11;\n } else {\n root._bokeh_is_loading = css_urls.length + js_urls.length + js_modules.length + Object.keys(js_exports).length;\n }\n\n var existing_stylesheets = []\n var links = document.getElementsByTagName('link')\n for (var i = 0; i < links.length; i++) {\n var link = links[i]\n if (link.href != null) {\n\texisting_stylesheets.push(link.href)\n }\n }\n for (var i = 0; i < css_urls.length; i++) {\n var url = css_urls[i];\n if (existing_stylesheets.indexOf(url) !== -1) {\n\ton_load()\n\tcontinue;\n }\n const element = document.createElement(\"link\");\n element.onload = on_load;\n element.onerror = on_error;\n element.rel = \"stylesheet\";\n element.type = \"text/css\";\n element.href = url;\n console.debug(\"Bokeh: injecting link tag for BokehJS stylesheet: \", url);\n document.body.appendChild(element);\n } if (((window['Tabulator'] !== undefined) && (!(window['Tabulator'] instanceof HTMLElement))) || window.requirejs) {\n var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/tabulator-tables@5.5.0/dist/js/tabulator.js'];\n for (var i = 0; i < urls.length; i++) {\n skip.push(urls[i])\n }\n } if (((window['moment'] !== undefined) && (!(window['moment'] instanceof HTMLElement))) || window.requirejs) {\n var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/luxon/build/global/luxon.min.js'];\n for (var i = 0; i < urls.length; i++) {\n skip.push(urls[i])\n }\n } if (((window['jsPanel'] !== undefined) && (!(window['jsPanel'] instanceof HTMLElement))) || window.requirejs) {\n var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/jspanel.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock.js'];\n for (var i = 0; i < urls.length; i++) {\n skip.push(urls[i])\n }\n } if (((window['GridStack'] !== undefined) && (!(window['GridStack'] instanceof HTMLElement))) || window.requirejs) {\n var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/gridstack/gridstack@7.2.3/dist/gridstack-all.js'];\n for (var i = 0; i < urls.length; i++) {\n skip.push(urls[i])\n }\n } if (((window['Notyf'] !== undefined) && (!(window['Notyf'] instanceof HTMLElement))) || window.requirejs) {\n var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/notificationarea/notyf@3/notyf.min.js'];\n for (var i = 0; i < urls.length; i++) {\n skip.push(urls[i])\n }\n } var existing_scripts = []\n var scripts = document.getElementsByTagName('script')\n for (var i = 0; i < scripts.length; i++) {\n var script = scripts[i]\n if (script.src != null) {\n\texisting_scripts.push(script.src)\n }\n }\n for (var i = 0; i < js_urls.length; i++) {\n var url = js_urls[i];\n if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n\tif (!window.requirejs) {\n\t on_load();\n\t}\n\tcontinue;\n }\n var element = document.createElement('script');\n element.onload = on_load;\n element.onerror = on_error;\n element.async = false;\n element.src = url;\n console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n document.head.appendChild(element);\n }\n for (var i = 0; i < js_modules.length; i++) {\n var url = js_modules[i];\n if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n\tif (!window.requirejs) {\n\t on_load();\n\t}\n\tcontinue;\n }\n var element = document.createElement('script');\n element.onload = on_load;\n element.onerror = on_error;\n element.async = false;\n element.src = url;\n element.type = \"module\";\n console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n document.head.appendChild(element);\n }\n for (const name in js_exports) {\n var url = js_exports[name];\n if (skip.indexOf(url) >= 0 || root[name] != null) {\n\tif (!window.requirejs) {\n\t on_load();\n\t}\n\tcontinue;\n }\n var element = document.createElement('script');\n element.onerror = on_error;\n element.async = false;\n element.type = \"module\";\n console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n element.textContent = `\n import ${name} from \"${url}\"\n window.${name} = ${name}\n window._bokeh_on_load()\n `\n document.head.appendChild(element);\n }\n if (!js_urls.length && !js_modules.length) {\n on_load()\n }\n };\n\n function inject_raw_css(css) {\n const element = document.createElement(\"style\");\n element.appendChild(document.createTextNode(css));\n document.body.appendChild(element);\n }\n\n var js_urls = [\"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/tabulator-tables@5.5.0/dist/js/tabulator.js\", \"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/luxon/build/global/luxon.min.js\"];\n var js_modules = [];\n var js_exports = {};\n var css_urls = [\"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/tabulator-tables@5.5.0/dist/css/tabulator_simple.min.css\", \"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/font-awesome/css/all.min.css\"];\n var inline_js = [ function(Bokeh) {\n inject_raw_css(\".tabulator{position:relative;border:1px solid #999;font-size:14px;text-align:left;overflow:hidden;-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0);transform:translateZ(0)}.tabulator[tabulator-layout=fitDataFill] .tabulator-tableholder .tabulator-table{min-width:100%}.tabulator[tabulator-layout=fitDataTable]{display:inline-block}.tabulator.tabulator-block-select{user-select:none}.tabulator .tabulator-header{position:relative;box-sizing:border-box;width:100%;border-bottom:1px solid #999;background-color:#fff;color:#555;font-weight:700;white-space:nowrap;overflow:hidden;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator .tabulator-header.tabulator-header-hidden{display:none}.tabulator .tabulator-header .tabulator-header-contents{position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-header-contents .tabulator-headers{display:inline-block}.tabulator .tabulator-header .tabulator-col{display:inline-flex;position:relative;box-sizing:border-box;flex-direction:column;justify-content:flex-start;border-right:1px solid #ddd;background:#fff;text-align:left;vertical-align:bottom;overflow:hidden}.tabulator .tabulator-header .tabulator-col.tabulator-moving{position:absolute;border:1px solid #999;background:#e6e6e6;pointer-events:none}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{box-sizing:border-box;position:relative;padding:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button{padding:0 8px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button:hover{cursor:pointer;opacity:.6}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title-holder{position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{box-sizing:border-box;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title.tabulator-col-title-wrap{white-space:normal;text-overflow:clip}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor{box-sizing:border-box;width:100%;border:1px solid #999;padding:1px;background:#fff}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-header-popup-button+.tabulator-title-editor{width:calc(100% - 22px)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{display:flex;align-items:center;position:absolute;top:0;bottom:0;right:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{position:relative;display:flex;border-top:1px solid #ddd;overflow:hidden;margin-right:-1px}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter{position:relative;box-sizing:border-box;margin-top:2px;width:100%;text-align:center}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea{height:auto!important}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg{margin-top:3px}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear{width:0;height:0}.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:25px}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover{cursor:pointer;background-color:#e6e6e6}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter{color:#bbb}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-bottom:6px solid #555}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter{color:#666}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-bottom:6px solid #555}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid #666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter{color:#666}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-top:6px solid #555}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:none;border-top:6px solid #666;color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title{writing-mode:vertical-rl;text-orientation:mixed;display:flex;align-items:center;justify-content:center}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title{transform:rotate(180deg)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title{padding-right:0;padding-top:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title{padding-right:0;padding-bottom:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-sorter{justify-content:center;left:0;right:0;top:4px;bottom:auto}.tabulator .tabulator-header .tabulator-frozen{position:sticky;left:0;z-index:10}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left{border-right:2px solid #ddd}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right{border-left:2px solid #ddd}.tabulator .tabulator-header .tabulator-calcs-holder{box-sizing:border-box;background:#fff!important;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:#fff!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle,.tabulator .tabulator-header .tabulator-frozen-rows-holder:empty{display:none}.tabulator .tabulator-tableholder{position:relative;width:100%;white-space:nowrap;overflow:auto;-webkit-overflow-scrolling:touch}.tabulator .tabulator-tableholder:focus{outline:none}.tabulator .tabulator-tableholder .tabulator-placeholder{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%}.tabulator .tabulator-tableholder .tabulator-placeholder[tabulator-render-mode=virtual]{min-height:100%;min-width:100%}.tabulator .tabulator-tableholder .tabulator-placeholder .tabulator-placeholder-contents{display:inline-block;text-align:center;padding:10px;color:#ccc;font-weight:700;font-size:20px;white-space:normal}.tabulator .tabulator-tableholder .tabulator-table{position:relative;display:inline-block;background-color:#fff;white-space:nowrap;overflow:visible;color:#333}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs{font-weight:700;background:#f2f2f2!important}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top{border-bottom:2px solid #ddd}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom{border-top:2px solid #ddd}.tabulator .tabulator-footer{border-top:1px solid #999;background-color:#fff;color:#555;font-weight:700;white-space:nowrap;user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator .tabulator-footer .tabulator-footer-contents{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:5px 10px}.tabulator .tabulator-footer .tabulator-footer-contents:empty{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder{box-sizing:border-box;width:100%;text-align:left;background:#fff!important;border-bottom:1px solid #ddd;border-top:1px solid #ddd;overflow:hidden}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{display:inline-block;background:#fff!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder:only-child{margin-bottom:-5px;border-bottom:none}.tabulator .tabulator-footer>*+.tabulator-page-counter{margin-left:10px}.tabulator .tabulator-footer .tabulator-page-counter{font-weight:400}.tabulator .tabulator-footer .tabulator-paginator{flex:1;text-align:right;color:#555;font-family:inherit;font-weight:inherit;font-size:inherit}.tabulator .tabulator-footer .tabulator-page-size{display:inline-block;margin:0 5px;padding:2px 5px;border:1px solid #aaa;border-radius:3px}.tabulator .tabulator-footer .tabulator-pages{margin:0 7px}.tabulator .tabulator-footer .tabulator-page{display:inline-block;margin:0 2px;padding:2px 5px;border:1px solid #aaa;border-radius:3px;background:hsla(0,0%,100%,.2)}.tabulator .tabulator-footer .tabulator-page.active{color:#d00}.tabulator .tabulator-footer .tabulator-page:disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-footer .tabulator-page:not(.disabled):hover{cursor:pointer;background:rgba(0,0,0,.2);color:#fff}}.tabulator .tabulator-col-resize-handle{position:relative;display:inline-block;width:6px;margin-left:-3px;margin-right:-3px;z-index:10;vertical-align:middle}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-col-resize-handle:hover{cursor:ew-resize}}.tabulator .tabulator-col-resize-handle:last-of-type{width:3px;margin-right:0}.tabulator .tabulator-alert{position:absolute;display:flex;align-items:center;top:0;left:0;z-index:100;height:100%;width:100%;background:rgba(0,0,0,.4);text-align:center}.tabulator .tabulator-alert .tabulator-alert-msg{display:inline-block;margin:0 auto;padding:10px 20px;border-radius:10px;background:#fff;font-weight:700;font-size:16px}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-msg{border:4px solid #333;color:#000}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-error{border:4px solid #d00;color:#590000}.tabulator-row{position:relative;box-sizing:border-box;min-height:22px}.tabulator-row,.tabulator-row.tabulator-row-even{background-color:#fff}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selectable:hover{background-color:#bbb;cursor:pointer}}.tabulator-row.tabulator-selected{background-color:#9abcea}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selected:hover{background-color:#769bcc;cursor:pointer}}.tabulator-row.tabulator-row-moving{border:1px solid #000;background:#fff}.tabulator-row.tabulator-moving{position:absolute;border-top:1px solid #ddd;border-bottom:1px solid #ddd;pointer-events:none;z-index:15}.tabulator-row .tabulator-row-resize-handle{position:absolute;right:0;bottom:0;left:0;height:5px}.tabulator-row .tabulator-row-resize-handle.prev{top:0;bottom:auto}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-row-resize-handle:hover{cursor:ns-resize}}.tabulator-row .tabulator-responsive-collapse{box-sizing:border-box;padding:5px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.tabulator-row .tabulator-responsive-collapse:empty{display:none}.tabulator-row .tabulator-responsive-collapse table{font-size:14px}.tabulator-row .tabulator-responsive-collapse table tr td{position:relative}.tabulator-row .tabulator-responsive-collapse table tr td:first-of-type{padding-right:10px}.tabulator-row .tabulator-cell{display:inline-block;position:relative;box-sizing:border-box;padding:4px;border-right:1px solid #ddd;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tabulator-row .tabulator-cell.tabulator-frozen{display:inline-block;position:sticky;left:0;background-color:inherit;z-index:10}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-right:2px solid #ddd}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-left:2px solid #ddd}.tabulator-row .tabulator-cell.tabulator-editing{border:1px solid #1d68cd;outline:none;padding:0}.tabulator-row .tabulator-cell.tabulator-editing input,.tabulator-row .tabulator-cell.tabulator-editing select{border:1px;background:transparent;outline:none}.tabulator-row .tabulator-cell.tabulator-validation-fail{border:1px solid #d00}.tabulator-row .tabulator-cell.tabulator-validation-fail input,.tabulator-row .tabulator-cell.tabulator-validation-fail select{border:1px;background:transparent;color:#d00}.tabulator-row .tabulator-cell.tabulator-row-handle{display:inline-flex;align-items:center;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box{width:80%}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar{width:100%;height:3px;margin-top:2px;background:#666}.tabulator-row .tabulator-cell .tabulator-data-tree-branch{display:inline-block;vertical-align:middle;height:9px;width:7px;margin-top:-9px;margin-right:5px;border-bottom-left-radius:1px;border-left:2px solid #ddd;border-bottom:2px solid #ddd}.tabulator-row .tabulator-cell .tabulator-data-tree-control{display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;height:11px;width:11px;margin-right:5px;border:1px solid #333;border-radius:2px;background:rgba(0,0,0,.1);overflow:hidden}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-data-tree-control:hover{cursor:pointer;background:rgba(0,0,0,.2)}}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse{display:inline-block;position:relative;height:7px;width:1px;background:transparent}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{position:absolute;content:\\\"\\\";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand{display:inline-block;position:relative;height:7px;width:1px;background:#333}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{position:absolute;content:\\\"\\\";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle{display:inline-flex;align-items:center;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;height:15px;width:15px;border-radius:20px;background:#666;color:#fff;font-weight:700;font-size:1.1em}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover{opacity:.7;cursor:pointer}}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close{display:initial}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open{display:none}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle svg{stroke:#fff}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close{display:none}.tabulator-row .tabulator-cell .tabulator-traffic-light{display:inline-block;height:14px;width:14px;border-radius:14px}.tabulator-row.tabulator-group{box-sizing:border-box;border-bottom:1px solid #999;border-right:1px solid #ddd;border-top:1px solid #999;padding:5px 5px 5px 10px;background:#ccc;font-weight:700;min-width:100%}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-group:hover{cursor:pointer;background-color:rgba(0,0,0,.1)}}.tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow{margin-right:10px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;border-bottom:0}.tabulator-row.tabulator-group.tabulator-group-level-1{padding-left:30px}.tabulator-row.tabulator-group.tabulator-group-level-2{padding-left:50px}.tabulator-row.tabulator-group.tabulator-group-level-3{padding-left:70px}.tabulator-row.tabulator-group.tabulator-group-level-4{padding-left:90px}.tabulator-row.tabulator-group.tabulator-group-level-5{padding-left:110px}.tabulator-row.tabulator-group .tabulator-group-toggle{display:inline-block}.tabulator-row.tabulator-group .tabulator-arrow{display:inline-block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-align:middle}.tabulator-row.tabulator-group span{margin-left:10px;color:#d00}.tabulator-popup-container{position:absolute;display:inline-block;box-sizing:border-box;background:#fff;border:1px solid #ddd;box-shadow:0 0 5px 0 rgba(0,0,0,.2);font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:10000}.tabulator-popup{padding:5px;border-radius:3px}.tabulator-tooltip{max-width:Min(500px,100%);padding:3px 5px;border-radius:2px;box-shadow:none;font-size:12px;pointer-events:none}.tabulator-menu .tabulator-menu-item{position:relative;box-sizing:border-box;padding:5px 10px;user-select:none}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover{cursor:pointer;background:#fff}}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu{padding-right:25px}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu:after{display:inline-block;position:absolute;top:calc(5px + .4em);right:10px;height:7px;width:7px;content:\\\"\\\";border-color:#ddd;border-style:solid;border-width:1px 1px 0 0;vertical-align:top;transform:rotate(45deg)}.tabulator-menu .tabulator-menu-separator{border-top:1px solid #ddd}.tabulator-edit-list{max-height:200px;font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch}.tabulator-edit-list .tabulator-edit-list-item{padding:4px;color:#333;outline:none}.tabulator-edit-list .tabulator-edit-list-item.active{color:#fff;background:#1d68cd}.tabulator-edit-list .tabulator-edit-list-item.active.focused{outline:1px solid hsla(0,0%,100%,.5)}.tabulator-edit-list .tabulator-edit-list-item.focused{outline:1px solid #1d68cd}@media (hover:hover) and (pointer:fine){.tabulator-edit-list .tabulator-edit-list-item:hover{cursor:pointer;color:#fff;background:#1d68cd}}.tabulator-edit-list .tabulator-edit-list-placeholder{padding:4px;color:#333;text-align:center}.tabulator-edit-list .tabulator-edit-list-group{border-bottom:1px solid #ddd;padding:6px 4px 4px;color:#333;font-weight:700}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-2,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-2{padding-left:12px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-3,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-3{padding-left:20px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-4,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-4{padding-left:28px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-5,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-5{padding-left:36px}.tabulator.tabulator-ltr{direction:ltr}.tabulator.tabulator-rtl{text-align:initial;direction:rtl}.tabulator.tabulator-rtl .tabulator-header .tabulator-col{text-align:initial;border-left:1px solid #ddd;border-right:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{margin-right:0;margin-left:-1px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:0;padding-left:25px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{left:8px;right:auto}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell{border-right:initial;border-left:1px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-branch{margin-right:0;margin-left:5px;border-bottom-left-radius:0;border-bottom-right-radius:1px;border-left:initial;border-right:2px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-control{margin-right:0;margin-left:5px}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-left:2px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-right:2px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-col-resize-handle:last-of-type{width:3px;margin-left:0;margin-right:-3px}.tabulator.tabulator-rtl .tabulator-footer .tabulator-calcs-holder{text-align:initial}.tabulator-print-fullscreen{position:absolute;top:0;bottom:0;left:0;right:0;z-index:10000}body.tabulator-print-fullscreen-hide>:not(.tabulator-print-fullscreen){display:none!important}.tabulator-print-table{border-collapse:collapse}.tabulator-print-table .tabulator-data-tree-branch{display:inline-block;vertical-align:middle;height:9px;width:7px;margin-top:-9px;margin-right:5px;border-bottom-left-radius:1px;border-left:2px solid #ddd;border-bottom:2px solid #ddd}.tabulator-print-table .tabulator-print-table-group{box-sizing:border-box;border-bottom:1px solid #999;border-right:1px solid #ddd;border-top:1px solid #999;padding:5px 5px 5px 10px;background:#ccc;font-weight:700;min-width:100%}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-print-table-group:hover{cursor:pointer;background-color:rgba(0,0,0,.1)}}.tabulator-print-table .tabulator-print-table-group.tabulator-group-visible .tabulator-arrow{margin-right:10px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;border-bottom:0}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-1 td{padding-left:30px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-2 td{padding-left:50px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-3 td{padding-left:70px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-4 td{padding-left:90px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-5 td{padding-left:110px!important}.tabulator-print-table .tabulator-print-table-group .tabulator-group-toggle{display:inline-block}.tabulator-print-table .tabulator-print-table-group .tabulator-arrow{display:inline-block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-align:middle}.tabulator-print-table .tabulator-print-table-group span{color:#d00}.tabulator-print-table .tabulator-data-tree-control{display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;height:11px;width:11px;margin-right:5px;border:1px solid #333;border-radius:2px;background:rgba(0,0,0,.1);overflow:hidden}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-data-tree-control:hover{cursor:pointer;background:rgba(0,0,0,.2)}}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse{display:inline-block;position:relative;height:7px;width:1px;background:transparent}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{position:absolute;content:\\\"\\\";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand{display:inline-block;position:relative;height:7px;width:1px;background:#333}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{position:absolute;content:\\\"\\\";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator{border:none;background-color:#fff}.tabulator .tabulator-header .tabulator-calcs-holder{background:#f2f2f2!important;border-bottom:1px solid #999}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:#f2f2f2!important}.tabulator .tabulator-tableholder .tabulator-placeholder span{color:#000}.tabulator .tabulator-footer .tabulator-calcs-holder{background:#f2f2f2!important;border-bottom:1px solid #fff}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{background:#f2f2f2!important}.tabulator-row{border-bottom:1px solid #ddd}.tabulator-row .tabulator-cell:last-of-type{border-right:none}.tabulator-row.tabulator-group span{color:#666}.tabulator-print-table .tabulator-print-table-group span{margin-left:10px;color:#666}\\n/*# sourceMappingURL=tabulator_simple.min.css.map */\");\n }, function(Bokeh) {\n Bokeh.set_log_level(\"info\");\n },\nfunction(Bokeh) {} // ensure no trailing comma for IE\n ];\n\n function run_inline_js() {\n if ((root.Bokeh !== undefined) || (force === true)) {\n for (var i = 0; i < inline_js.length; i++) {\n inline_js[i].call(root, root.Bokeh);\n }\n // Cache old bokeh versions\n if (Bokeh != undefined && !reloading) {\n\tvar NewBokeh = root.Bokeh;\n\tif (Bokeh.versions === undefined) {\n\t Bokeh.versions = new Map();\n\t}\n\tif (NewBokeh.version !== Bokeh.version) {\n\t Bokeh.versions.set(NewBokeh.version, NewBokeh)\n\t}\n\troot.Bokeh = Bokeh;\n }} else if (Date.now() < root._bokeh_timeout) {\n setTimeout(run_inline_js, 100);\n } else if (!root._bokeh_failed_load) {\n console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n root._bokeh_failed_load = true;\n }\n root._bokeh_is_initializing = false\n }\n\n function load_or_wait() {\n // Implement a backoff loop that tries to ensure we do not load multiple\n // versions of Bokeh and its dependencies at the same time.\n // In recent versions we use the root._bokeh_is_initializing flag\n // to determine whether there is an ongoing attempt to initialize\n // bokeh, however for backward compatibility we also try to ensure\n // that we do not start loading a newer (Panel>=1.0 and Bokeh>3) version\n // before older versions are fully initialized.\n if (root._bokeh_is_initializing && Date.now() > root._bokeh_timeout) {\n root._bokeh_is_initializing = false;\n root._bokeh_onload_callbacks = undefined;\n console.log(\"Bokeh: BokehJS was loaded multiple times but one version failed to initialize.\");\n load_or_wait();\n } else if (root._bokeh_is_initializing || (typeof root._bokeh_is_initializing === \"undefined\" && root._bokeh_onload_callbacks !== undefined)) {\n setTimeout(load_or_wait, 100);\n } else {\n Bokeh = root.Bokeh;\n bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n root._bokeh_is_initializing = true\n root._bokeh_onload_callbacks = []\n if (!reloading && (!bokeh_loaded || is_dev)) {\n\troot.Bokeh = undefined;\n }\n load_libs(css_urls, js_urls, js_modules, js_exports, function() {\n\tconsole.debug(\"Bokeh: BokehJS plotting callback run at\", now());\n\trun_inline_js();\n });\n }\n }\n // Give older versions of the autoload script a head-start to ensure\n // they initialize before we start loading newer version.\n setTimeout(load_or_wait, 100)\n}(window));" - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "application/javascript": [ - "\n", - "if ((window.PyViz === undefined) || (window.PyViz instanceof HTMLElement)) {\n", - " window.PyViz = {comms: {}, comm_status:{}, kernels:{}, receivers: {}, plot_index: []}\n", - "}\n", - "\n", - "\n", - " function JupyterCommManager() {\n", - " }\n", - "\n", - " JupyterCommManager.prototype.register_target = function(plot_id, comm_id, msg_handler) {\n", - " if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n", - " var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n", - " comm_manager.register_target(comm_id, function(comm) {\n", - " comm.on_msg(msg_handler);\n", - " });\n", - " } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n", - " window.PyViz.kernels[plot_id].registerCommTarget(comm_id, function(comm) {\n", - " comm.onMsg = msg_handler;\n", - " });\n", - " } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n", - " google.colab.kernel.comms.registerTarget(comm_id, (comm) => {\n", - " var messages = comm.messages[Symbol.asyncIterator]();\n", - " function processIteratorResult(result) {\n", - " var message = result.value;\n", - " console.log(message)\n", - " var content = {data: message.data, comm_id};\n", - " var buffers = []\n", - " for (var buffer of message.buffers || []) {\n", - " buffers.push(new DataView(buffer))\n", - " }\n", - " var metadata = message.metadata || {};\n", - " var msg = {content, buffers, metadata}\n", - " msg_handler(msg);\n", - " return messages.next().then(processIteratorResult);\n", - " }\n", - " return messages.next().then(processIteratorResult);\n", - " })\n", - " }\n", - " }\n", - "\n", - " JupyterCommManager.prototype.get_client_comm = function(plot_id, comm_id, msg_handler) {\n", - " if (comm_id in window.PyViz.comms) {\n", - " return window.PyViz.comms[comm_id];\n", - " } else if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n", - " var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n", - " var comm = comm_manager.new_comm(comm_id, {}, {}, {}, comm_id);\n", - " if (msg_handler) {\n", - " comm.on_msg(msg_handler);\n", - " }\n", - " } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n", - " var comm = window.PyViz.kernels[plot_id].connectToComm(comm_id);\n", - " comm.open();\n", - " if (msg_handler) {\n", - " comm.onMsg = msg_handler;\n", - " }\n", - " } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n", - " var comm_promise = google.colab.kernel.comms.open(comm_id)\n", - " comm_promise.then((comm) => {\n", - " window.PyViz.comms[comm_id] = comm;\n", - " if (msg_handler) {\n", - " var messages = comm.messages[Symbol.asyncIterator]();\n", - " function processIteratorResult(result) {\n", - " var message = result.value;\n", - " var content = {data: message.data};\n", - " var metadata = message.metadata || {comm_id};\n", - " var msg = {content, metadata}\n", - " msg_handler(msg);\n", - " return messages.next().then(processIteratorResult);\n", - " }\n", - " return messages.next().then(processIteratorResult);\n", - " }\n", - " }) \n", - " var sendClosure = (data, metadata, buffers, disposeOnDone) => {\n", - " return comm_promise.then((comm) => {\n", - " comm.send(data, metadata, buffers, disposeOnDone);\n", - " });\n", - " };\n", - " var comm = {\n", - " send: sendClosure\n", - " };\n", - " }\n", - " window.PyViz.comms[comm_id] = comm;\n", - " return comm;\n", - " }\n", - " window.PyViz.comm_manager = new JupyterCommManager();\n", - " \n", - "\n", - "\n", - "var JS_MIME_TYPE = 'application/javascript';\n", - "var HTML_MIME_TYPE = 'text/html';\n", - "var EXEC_MIME_TYPE = 'application/vnd.holoviews_exec.v0+json';\n", - "var CLASS_NAME = 'output';\n", - "\n", - "/**\n", - " * Render data to the DOM node\n", - " */\n", - "function render(props, node) {\n", - " var div = document.createElement(\"div\");\n", - " var script = document.createElement(\"script\");\n", - " node.appendChild(div);\n", - " node.appendChild(script);\n", - "}\n", - "\n", - "/**\n", - " * Handle when a new output is added\n", - " */\n", - "function handle_add_output(event, handle) {\n", - " var output_area = handle.output_area;\n", - " var output = handle.output;\n", - " if ((output.data == undefined) || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {\n", - " return\n", - " }\n", - " var id = output.metadata[EXEC_MIME_TYPE][\"id\"];\n", - " var toinsert = output_area.element.find(\".\" + CLASS_NAME.split(' ')[0]);\n", - " if (id !== undefined) {\n", - " var nchildren = toinsert.length;\n", - " var html_node = toinsert[nchildren-1].children[0];\n", - " html_node.innerHTML = output.data[HTML_MIME_TYPE];\n", - " var scripts = [];\n", - " var nodelist = html_node.querySelectorAll(\"script\");\n", - " for (var i in nodelist) {\n", - " if (nodelist.hasOwnProperty(i)) {\n", - " scripts.push(nodelist[i])\n", - " }\n", - " }\n", - "\n", - " scripts.forEach( function (oldScript) {\n", - " var newScript = document.createElement(\"script\");\n", - " var attrs = [];\n", - " var nodemap = oldScript.attributes;\n", - " for (var j in nodemap) {\n", - " if (nodemap.hasOwnProperty(j)) {\n", - " attrs.push(nodemap[j])\n", - " }\n", - " }\n", - " attrs.forEach(function(attr) { newScript.setAttribute(attr.name, attr.value) });\n", - " newScript.appendChild(document.createTextNode(oldScript.innerHTML));\n", - " oldScript.parentNode.replaceChild(newScript, oldScript);\n", - " });\n", - " if (JS_MIME_TYPE in output.data) {\n", - " toinsert[nchildren-1].children[1].textContent = output.data[JS_MIME_TYPE];\n", - " }\n", - " output_area._hv_plot_id = id;\n", - " if ((window.Bokeh !== undefined) && (id in Bokeh.index)) {\n", - " window.PyViz.plot_index[id] = Bokeh.index[id];\n", - " } else {\n", - " window.PyViz.plot_index[id] = null;\n", - " }\n", - " } else if (output.metadata[EXEC_MIME_TYPE][\"server_id\"] !== undefined) {\n", - " var bk_div = document.createElement(\"div\");\n", - " bk_div.innerHTML = output.data[HTML_MIME_TYPE];\n", - " var script_attrs = bk_div.children[0].attributes;\n", - " for (var i = 0; i < script_attrs.length; i++) {\n", - " toinsert[toinsert.length - 1].childNodes[1].setAttribute(script_attrs[i].name, script_attrs[i].value);\n", - " }\n", - " // store reference to server id on output_area\n", - " output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE][\"server_id\"];\n", - " }\n", - "}\n", - "\n", - "/**\n", - " * Handle when an output is cleared or removed\n", - " */\n", - "function handle_clear_output(event, handle) {\n", - " var id = handle.cell.output_area._hv_plot_id;\n", - " var server_id = handle.cell.output_area._bokeh_server_id;\n", - " if (((id === undefined) || !(id in PyViz.plot_index)) && (server_id !== undefined)) { return; }\n", - " var comm = window.PyViz.comm_manager.get_client_comm(\"hv-extension-comm\", \"hv-extension-comm\", function () {});\n", - " if (server_id !== null) {\n", - " comm.send({event_type: 'server_delete', 'id': server_id});\n", - " return;\n", - " } else if (comm !== null) {\n", - " comm.send({event_type: 'delete', 'id': id});\n", - " }\n", - " delete PyViz.plot_index[id];\n", - " if ((window.Bokeh !== undefined) & (id in window.Bokeh.index)) {\n", - " var doc = window.Bokeh.index[id].model.document\n", - " doc.clear();\n", - " const i = window.Bokeh.documents.indexOf(doc);\n", - " if (i > -1) {\n", - " window.Bokeh.documents.splice(i, 1);\n", - " }\n", - " }\n", - "}\n", - "\n", - "/**\n", - " * Handle kernel restart event\n", - " */\n", - "function handle_kernel_cleanup(event, handle) {\n", - " delete PyViz.comms[\"hv-extension-comm\"];\n", - " window.PyViz.plot_index = {}\n", - "}\n", - "\n", - "/**\n", - " * Handle update_display_data messages\n", - " */\n", - "function handle_update_output(event, handle) {\n", - " handle_clear_output(event, {cell: {output_area: handle.output_area}})\n", - " handle_add_output(event, handle)\n", - "}\n", - "\n", - "function register_renderer(events, OutputArea) {\n", - " function append_mime(data, metadata, element) {\n", - " // create a DOM node to render to\n", - " var toinsert = this.create_output_subarea(\n", - " metadata,\n", - " CLASS_NAME,\n", - " EXEC_MIME_TYPE\n", - " );\n", - " this.keyboard_manager.register_events(toinsert);\n", - " // Render to node\n", - " var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};\n", - " render(props, toinsert[0]);\n", - " element.append(toinsert);\n", - " return toinsert\n", - " }\n", - "\n", - " events.on('output_added.OutputArea', handle_add_output);\n", - " events.on('output_updated.OutputArea', handle_update_output);\n", - " events.on('clear_output.CodeCell', handle_clear_output);\n", - " events.on('delete.Cell', handle_clear_output);\n", - " events.on('kernel_ready.Kernel', handle_kernel_cleanup);\n", - "\n", - " OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {\n", - " safe: true,\n", - " index: 0\n", - " });\n", - "}\n", - "\n", - "if (window.Jupyter !== undefined) {\n", - " try {\n", - " var events = require('base/js/events');\n", - " var OutputArea = require('notebook/js/outputarea').OutputArea;\n", - " if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {\n", - " register_renderer(events, OutputArea);\n", - " }\n", - " } catch(err) {\n", - " }\n", - "}\n" - ], - "application/vnd.holoviews_load.v0+json": "\nif ((window.PyViz === undefined) || (window.PyViz instanceof HTMLElement)) {\n window.PyViz = {comms: {}, comm_status:{}, kernels:{}, receivers: {}, plot_index: []}\n}\n\n\n function JupyterCommManager() {\n }\n\n JupyterCommManager.prototype.register_target = function(plot_id, comm_id, msg_handler) {\n if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n comm_manager.register_target(comm_id, function(comm) {\n comm.on_msg(msg_handler);\n });\n } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n window.PyViz.kernels[plot_id].registerCommTarget(comm_id, function(comm) {\n comm.onMsg = msg_handler;\n });\n } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n google.colab.kernel.comms.registerTarget(comm_id, (comm) => {\n var messages = comm.messages[Symbol.asyncIterator]();\n function processIteratorResult(result) {\n var message = result.value;\n console.log(message)\n var content = {data: message.data, comm_id};\n var buffers = []\n for (var buffer of message.buffers || []) {\n buffers.push(new DataView(buffer))\n }\n var metadata = message.metadata || {};\n var msg = {content, buffers, metadata}\n msg_handler(msg);\n return messages.next().then(processIteratorResult);\n }\n return messages.next().then(processIteratorResult);\n })\n }\n }\n\n JupyterCommManager.prototype.get_client_comm = function(plot_id, comm_id, msg_handler) {\n if (comm_id in window.PyViz.comms) {\n return window.PyViz.comms[comm_id];\n } else if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n var comm = comm_manager.new_comm(comm_id, {}, {}, {}, comm_id);\n if (msg_handler) {\n comm.on_msg(msg_handler);\n }\n } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n var comm = window.PyViz.kernels[plot_id].connectToComm(comm_id);\n comm.open();\n if (msg_handler) {\n comm.onMsg = msg_handler;\n }\n } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n var comm_promise = google.colab.kernel.comms.open(comm_id)\n comm_promise.then((comm) => {\n window.PyViz.comms[comm_id] = comm;\n if (msg_handler) {\n var messages = comm.messages[Symbol.asyncIterator]();\n function processIteratorResult(result) {\n var message = result.value;\n var content = {data: message.data};\n var metadata = message.metadata || {comm_id};\n var msg = {content, metadata}\n msg_handler(msg);\n return messages.next().then(processIteratorResult);\n }\n return messages.next().then(processIteratorResult);\n }\n }) \n var sendClosure = (data, metadata, buffers, disposeOnDone) => {\n return comm_promise.then((comm) => {\n comm.send(data, metadata, buffers, disposeOnDone);\n });\n };\n var comm = {\n send: sendClosure\n };\n }\n window.PyViz.comms[comm_id] = comm;\n return comm;\n }\n window.PyViz.comm_manager = new JupyterCommManager();\n \n\n\nvar JS_MIME_TYPE = 'application/javascript';\nvar HTML_MIME_TYPE = 'text/html';\nvar EXEC_MIME_TYPE = 'application/vnd.holoviews_exec.v0+json';\nvar CLASS_NAME = 'output';\n\n/**\n * Render data to the DOM node\n */\nfunction render(props, node) {\n var div = document.createElement(\"div\");\n var script = document.createElement(\"script\");\n node.appendChild(div);\n node.appendChild(script);\n}\n\n/**\n * Handle when a new output is added\n */\nfunction handle_add_output(event, handle) {\n var output_area = handle.output_area;\n var output = handle.output;\n if ((output.data == undefined) || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {\n return\n }\n var id = output.metadata[EXEC_MIME_TYPE][\"id\"];\n var toinsert = output_area.element.find(\".\" + CLASS_NAME.split(' ')[0]);\n if (id !== undefined) {\n var nchildren = toinsert.length;\n var html_node = toinsert[nchildren-1].children[0];\n html_node.innerHTML = output.data[HTML_MIME_TYPE];\n var scripts = [];\n var nodelist = html_node.querySelectorAll(\"script\");\n for (var i in nodelist) {\n if (nodelist.hasOwnProperty(i)) {\n scripts.push(nodelist[i])\n }\n }\n\n scripts.forEach( function (oldScript) {\n var newScript = document.createElement(\"script\");\n var attrs = [];\n var nodemap = oldScript.attributes;\n for (var j in nodemap) {\n if (nodemap.hasOwnProperty(j)) {\n attrs.push(nodemap[j])\n }\n }\n attrs.forEach(function(attr) { newScript.setAttribute(attr.name, attr.value) });\n newScript.appendChild(document.createTextNode(oldScript.innerHTML));\n oldScript.parentNode.replaceChild(newScript, oldScript);\n });\n if (JS_MIME_TYPE in output.data) {\n toinsert[nchildren-1].children[1].textContent = output.data[JS_MIME_TYPE];\n }\n output_area._hv_plot_id = id;\n if ((window.Bokeh !== undefined) && (id in Bokeh.index)) {\n window.PyViz.plot_index[id] = Bokeh.index[id];\n } else {\n window.PyViz.plot_index[id] = null;\n }\n } else if (output.metadata[EXEC_MIME_TYPE][\"server_id\"] !== undefined) {\n var bk_div = document.createElement(\"div\");\n bk_div.innerHTML = output.data[HTML_MIME_TYPE];\n var script_attrs = bk_div.children[0].attributes;\n for (var i = 0; i < script_attrs.length; i++) {\n toinsert[toinsert.length - 1].childNodes[1].setAttribute(script_attrs[i].name, script_attrs[i].value);\n }\n // store reference to server id on output_area\n output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE][\"server_id\"];\n }\n}\n\n/**\n * Handle when an output is cleared or removed\n */\nfunction handle_clear_output(event, handle) {\n var id = handle.cell.output_area._hv_plot_id;\n var server_id = handle.cell.output_area._bokeh_server_id;\n if (((id === undefined) || !(id in PyViz.plot_index)) && (server_id !== undefined)) { return; }\n var comm = window.PyViz.comm_manager.get_client_comm(\"hv-extension-comm\", \"hv-extension-comm\", function () {});\n if (server_id !== null) {\n comm.send({event_type: 'server_delete', 'id': server_id});\n return;\n } else if (comm !== null) {\n comm.send({event_type: 'delete', 'id': id});\n }\n delete PyViz.plot_index[id];\n if ((window.Bokeh !== undefined) & (id in window.Bokeh.index)) {\n var doc = window.Bokeh.index[id].model.document\n doc.clear();\n const i = window.Bokeh.documents.indexOf(doc);\n if (i > -1) {\n window.Bokeh.documents.splice(i, 1);\n }\n }\n}\n\n/**\n * Handle kernel restart event\n */\nfunction handle_kernel_cleanup(event, handle) {\n delete PyViz.comms[\"hv-extension-comm\"];\n window.PyViz.plot_index = {}\n}\n\n/**\n * Handle update_display_data messages\n */\nfunction handle_update_output(event, handle) {\n handle_clear_output(event, {cell: {output_area: handle.output_area}})\n handle_add_output(event, handle)\n}\n\nfunction register_renderer(events, OutputArea) {\n function append_mime(data, metadata, element) {\n // create a DOM node to render to\n var toinsert = this.create_output_subarea(\n metadata,\n CLASS_NAME,\n EXEC_MIME_TYPE\n );\n this.keyboard_manager.register_events(toinsert);\n // Render to node\n var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};\n render(props, toinsert[0]);\n element.append(toinsert);\n return toinsert\n }\n\n events.on('output_added.OutputArea', handle_add_output);\n events.on('output_updated.OutputArea', handle_update_output);\n events.on('clear_output.CodeCell', handle_clear_output);\n events.on('delete.Cell', handle_clear_output);\n events.on('kernel_ready.Kernel', handle_kernel_cleanup);\n\n OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {\n safe: true,\n index: 0\n });\n}\n\nif (window.Jupyter !== undefined) {\n try {\n var events = require('base/js/events');\n var OutputArea = require('notebook/js/outputarea').OutputArea;\n if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {\n register_renderer(events, OutputArea);\n }\n } catch(err) {\n }\n}\n" - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "application/vnd.holoviews_exec.v0+json": "", - "text/html": [ - "
\n", - "
\n", - "
\n", - "" - ] - }, - "metadata": { - "application/vnd.holoviews_exec.v0+json": { - "id": "49df806f-d69c-4beb-8a70-eaead3daef11" - } - }, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "import schedview\n", "import schedview.app.prenight\n", @@ -1461,690 +134,12 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "id": "1a86b787-1ca5-441d-b42e-a113645b8bee", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:36:47.000587Z", - "iopub.status.busy": "2023-10-31T21:36:47.000445Z", - "iopub.status.idle": "2023-10-31T21:36:47.067784Z", - "shell.execute_reply": "2023-10-31T21:36:47.067425Z", - "shell.execute_reply.started": "2023-10-31T21:36:47.000573Z" - }, "tags": [] }, - "outputs": [ - { - "data": { - "application/javascript": [ - "(function(root) {\n", - " function now() {\n", - " return new Date();\n", - " }\n", - "\n", - " var force = true;\n", - " var py_version = '3.3.0'.replace('rc', '-rc.').replace('.dev', '-dev.');\n", - " var is_dev = py_version.indexOf(\"+\") !== -1 || py_version.indexOf(\"-\") !== -1;\n", - " var reloading = true;\n", - " var Bokeh = root.Bokeh;\n", - " var bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n", - "\n", - " if (typeof (root._bokeh_timeout) === \"undefined\" || force) {\n", - " root._bokeh_timeout = Date.now() + 5000;\n", - " root._bokeh_failed_load = false;\n", - " }\n", - "\n", - " function run_callbacks() {\n", - " try {\n", - " root._bokeh_onload_callbacks.forEach(function(callback) {\n", - " if (callback != null)\n", - " callback();\n", - " });\n", - " } finally {\n", - " delete root._bokeh_onload_callbacks;\n", - " }\n", - " console.debug(\"Bokeh: all callbacks have finished\");\n", - " }\n", - "\n", - " function load_libs(css_urls, js_urls, js_modules, js_exports, callback) {\n", - " if (css_urls == null) css_urls = [];\n", - " if (js_urls == null) js_urls = [];\n", - " if (js_modules == null) js_modules = [];\n", - " if (js_exports == null) js_exports = {};\n", - "\n", - " root._bokeh_onload_callbacks.push(callback);\n", - "\n", - " if (root._bokeh_is_loading > 0) {\n", - " console.debug(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n", - " return null;\n", - " }\n", - " if (js_urls.length === 0 && js_modules.length === 0 && Object.keys(js_exports).length === 0) {\n", - " run_callbacks();\n", - " return null;\n", - " }\n", - " if (!reloading) {\n", - " console.debug(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n", - " }\n", - "\n", - " function on_load() {\n", - " root._bokeh_is_loading--;\n", - " if (root._bokeh_is_loading === 0) {\n", - " console.debug(\"Bokeh: all BokehJS libraries/stylesheets loaded\");\n", - " run_callbacks()\n", - " }\n", - " }\n", - " window._bokeh_on_load = on_load\n", - "\n", - " function on_error() {\n", - " console.error(\"failed to load \" + url);\n", - " }\n", - "\n", - " var skip = [];\n", - " if (window.requirejs) {\n", - " window.requirejs.config({'packages': {}, 'paths': {'tabulator': 'https://cdn.jsdelivr.net/npm/tabulator-tables@5.5.0/dist/js/tabulator', 'moment': 'https://cdn.jsdelivr.net/npm/luxon/build/global/luxon.min', 'xtermjs': 'https://cdn.jsdelivr.net/npm/xterm@4.14.1/lib/xterm', 'xtermjsweblinks': 'https://cdn.jsdelivr.net/npm/xterm-addon-web-links@0.4.0/lib/xterm-addon-web-links', 'jspanel': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/jspanel', 'jspanel-modal': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal', 'jspanel-tooltip': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip', 'jspanel-hint': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint', 'jspanel-layout': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout', 'jspanel-contextmenu': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu', 'jspanel-dock': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock', 'gridstack': 'https://cdn.jsdelivr.net/npm/gridstack@7.2.3/dist/gridstack-all', 'notyf': 'https://cdn.jsdelivr.net/npm/notyf@3/notyf.min'}, 'shim': {'xtermjsweblinks': {'exports': 'WebLinksAddon', 'deps': ['xtermjs']}, 'jspanel': {'exports': 'jsPanel'}, 'gridstack': {'exports': 'GridStack'}}});\n", - " require([\"tabulator\"], function(Tabulator) {\n", - "\twindow.Tabulator = Tabulator\n", - "\ton_load()\n", - " })\n", - " require([\"moment\"], function(moment) {\n", - "\twindow.moment = moment\n", - "\ton_load()\n", - " })\n", - " require([\"xtermjs\"], function(xtermjs) {\n", - "\twindow.xtermjs = xtermjs\n", - "\ton_load()\n", - " })\n", - " require([\"xtermjsweblinks\"], function(WebLinksAddon) {\n", - "\twindow.WebLinksAddon = WebLinksAddon\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel\"], function(jsPanel) {\n", - "\twindow.jsPanel = jsPanel\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel-modal\"], function() {\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel-tooltip\"], function() {\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel-hint\"], function() {\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel-layout\"], function() {\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel-contextmenu\"], function() {\n", - "\ton_load()\n", - " })\n", - " require([\"jspanel-dock\"], function() {\n", - "\ton_load()\n", - " })\n", - " require([\"gridstack\"], function(GridStack) {\n", - "\twindow.GridStack = GridStack\n", - "\ton_load()\n", - " })\n", - " require([\"notyf\"], function() {\n", - "\ton_load()\n", - " })\n", - " root._bokeh_is_loading = css_urls.length + 13;\n", - " } else {\n", - " root._bokeh_is_loading = css_urls.length + js_urls.length + js_modules.length + Object.keys(js_exports).length;\n", - " }\n", - "\n", - " var existing_stylesheets = []\n", - " var links = document.getElementsByTagName('link')\n", - " for (var i = 0; i < links.length; i++) {\n", - " var link = links[i]\n", - " if (link.href != null) {\n", - "\texisting_stylesheets.push(link.href)\n", - " }\n", - " }\n", - " for (var i = 0; i < css_urls.length; i++) {\n", - " var url = css_urls[i];\n", - " if (existing_stylesheets.indexOf(url) !== -1) {\n", - "\ton_load()\n", - "\tcontinue;\n", - " }\n", - " const element = document.createElement(\"link\");\n", - " element.onload = on_load;\n", - " element.onerror = on_error;\n", - " element.rel = \"stylesheet\";\n", - " element.type = \"text/css\";\n", - " element.href = url;\n", - " console.debug(\"Bokeh: injecting link tag for BokehJS stylesheet: \", url);\n", - " document.body.appendChild(element);\n", - " } if (((window['Tabulator'] !== undefined) && (!(window['Tabulator'] instanceof HTMLElement))) || window.requirejs) {\n", - " var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/tabulator-tables@5.5.0/dist/js/tabulator.js'];\n", - " for (var i = 0; i < urls.length; i++) {\n", - " skip.push(urls[i])\n", - " }\n", - " } if (((window['moment'] !== undefined) && (!(window['moment'] instanceof HTMLElement))) || window.requirejs) {\n", - " var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/luxon/build/global/luxon.min.js'];\n", - " for (var i = 0; i < urls.length; i++) {\n", - " skip.push(urls[i])\n", - " }\n", - " } if (((window['xtermjs'] !== undefined) && (!(window['xtermjs'] instanceof HTMLElement))) || window.requirejs) {\n", - " var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/terminal/xterm@4.14.1/lib/xterm.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/terminal/xterm-addon-web-links@0.4.0/lib/xterm-addon-web-links.js'];\n", - " for (var i = 0; i < urls.length; i++) {\n", - " skip.push(urls[i])\n", - " }\n", - " } if (((window['jsPanel'] !== undefined) && (!(window['jsPanel'] instanceof HTMLElement))) || window.requirejs) {\n", - " var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/jspanel.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock.js'];\n", - " for (var i = 0; i < urls.length; i++) {\n", - " skip.push(urls[i])\n", - " }\n", - " } if (((window['GridStack'] !== undefined) && (!(window['GridStack'] instanceof HTMLElement))) || window.requirejs) {\n", - " var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/gridstack/gridstack@7.2.3/dist/gridstack-all.js'];\n", - " for (var i = 0; i < urls.length; i++) {\n", - " skip.push(urls[i])\n", - " }\n", - " } if (((window['Notyf'] !== undefined) && (!(window['Notyf'] instanceof HTMLElement))) || window.requirejs) {\n", - " var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/notificationarea/notyf@3/notyf.min.js'];\n", - " for (var i = 0; i < urls.length; i++) {\n", - " skip.push(urls[i])\n", - " }\n", - " } var existing_scripts = []\n", - " var scripts = document.getElementsByTagName('script')\n", - " for (var i = 0; i < scripts.length; i++) {\n", - " var script = scripts[i]\n", - " if (script.src != null) {\n", - "\texisting_scripts.push(script.src)\n", - " }\n", - " }\n", - " for (var i = 0; i < js_urls.length; i++) {\n", - " var url = js_urls[i];\n", - " if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n", - "\tif (!window.requirejs) {\n", - "\t on_load();\n", - "\t}\n", - "\tcontinue;\n", - " }\n", - " var element = document.createElement('script');\n", - " element.onload = on_load;\n", - " element.onerror = on_error;\n", - " element.async = false;\n", - " element.src = url;\n", - " console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n", - " document.head.appendChild(element);\n", - " }\n", - " for (var i = 0; i < js_modules.length; i++) {\n", - " var url = js_modules[i];\n", - " if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n", - "\tif (!window.requirejs) {\n", - "\t on_load();\n", - "\t}\n", - "\tcontinue;\n", - " }\n", - " var element = document.createElement('script');\n", - " element.onload = on_load;\n", - " element.onerror = on_error;\n", - " element.async = false;\n", - " element.src = url;\n", - " element.type = \"module\";\n", - " console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n", - " document.head.appendChild(element);\n", - " }\n", - " for (const name in js_exports) {\n", - " var url = js_exports[name];\n", - " if (skip.indexOf(url) >= 0 || root[name] != null) {\n", - "\tif (!window.requirejs) {\n", - "\t on_load();\n", - "\t}\n", - "\tcontinue;\n", - " }\n", - " var element = document.createElement('script');\n", - " element.onerror = on_error;\n", - " element.async = false;\n", - " element.type = \"module\";\n", - " console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n", - " element.textContent = `\n", - " import ${name} from \"${url}\"\n", - " window.${name} = ${name}\n", - " window._bokeh_on_load()\n", - " `\n", - " document.head.appendChild(element);\n", - " }\n", - " if (!js_urls.length && !js_modules.length) {\n", - " on_load()\n", - " }\n", - " };\n", - "\n", - " function inject_raw_css(css) {\n", - " const element = document.createElement(\"style\");\n", - " element.appendChild(document.createTextNode(css));\n", - " document.body.appendChild(element);\n", - " }\n", - "\n", - " var js_urls = [\"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/tabulator-tables@5.5.0/dist/js/tabulator.js\", \"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/luxon/build/global/luxon.min.js\", \"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/terminal/xterm@4.14.1/lib/xterm.js\", \"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/terminal/xterm-addon-web-links@0.4.0/lib/xterm-addon-web-links.js\"];\n", - " var js_modules = [];\n", - " var js_exports = {};\n", - " var css_urls = [\"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/tabulator-tables@5.5.0/dist/css/tabulator_simple.min.css\", \"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/terminal/xterm@4.11.0/css/xterm.css\", \"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/font-awesome/css/all.min.css\"];\n", - " var inline_js = [ function(Bokeh) {\n", - " inject_raw_css(\".tabulator{position:relative;border:1px solid #999;font-size:14px;text-align:left;overflow:hidden;-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0);transform:translateZ(0)}.tabulator[tabulator-layout=fitDataFill] .tabulator-tableholder .tabulator-table{min-width:100%}.tabulator[tabulator-layout=fitDataTable]{display:inline-block}.tabulator.tabulator-block-select{user-select:none}.tabulator .tabulator-header{position:relative;box-sizing:border-box;width:100%;border-bottom:1px solid #999;background-color:#fff;color:#555;font-weight:700;white-space:nowrap;overflow:hidden;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator .tabulator-header.tabulator-header-hidden{display:none}.tabulator .tabulator-header .tabulator-header-contents{position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-header-contents .tabulator-headers{display:inline-block}.tabulator .tabulator-header .tabulator-col{display:inline-flex;position:relative;box-sizing:border-box;flex-direction:column;justify-content:flex-start;border-right:1px solid #ddd;background:#fff;text-align:left;vertical-align:bottom;overflow:hidden}.tabulator .tabulator-header .tabulator-col.tabulator-moving{position:absolute;border:1px solid #999;background:#e6e6e6;pointer-events:none}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{box-sizing:border-box;position:relative;padding:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button{padding:0 8px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button:hover{cursor:pointer;opacity:.6}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title-holder{position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{box-sizing:border-box;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title.tabulator-col-title-wrap{white-space:normal;text-overflow:clip}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor{box-sizing:border-box;width:100%;border:1px solid #999;padding:1px;background:#fff}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-header-popup-button+.tabulator-title-editor{width:calc(100% - 22px)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{display:flex;align-items:center;position:absolute;top:0;bottom:0;right:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{position:relative;display:flex;border-top:1px solid #ddd;overflow:hidden;margin-right:-1px}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter{position:relative;box-sizing:border-box;margin-top:2px;width:100%;text-align:center}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea{height:auto!important}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg{margin-top:3px}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear{width:0;height:0}.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:25px}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover{cursor:pointer;background-color:#e6e6e6}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter{color:#bbb}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-bottom:6px solid #555}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter{color:#666}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-bottom:6px solid #555}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid #666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter{color:#666}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-top:6px solid #555}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:none;border-top:6px solid #666;color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title{writing-mode:vertical-rl;text-orientation:mixed;display:flex;align-items:center;justify-content:center}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title{transform:rotate(180deg)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title{padding-right:0;padding-top:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title{padding-right:0;padding-bottom:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-sorter{justify-content:center;left:0;right:0;top:4px;bottom:auto}.tabulator .tabulator-header .tabulator-frozen{position:sticky;left:0;z-index:10}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left{border-right:2px solid #ddd}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right{border-left:2px solid #ddd}.tabulator .tabulator-header .tabulator-calcs-holder{box-sizing:border-box;background:#fff!important;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:#fff!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle,.tabulator .tabulator-header .tabulator-frozen-rows-holder:empty{display:none}.tabulator .tabulator-tableholder{position:relative;width:100%;white-space:nowrap;overflow:auto;-webkit-overflow-scrolling:touch}.tabulator .tabulator-tableholder:focus{outline:none}.tabulator .tabulator-tableholder .tabulator-placeholder{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%}.tabulator .tabulator-tableholder .tabulator-placeholder[tabulator-render-mode=virtual]{min-height:100%;min-width:100%}.tabulator .tabulator-tableholder .tabulator-placeholder .tabulator-placeholder-contents{display:inline-block;text-align:center;padding:10px;color:#ccc;font-weight:700;font-size:20px;white-space:normal}.tabulator .tabulator-tableholder .tabulator-table{position:relative;display:inline-block;background-color:#fff;white-space:nowrap;overflow:visible;color:#333}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs{font-weight:700;background:#f2f2f2!important}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top{border-bottom:2px solid #ddd}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom{border-top:2px solid #ddd}.tabulator .tabulator-footer{border-top:1px solid #999;background-color:#fff;color:#555;font-weight:700;white-space:nowrap;user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator .tabulator-footer .tabulator-footer-contents{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:5px 10px}.tabulator .tabulator-footer .tabulator-footer-contents:empty{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder{box-sizing:border-box;width:100%;text-align:left;background:#fff!important;border-bottom:1px solid #ddd;border-top:1px solid #ddd;overflow:hidden}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{display:inline-block;background:#fff!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder:only-child{margin-bottom:-5px;border-bottom:none}.tabulator .tabulator-footer>*+.tabulator-page-counter{margin-left:10px}.tabulator .tabulator-footer .tabulator-page-counter{font-weight:400}.tabulator .tabulator-footer .tabulator-paginator{flex:1;text-align:right;color:#555;font-family:inherit;font-weight:inherit;font-size:inherit}.tabulator .tabulator-footer .tabulator-page-size{display:inline-block;margin:0 5px;padding:2px 5px;border:1px solid #aaa;border-radius:3px}.tabulator .tabulator-footer .tabulator-pages{margin:0 7px}.tabulator .tabulator-footer .tabulator-page{display:inline-block;margin:0 2px;padding:2px 5px;border:1px solid #aaa;border-radius:3px;background:hsla(0,0%,100%,.2)}.tabulator .tabulator-footer .tabulator-page.active{color:#d00}.tabulator .tabulator-footer .tabulator-page:disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-footer .tabulator-page:not(.disabled):hover{cursor:pointer;background:rgba(0,0,0,.2);color:#fff}}.tabulator .tabulator-col-resize-handle{position:relative;display:inline-block;width:6px;margin-left:-3px;margin-right:-3px;z-index:10;vertical-align:middle}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-col-resize-handle:hover{cursor:ew-resize}}.tabulator .tabulator-col-resize-handle:last-of-type{width:3px;margin-right:0}.tabulator .tabulator-alert{position:absolute;display:flex;align-items:center;top:0;left:0;z-index:100;height:100%;width:100%;background:rgba(0,0,0,.4);text-align:center}.tabulator .tabulator-alert .tabulator-alert-msg{display:inline-block;margin:0 auto;padding:10px 20px;border-radius:10px;background:#fff;font-weight:700;font-size:16px}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-msg{border:4px solid #333;color:#000}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-error{border:4px solid #d00;color:#590000}.tabulator-row{position:relative;box-sizing:border-box;min-height:22px}.tabulator-row,.tabulator-row.tabulator-row-even{background-color:#fff}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selectable:hover{background-color:#bbb;cursor:pointer}}.tabulator-row.tabulator-selected{background-color:#9abcea}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selected:hover{background-color:#769bcc;cursor:pointer}}.tabulator-row.tabulator-row-moving{border:1px solid #000;background:#fff}.tabulator-row.tabulator-moving{position:absolute;border-top:1px solid #ddd;border-bottom:1px solid #ddd;pointer-events:none;z-index:15}.tabulator-row .tabulator-row-resize-handle{position:absolute;right:0;bottom:0;left:0;height:5px}.tabulator-row .tabulator-row-resize-handle.prev{top:0;bottom:auto}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-row-resize-handle:hover{cursor:ns-resize}}.tabulator-row .tabulator-responsive-collapse{box-sizing:border-box;padding:5px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.tabulator-row .tabulator-responsive-collapse:empty{display:none}.tabulator-row .tabulator-responsive-collapse table{font-size:14px}.tabulator-row .tabulator-responsive-collapse table tr td{position:relative}.tabulator-row .tabulator-responsive-collapse table tr td:first-of-type{padding-right:10px}.tabulator-row .tabulator-cell{display:inline-block;position:relative;box-sizing:border-box;padding:4px;border-right:1px solid #ddd;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tabulator-row .tabulator-cell.tabulator-frozen{display:inline-block;position:sticky;left:0;background-color:inherit;z-index:10}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-right:2px solid #ddd}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-left:2px solid #ddd}.tabulator-row .tabulator-cell.tabulator-editing{border:1px solid #1d68cd;outline:none;padding:0}.tabulator-row .tabulator-cell.tabulator-editing input,.tabulator-row .tabulator-cell.tabulator-editing select{border:1px;background:transparent;outline:none}.tabulator-row .tabulator-cell.tabulator-validation-fail{border:1px solid #d00}.tabulator-row .tabulator-cell.tabulator-validation-fail input,.tabulator-row .tabulator-cell.tabulator-validation-fail select{border:1px;background:transparent;color:#d00}.tabulator-row .tabulator-cell.tabulator-row-handle{display:inline-flex;align-items:center;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box{width:80%}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar{width:100%;height:3px;margin-top:2px;background:#666}.tabulator-row .tabulator-cell .tabulator-data-tree-branch{display:inline-block;vertical-align:middle;height:9px;width:7px;margin-top:-9px;margin-right:5px;border-bottom-left-radius:1px;border-left:2px solid #ddd;border-bottom:2px solid #ddd}.tabulator-row .tabulator-cell .tabulator-data-tree-control{display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;height:11px;width:11px;margin-right:5px;border:1px solid #333;border-radius:2px;background:rgba(0,0,0,.1);overflow:hidden}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-data-tree-control:hover{cursor:pointer;background:rgba(0,0,0,.2)}}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse{display:inline-block;position:relative;height:7px;width:1px;background:transparent}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{position:absolute;content:\\\"\\\";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand{display:inline-block;position:relative;height:7px;width:1px;background:#333}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{position:absolute;content:\\\"\\\";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle{display:inline-flex;align-items:center;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;height:15px;width:15px;border-radius:20px;background:#666;color:#fff;font-weight:700;font-size:1.1em}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover{opacity:.7;cursor:pointer}}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close{display:initial}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open{display:none}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle svg{stroke:#fff}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close{display:none}.tabulator-row .tabulator-cell .tabulator-traffic-light{display:inline-block;height:14px;width:14px;border-radius:14px}.tabulator-row.tabulator-group{box-sizing:border-box;border-bottom:1px solid #999;border-right:1px solid #ddd;border-top:1px solid #999;padding:5px 5px 5px 10px;background:#ccc;font-weight:700;min-width:100%}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-group:hover{cursor:pointer;background-color:rgba(0,0,0,.1)}}.tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow{margin-right:10px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;border-bottom:0}.tabulator-row.tabulator-group.tabulator-group-level-1{padding-left:30px}.tabulator-row.tabulator-group.tabulator-group-level-2{padding-left:50px}.tabulator-row.tabulator-group.tabulator-group-level-3{padding-left:70px}.tabulator-row.tabulator-group.tabulator-group-level-4{padding-left:90px}.tabulator-row.tabulator-group.tabulator-group-level-5{padding-left:110px}.tabulator-row.tabulator-group .tabulator-group-toggle{display:inline-block}.tabulator-row.tabulator-group .tabulator-arrow{display:inline-block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-align:middle}.tabulator-row.tabulator-group span{margin-left:10px;color:#d00}.tabulator-popup-container{position:absolute;display:inline-block;box-sizing:border-box;background:#fff;border:1px solid #ddd;box-shadow:0 0 5px 0 rgba(0,0,0,.2);font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:10000}.tabulator-popup{padding:5px;border-radius:3px}.tabulator-tooltip{max-width:Min(500px,100%);padding:3px 5px;border-radius:2px;box-shadow:none;font-size:12px;pointer-events:none}.tabulator-menu .tabulator-menu-item{position:relative;box-sizing:border-box;padding:5px 10px;user-select:none}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover{cursor:pointer;background:#fff}}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu{padding-right:25px}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu:after{display:inline-block;position:absolute;top:calc(5px + .4em);right:10px;height:7px;width:7px;content:\\\"\\\";border-color:#ddd;border-style:solid;border-width:1px 1px 0 0;vertical-align:top;transform:rotate(45deg)}.tabulator-menu .tabulator-menu-separator{border-top:1px solid #ddd}.tabulator-edit-list{max-height:200px;font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch}.tabulator-edit-list .tabulator-edit-list-item{padding:4px;color:#333;outline:none}.tabulator-edit-list .tabulator-edit-list-item.active{color:#fff;background:#1d68cd}.tabulator-edit-list .tabulator-edit-list-item.active.focused{outline:1px solid hsla(0,0%,100%,.5)}.tabulator-edit-list .tabulator-edit-list-item.focused{outline:1px solid #1d68cd}@media (hover:hover) and (pointer:fine){.tabulator-edit-list .tabulator-edit-list-item:hover{cursor:pointer;color:#fff;background:#1d68cd}}.tabulator-edit-list .tabulator-edit-list-placeholder{padding:4px;color:#333;text-align:center}.tabulator-edit-list .tabulator-edit-list-group{border-bottom:1px solid #ddd;padding:6px 4px 4px;color:#333;font-weight:700}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-2,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-2{padding-left:12px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-3,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-3{padding-left:20px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-4,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-4{padding-left:28px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-5,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-5{padding-left:36px}.tabulator.tabulator-ltr{direction:ltr}.tabulator.tabulator-rtl{text-align:initial;direction:rtl}.tabulator.tabulator-rtl .tabulator-header .tabulator-col{text-align:initial;border-left:1px solid #ddd;border-right:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{margin-right:0;margin-left:-1px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:0;padding-left:25px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{left:8px;right:auto}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell{border-right:initial;border-left:1px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-branch{margin-right:0;margin-left:5px;border-bottom-left-radius:0;border-bottom-right-radius:1px;border-left:initial;border-right:2px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-control{margin-right:0;margin-left:5px}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-left:2px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-right:2px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-col-resize-handle:last-of-type{width:3px;margin-left:0;margin-right:-3px}.tabulator.tabulator-rtl .tabulator-footer .tabulator-calcs-holder{text-align:initial}.tabulator-print-fullscreen{position:absolute;top:0;bottom:0;left:0;right:0;z-index:10000}body.tabulator-print-fullscreen-hide>:not(.tabulator-print-fullscreen){display:none!important}.tabulator-print-table{border-collapse:collapse}.tabulator-print-table .tabulator-data-tree-branch{display:inline-block;vertical-align:middle;height:9px;width:7px;margin-top:-9px;margin-right:5px;border-bottom-left-radius:1px;border-left:2px solid #ddd;border-bottom:2px solid #ddd}.tabulator-print-table .tabulator-print-table-group{box-sizing:border-box;border-bottom:1px solid #999;border-right:1px solid #ddd;border-top:1px solid #999;padding:5px 5px 5px 10px;background:#ccc;font-weight:700;min-width:100%}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-print-table-group:hover{cursor:pointer;background-color:rgba(0,0,0,.1)}}.tabulator-print-table .tabulator-print-table-group.tabulator-group-visible .tabulator-arrow{margin-right:10px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;border-bottom:0}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-1 td{padding-left:30px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-2 td{padding-left:50px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-3 td{padding-left:70px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-4 td{padding-left:90px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-5 td{padding-left:110px!important}.tabulator-print-table .tabulator-print-table-group .tabulator-group-toggle{display:inline-block}.tabulator-print-table .tabulator-print-table-group .tabulator-arrow{display:inline-block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-align:middle}.tabulator-print-table .tabulator-print-table-group span{color:#d00}.tabulator-print-table .tabulator-data-tree-control{display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;height:11px;width:11px;margin-right:5px;border:1px solid #333;border-radius:2px;background:rgba(0,0,0,.1);overflow:hidden}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-data-tree-control:hover{cursor:pointer;background:rgba(0,0,0,.2)}}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse{display:inline-block;position:relative;height:7px;width:1px;background:transparent}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{position:absolute;content:\\\"\\\";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand{display:inline-block;position:relative;height:7px;width:1px;background:#333}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{position:absolute;content:\\\"\\\";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator{border:none;background-color:#fff}.tabulator .tabulator-header .tabulator-calcs-holder{background:#f2f2f2!important;border-bottom:1px solid #999}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:#f2f2f2!important}.tabulator .tabulator-tableholder .tabulator-placeholder span{color:#000}.tabulator .tabulator-footer .tabulator-calcs-holder{background:#f2f2f2!important;border-bottom:1px solid #fff}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{background:#f2f2f2!important}.tabulator-row{border-bottom:1px solid #ddd}.tabulator-row .tabulator-cell:last-of-type{border-right:none}.tabulator-row.tabulator-group span{color:#666}.tabulator-print-table .tabulator-print-table-group span{margin-left:10px;color:#666}\\n/*# sourceMappingURL=tabulator_simple.min.css.map */\");\n", - " }, function(Bokeh) {\n", - " inject_raw_css(\"/**\\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\\n * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)\\n * https://github.com/chjj/term.js\\n * @license MIT\\n *\\n * Permission is hereby granted, free of charge, to any person obtaining a copy\\n * of this software and associated documentation files (the \\\"Software\\\"), to deal\\n * in the Software without restriction, including without limitation the rights\\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\\n * copies of the Software, and to permit persons to whom the Software is\\n * furnished to do so, subject to the following conditions:\\n *\\n * The above copyright notice and this permission notice shall be included in\\n * all copies or substantial portions of the Software.\\n *\\n * THE SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\\n * THE SOFTWARE.\\n *\\n * Originally forked from (with the author's permission):\\n * Fabrice Bellard's javascript vt100 for jslinux:\\n * http://bellard.org/jslinux/\\n * Copyright (c) 2011 Fabrice Bellard\\n * The original design remains. The terminal itself\\n * has been extended to include xterm CSI codes, among\\n * other features.\\n */\\n\\n/**\\n * Default styles for xterm.js\\n */\\n\\n.xterm {\\n font-feature-settings: \\\"liga\\\" 0;\\n position: relative;\\n user-select: none;\\n -ms-user-select: none;\\n -webkit-user-select: none;\\n}\\n\\n.xterm.focus,\\n.xterm:focus {\\n outline: none;\\n}\\n\\n.xterm .xterm-helpers {\\n position: absolute;\\n top: 0;\\n /**\\n * The z-index of the helpers must be higher than the canvases in order for\\n * IMEs to appear on top.\\n */\\n z-index: 5;\\n}\\n\\n.xterm .xterm-helper-textarea {\\n padding: 0;\\n border: 0;\\n margin: 0;\\n /* Move textarea out of the screen to the far left, so that the cursor is not visible */\\n position: absolute;\\n opacity: 0;\\n left: -9999em;\\n top: 0;\\n width: 0;\\n height: 0;\\n z-index: -5;\\n /** Prevent wrapping so the IME appears against the textarea at the correct position */\\n white-space: nowrap;\\n overflow: hidden;\\n resize: none;\\n}\\n\\n.xterm .composition-view {\\n /* TODO: Composition position got messed up somewhere */\\n background: #000;\\n color: #FFF;\\n display: none;\\n position: absolute;\\n white-space: nowrap;\\n z-index: 1;\\n}\\n\\n.xterm .composition-view.active {\\n display: block;\\n}\\n\\n.xterm .xterm-viewport {\\n /* On OS X this is required in order for the scroll bar to appear fully opaque */\\n background-color: #000;\\n overflow-y: scroll;\\n cursor: default;\\n position: absolute;\\n right: 0;\\n left: 0;\\n top: 0;\\n bottom: 0;\\n}\\n\\n.xterm .xterm-screen {\\n position: relative;\\n}\\n\\n.xterm .xterm-screen canvas {\\n position: absolute;\\n left: 0;\\n top: 0;\\n}\\n\\n.xterm .xterm-scroll-area {\\n visibility: hidden;\\n}\\n\\n.xterm-char-measure-element {\\n display: inline-block;\\n visibility: hidden;\\n position: absolute;\\n top: 0;\\n left: -9999em;\\n line-height: normal;\\n}\\n\\n.xterm {\\n cursor: text;\\n}\\n\\n.xterm.enable-mouse-events {\\n /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */\\n cursor: default;\\n}\\n\\n.xterm.xterm-cursor-pointer {\\n cursor: pointer;\\n}\\n\\n.xterm.column-select.focus {\\n /* Column selection mode */\\n cursor: crosshair;\\n}\\n\\n.xterm .xterm-accessibility,\\n.xterm .xterm-message {\\n position: absolute;\\n left: 0;\\n top: 0;\\n bottom: 0;\\n right: 0;\\n z-index: 10;\\n color: transparent;\\n}\\n\\n.xterm .live-region {\\n position: absolute;\\n left: -9999px;\\n width: 1px;\\n height: 1px;\\n overflow: hidden;\\n}\\n\\n.xterm-dim {\\n opacity: 0.5;\\n}\\n\\n.xterm-underline {\\n text-decoration: underline;\\n}\\n\");\n", - " }, function(Bokeh) {\n", - " Bokeh.set_log_level(\"info\");\n", - " },\n", - "function(Bokeh) {} // ensure no trailing comma for IE\n", - " ];\n", - "\n", - " function run_inline_js() {\n", - " if ((root.Bokeh !== undefined) || (force === true)) {\n", - " for (var i = 0; i < inline_js.length; i++) {\n", - " inline_js[i].call(root, root.Bokeh);\n", - " }\n", - " // Cache old bokeh versions\n", - " if (Bokeh != undefined && !reloading) {\n", - "\tvar NewBokeh = root.Bokeh;\n", - "\tif (Bokeh.versions === undefined) {\n", - "\t Bokeh.versions = new Map();\n", - "\t}\n", - "\tif (NewBokeh.version !== Bokeh.version) {\n", - "\t Bokeh.versions.set(NewBokeh.version, NewBokeh)\n", - "\t}\n", - "\troot.Bokeh = Bokeh;\n", - " }} else if (Date.now() < root._bokeh_timeout) {\n", - " setTimeout(run_inline_js, 100);\n", - " } else if (!root._bokeh_failed_load) {\n", - " console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n", - " root._bokeh_failed_load = true;\n", - " }\n", - " root._bokeh_is_initializing = false\n", - " }\n", - "\n", - " function load_or_wait() {\n", - " // Implement a backoff loop that tries to ensure we do not load multiple\n", - " // versions of Bokeh and its dependencies at the same time.\n", - " // In recent versions we use the root._bokeh_is_initializing flag\n", - " // to determine whether there is an ongoing attempt to initialize\n", - " // bokeh, however for backward compatibility we also try to ensure\n", - " // that we do not start loading a newer (Panel>=1.0 and Bokeh>3) version\n", - " // before older versions are fully initialized.\n", - " if (root._bokeh_is_initializing && Date.now() > root._bokeh_timeout) {\n", - " root._bokeh_is_initializing = false;\n", - " root._bokeh_onload_callbacks = undefined;\n", - " console.log(\"Bokeh: BokehJS was loaded multiple times but one version failed to initialize.\");\n", - " load_or_wait();\n", - " } else if (root._bokeh_is_initializing || (typeof root._bokeh_is_initializing === \"undefined\" && root._bokeh_onload_callbacks !== undefined)) {\n", - " setTimeout(load_or_wait, 100);\n", - " } else {\n", - " Bokeh = root.Bokeh;\n", - " bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n", - " root._bokeh_is_initializing = true\n", - " root._bokeh_onload_callbacks = []\n", - " if (!reloading && (!bokeh_loaded || is_dev)) {\n", - "\troot.Bokeh = undefined;\n", - " }\n", - " load_libs(css_urls, js_urls, js_modules, js_exports, function() {\n", - "\tconsole.debug(\"Bokeh: BokehJS plotting callback run at\", now());\n", - "\trun_inline_js();\n", - " });\n", - " }\n", - " }\n", - " // Give older versions of the autoload script a head-start to ensure\n", - " // they initialize before we start loading newer version.\n", - " setTimeout(load_or_wait, 100)\n", - "}(window));" - ], - "application/vnd.holoviews_load.v0+json": "(function(root) {\n function now() {\n return new Date();\n }\n\n var force = true;\n var py_version = '3.3.0'.replace('rc', '-rc.').replace('.dev', '-dev.');\n var is_dev = py_version.indexOf(\"+\") !== -1 || py_version.indexOf(\"-\") !== -1;\n var reloading = true;\n var Bokeh = root.Bokeh;\n var bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n\n if (typeof (root._bokeh_timeout) === \"undefined\" || force) {\n root._bokeh_timeout = Date.now() + 5000;\n root._bokeh_failed_load = false;\n }\n\n function run_callbacks() {\n try {\n root._bokeh_onload_callbacks.forEach(function(callback) {\n if (callback != null)\n callback();\n });\n } finally {\n delete root._bokeh_onload_callbacks;\n }\n console.debug(\"Bokeh: all callbacks have finished\");\n }\n\n function load_libs(css_urls, js_urls, js_modules, js_exports, callback) {\n if (css_urls == null) css_urls = [];\n if (js_urls == null) js_urls = [];\n if (js_modules == null) js_modules = [];\n if (js_exports == null) js_exports = {};\n\n root._bokeh_onload_callbacks.push(callback);\n\n if (root._bokeh_is_loading > 0) {\n console.debug(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n return null;\n }\n if (js_urls.length === 0 && js_modules.length === 0 && Object.keys(js_exports).length === 0) {\n run_callbacks();\n return null;\n }\n if (!reloading) {\n console.debug(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n }\n\n function on_load() {\n root._bokeh_is_loading--;\n if (root._bokeh_is_loading === 0) {\n console.debug(\"Bokeh: all BokehJS libraries/stylesheets loaded\");\n run_callbacks()\n }\n }\n window._bokeh_on_load = on_load\n\n function on_error() {\n console.error(\"failed to load \" + url);\n }\n\n var skip = [];\n if (window.requirejs) {\n window.requirejs.config({'packages': {}, 'paths': {'tabulator': 'https://cdn.jsdelivr.net/npm/tabulator-tables@5.5.0/dist/js/tabulator', 'moment': 'https://cdn.jsdelivr.net/npm/luxon/build/global/luxon.min', 'xtermjs': 'https://cdn.jsdelivr.net/npm/xterm@4.14.1/lib/xterm', 'xtermjsweblinks': 'https://cdn.jsdelivr.net/npm/xterm-addon-web-links@0.4.0/lib/xterm-addon-web-links', 'jspanel': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/jspanel', 'jspanel-modal': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal', 'jspanel-tooltip': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip', 'jspanel-hint': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint', 'jspanel-layout': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout', 'jspanel-contextmenu': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu', 'jspanel-dock': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock', 'gridstack': 'https://cdn.jsdelivr.net/npm/gridstack@7.2.3/dist/gridstack-all', 'notyf': 'https://cdn.jsdelivr.net/npm/notyf@3/notyf.min'}, 'shim': {'xtermjsweblinks': {'exports': 'WebLinksAddon', 'deps': ['xtermjs']}, 'jspanel': {'exports': 'jsPanel'}, 'gridstack': {'exports': 'GridStack'}}});\n require([\"tabulator\"], function(Tabulator) {\n\twindow.Tabulator = Tabulator\n\ton_load()\n })\n require([\"moment\"], function(moment) {\n\twindow.moment = moment\n\ton_load()\n })\n require([\"xtermjs\"], function(xtermjs) {\n\twindow.xtermjs = xtermjs\n\ton_load()\n })\n require([\"xtermjsweblinks\"], function(WebLinksAddon) {\n\twindow.WebLinksAddon = WebLinksAddon\n\ton_load()\n })\n require([\"jspanel\"], function(jsPanel) {\n\twindow.jsPanel = jsPanel\n\ton_load()\n })\n require([\"jspanel-modal\"], function() {\n\ton_load()\n })\n require([\"jspanel-tooltip\"], function() {\n\ton_load()\n })\n require([\"jspanel-hint\"], function() {\n\ton_load()\n })\n require([\"jspanel-layout\"], function() {\n\ton_load()\n })\n require([\"jspanel-contextmenu\"], function() {\n\ton_load()\n })\n require([\"jspanel-dock\"], function() {\n\ton_load()\n })\n require([\"gridstack\"], function(GridStack) {\n\twindow.GridStack = GridStack\n\ton_load()\n })\n require([\"notyf\"], function() {\n\ton_load()\n })\n root._bokeh_is_loading = css_urls.length + 13;\n } else {\n root._bokeh_is_loading = css_urls.length + js_urls.length + js_modules.length + Object.keys(js_exports).length;\n }\n\n var existing_stylesheets = []\n var links = document.getElementsByTagName('link')\n for (var i = 0; i < links.length; i++) {\n var link = links[i]\n if (link.href != null) {\n\texisting_stylesheets.push(link.href)\n }\n }\n for (var i = 0; i < css_urls.length; i++) {\n var url = css_urls[i];\n if (existing_stylesheets.indexOf(url) !== -1) {\n\ton_load()\n\tcontinue;\n }\n const element = document.createElement(\"link\");\n element.onload = on_load;\n element.onerror = on_error;\n element.rel = \"stylesheet\";\n element.type = \"text/css\";\n element.href = url;\n console.debug(\"Bokeh: injecting link tag for BokehJS stylesheet: \", url);\n document.body.appendChild(element);\n } if (((window['Tabulator'] !== undefined) && (!(window['Tabulator'] instanceof HTMLElement))) || window.requirejs) {\n var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/tabulator-tables@5.5.0/dist/js/tabulator.js'];\n for (var i = 0; i < urls.length; i++) {\n skip.push(urls[i])\n }\n } if (((window['moment'] !== undefined) && (!(window['moment'] instanceof HTMLElement))) || window.requirejs) {\n var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/luxon/build/global/luxon.min.js'];\n for (var i = 0; i < urls.length; i++) {\n skip.push(urls[i])\n }\n } if (((window['xtermjs'] !== undefined) && (!(window['xtermjs'] instanceof HTMLElement))) || window.requirejs) {\n var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/terminal/xterm@4.14.1/lib/xterm.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/terminal/xterm-addon-web-links@0.4.0/lib/xterm-addon-web-links.js'];\n for (var i = 0; i < urls.length; i++) {\n skip.push(urls[i])\n }\n } if (((window['jsPanel'] !== undefined) && (!(window['jsPanel'] instanceof HTMLElement))) || window.requirejs) {\n var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/jspanel.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu.js', 'https://cdn.holoviz.org/panel/1.3.0/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock.js'];\n for (var i = 0; i < urls.length; i++) {\n skip.push(urls[i])\n }\n } if (((window['GridStack'] !== undefined) && (!(window['GridStack'] instanceof HTMLElement))) || window.requirejs) {\n var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/gridstack/gridstack@7.2.3/dist/gridstack-all.js'];\n for (var i = 0; i < urls.length; i++) {\n skip.push(urls[i])\n }\n } if (((window['Notyf'] !== undefined) && (!(window['Notyf'] instanceof HTMLElement))) || window.requirejs) {\n var urls = ['https://cdn.holoviz.org/panel/1.3.0/dist/bundled/notificationarea/notyf@3/notyf.min.js'];\n for (var i = 0; i < urls.length; i++) {\n skip.push(urls[i])\n }\n } var existing_scripts = []\n var scripts = document.getElementsByTagName('script')\n for (var i = 0; i < scripts.length; i++) {\n var script = scripts[i]\n if (script.src != null) {\n\texisting_scripts.push(script.src)\n }\n }\n for (var i = 0; i < js_urls.length; i++) {\n var url = js_urls[i];\n if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n\tif (!window.requirejs) {\n\t on_load();\n\t}\n\tcontinue;\n }\n var element = document.createElement('script');\n element.onload = on_load;\n element.onerror = on_error;\n element.async = false;\n element.src = url;\n console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n document.head.appendChild(element);\n }\n for (var i = 0; i < js_modules.length; i++) {\n var url = js_modules[i];\n if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n\tif (!window.requirejs) {\n\t on_load();\n\t}\n\tcontinue;\n }\n var element = document.createElement('script');\n element.onload = on_load;\n element.onerror = on_error;\n element.async = false;\n element.src = url;\n element.type = \"module\";\n console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n document.head.appendChild(element);\n }\n for (const name in js_exports) {\n var url = js_exports[name];\n if (skip.indexOf(url) >= 0 || root[name] != null) {\n\tif (!window.requirejs) {\n\t on_load();\n\t}\n\tcontinue;\n }\n var element = document.createElement('script');\n element.onerror = on_error;\n element.async = false;\n element.type = \"module\";\n console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n element.textContent = `\n import ${name} from \"${url}\"\n window.${name} = ${name}\n window._bokeh_on_load()\n `\n document.head.appendChild(element);\n }\n if (!js_urls.length && !js_modules.length) {\n on_load()\n }\n };\n\n function inject_raw_css(css) {\n const element = document.createElement(\"style\");\n element.appendChild(document.createTextNode(css));\n document.body.appendChild(element);\n }\n\n var js_urls = [\"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/tabulator-tables@5.5.0/dist/js/tabulator.js\", \"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/luxon/build/global/luxon.min.js\", \"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/terminal/xterm@4.14.1/lib/xterm.js\", \"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/terminal/xterm-addon-web-links@0.4.0/lib/xterm-addon-web-links.js\"];\n var js_modules = [];\n var js_exports = {};\n var css_urls = [\"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/datatabulator/tabulator-tables@5.5.0/dist/css/tabulator_simple.min.css\", \"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/terminal/xterm@4.11.0/css/xterm.css\", \"https://cdn.holoviz.org/panel/1.3.0/dist/bundled/font-awesome/css/all.min.css\"];\n var inline_js = [ function(Bokeh) {\n inject_raw_css(\".tabulator{position:relative;border:1px solid #999;font-size:14px;text-align:left;overflow:hidden;-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0);transform:translateZ(0)}.tabulator[tabulator-layout=fitDataFill] .tabulator-tableholder .tabulator-table{min-width:100%}.tabulator[tabulator-layout=fitDataTable]{display:inline-block}.tabulator.tabulator-block-select{user-select:none}.tabulator .tabulator-header{position:relative;box-sizing:border-box;width:100%;border-bottom:1px solid #999;background-color:#fff;color:#555;font-weight:700;white-space:nowrap;overflow:hidden;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator .tabulator-header.tabulator-header-hidden{display:none}.tabulator .tabulator-header .tabulator-header-contents{position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-header-contents .tabulator-headers{display:inline-block}.tabulator .tabulator-header .tabulator-col{display:inline-flex;position:relative;box-sizing:border-box;flex-direction:column;justify-content:flex-start;border-right:1px solid #ddd;background:#fff;text-align:left;vertical-align:bottom;overflow:hidden}.tabulator .tabulator-header .tabulator-col.tabulator-moving{position:absolute;border:1px solid #999;background:#e6e6e6;pointer-events:none}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{box-sizing:border-box;position:relative;padding:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button{padding:0 8px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button:hover{cursor:pointer;opacity:.6}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title-holder{position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{box-sizing:border-box;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title.tabulator-col-title-wrap{white-space:normal;text-overflow:clip}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor{box-sizing:border-box;width:100%;border:1px solid #999;padding:1px;background:#fff}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-header-popup-button+.tabulator-title-editor{width:calc(100% - 22px)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{display:flex;align-items:center;position:absolute;top:0;bottom:0;right:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{position:relative;display:flex;border-top:1px solid #ddd;overflow:hidden;margin-right:-1px}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter{position:relative;box-sizing:border-box;margin-top:2px;width:100%;text-align:center}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea{height:auto!important}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg{margin-top:3px}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear{width:0;height:0}.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:25px}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover{cursor:pointer;background-color:#e6e6e6}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter{color:#bbb}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-bottom:6px solid #555}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter{color:#666}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-bottom:6px solid #555}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid #666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter{color:#666}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-top:6px solid #555}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:none;border-top:6px solid #666;color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title{writing-mode:vertical-rl;text-orientation:mixed;display:flex;align-items:center;justify-content:center}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title{transform:rotate(180deg)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title{padding-right:0;padding-top:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title{padding-right:0;padding-bottom:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-sorter{justify-content:center;left:0;right:0;top:4px;bottom:auto}.tabulator .tabulator-header .tabulator-frozen{position:sticky;left:0;z-index:10}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left{border-right:2px solid #ddd}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right{border-left:2px solid #ddd}.tabulator .tabulator-header .tabulator-calcs-holder{box-sizing:border-box;background:#fff!important;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:#fff!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle,.tabulator .tabulator-header .tabulator-frozen-rows-holder:empty{display:none}.tabulator .tabulator-tableholder{position:relative;width:100%;white-space:nowrap;overflow:auto;-webkit-overflow-scrolling:touch}.tabulator .tabulator-tableholder:focus{outline:none}.tabulator .tabulator-tableholder .tabulator-placeholder{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%}.tabulator .tabulator-tableholder .tabulator-placeholder[tabulator-render-mode=virtual]{min-height:100%;min-width:100%}.tabulator .tabulator-tableholder .tabulator-placeholder .tabulator-placeholder-contents{display:inline-block;text-align:center;padding:10px;color:#ccc;font-weight:700;font-size:20px;white-space:normal}.tabulator .tabulator-tableholder .tabulator-table{position:relative;display:inline-block;background-color:#fff;white-space:nowrap;overflow:visible;color:#333}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs{font-weight:700;background:#f2f2f2!important}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top{border-bottom:2px solid #ddd}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom{border-top:2px solid #ddd}.tabulator .tabulator-footer{border-top:1px solid #999;background-color:#fff;color:#555;font-weight:700;white-space:nowrap;user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator .tabulator-footer .tabulator-footer-contents{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:5px 10px}.tabulator .tabulator-footer .tabulator-footer-contents:empty{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder{box-sizing:border-box;width:100%;text-align:left;background:#fff!important;border-bottom:1px solid #ddd;border-top:1px solid #ddd;overflow:hidden}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{display:inline-block;background:#fff!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder:only-child{margin-bottom:-5px;border-bottom:none}.tabulator .tabulator-footer>*+.tabulator-page-counter{margin-left:10px}.tabulator .tabulator-footer .tabulator-page-counter{font-weight:400}.tabulator .tabulator-footer .tabulator-paginator{flex:1;text-align:right;color:#555;font-family:inherit;font-weight:inherit;font-size:inherit}.tabulator .tabulator-footer .tabulator-page-size{display:inline-block;margin:0 5px;padding:2px 5px;border:1px solid #aaa;border-radius:3px}.tabulator .tabulator-footer .tabulator-pages{margin:0 7px}.tabulator .tabulator-footer .tabulator-page{display:inline-block;margin:0 2px;padding:2px 5px;border:1px solid #aaa;border-radius:3px;background:hsla(0,0%,100%,.2)}.tabulator .tabulator-footer .tabulator-page.active{color:#d00}.tabulator .tabulator-footer .tabulator-page:disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-footer .tabulator-page:not(.disabled):hover{cursor:pointer;background:rgba(0,0,0,.2);color:#fff}}.tabulator .tabulator-col-resize-handle{position:relative;display:inline-block;width:6px;margin-left:-3px;margin-right:-3px;z-index:10;vertical-align:middle}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-col-resize-handle:hover{cursor:ew-resize}}.tabulator .tabulator-col-resize-handle:last-of-type{width:3px;margin-right:0}.tabulator .tabulator-alert{position:absolute;display:flex;align-items:center;top:0;left:0;z-index:100;height:100%;width:100%;background:rgba(0,0,0,.4);text-align:center}.tabulator .tabulator-alert .tabulator-alert-msg{display:inline-block;margin:0 auto;padding:10px 20px;border-radius:10px;background:#fff;font-weight:700;font-size:16px}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-msg{border:4px solid #333;color:#000}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-error{border:4px solid #d00;color:#590000}.tabulator-row{position:relative;box-sizing:border-box;min-height:22px}.tabulator-row,.tabulator-row.tabulator-row-even{background-color:#fff}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selectable:hover{background-color:#bbb;cursor:pointer}}.tabulator-row.tabulator-selected{background-color:#9abcea}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selected:hover{background-color:#769bcc;cursor:pointer}}.tabulator-row.tabulator-row-moving{border:1px solid #000;background:#fff}.tabulator-row.tabulator-moving{position:absolute;border-top:1px solid #ddd;border-bottom:1px solid #ddd;pointer-events:none;z-index:15}.tabulator-row .tabulator-row-resize-handle{position:absolute;right:0;bottom:0;left:0;height:5px}.tabulator-row .tabulator-row-resize-handle.prev{top:0;bottom:auto}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-row-resize-handle:hover{cursor:ns-resize}}.tabulator-row .tabulator-responsive-collapse{box-sizing:border-box;padding:5px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.tabulator-row .tabulator-responsive-collapse:empty{display:none}.tabulator-row .tabulator-responsive-collapse table{font-size:14px}.tabulator-row .tabulator-responsive-collapse table tr td{position:relative}.tabulator-row .tabulator-responsive-collapse table tr td:first-of-type{padding-right:10px}.tabulator-row .tabulator-cell{display:inline-block;position:relative;box-sizing:border-box;padding:4px;border-right:1px solid #ddd;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tabulator-row .tabulator-cell.tabulator-frozen{display:inline-block;position:sticky;left:0;background-color:inherit;z-index:10}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-right:2px solid #ddd}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-left:2px solid #ddd}.tabulator-row .tabulator-cell.tabulator-editing{border:1px solid #1d68cd;outline:none;padding:0}.tabulator-row .tabulator-cell.tabulator-editing input,.tabulator-row .tabulator-cell.tabulator-editing select{border:1px;background:transparent;outline:none}.tabulator-row .tabulator-cell.tabulator-validation-fail{border:1px solid #d00}.tabulator-row .tabulator-cell.tabulator-validation-fail input,.tabulator-row .tabulator-cell.tabulator-validation-fail select{border:1px;background:transparent;color:#d00}.tabulator-row .tabulator-cell.tabulator-row-handle{display:inline-flex;align-items:center;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box{width:80%}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar{width:100%;height:3px;margin-top:2px;background:#666}.tabulator-row .tabulator-cell .tabulator-data-tree-branch{display:inline-block;vertical-align:middle;height:9px;width:7px;margin-top:-9px;margin-right:5px;border-bottom-left-radius:1px;border-left:2px solid #ddd;border-bottom:2px solid #ddd}.tabulator-row .tabulator-cell .tabulator-data-tree-control{display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;height:11px;width:11px;margin-right:5px;border:1px solid #333;border-radius:2px;background:rgba(0,0,0,.1);overflow:hidden}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-data-tree-control:hover{cursor:pointer;background:rgba(0,0,0,.2)}}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse{display:inline-block;position:relative;height:7px;width:1px;background:transparent}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{position:absolute;content:\\\"\\\";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand{display:inline-block;position:relative;height:7px;width:1px;background:#333}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{position:absolute;content:\\\"\\\";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle{display:inline-flex;align-items:center;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;height:15px;width:15px;border-radius:20px;background:#666;color:#fff;font-weight:700;font-size:1.1em}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover{opacity:.7;cursor:pointer}}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close{display:initial}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open{display:none}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle svg{stroke:#fff}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close{display:none}.tabulator-row .tabulator-cell .tabulator-traffic-light{display:inline-block;height:14px;width:14px;border-radius:14px}.tabulator-row.tabulator-group{box-sizing:border-box;border-bottom:1px solid #999;border-right:1px solid #ddd;border-top:1px solid #999;padding:5px 5px 5px 10px;background:#ccc;font-weight:700;min-width:100%}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-group:hover{cursor:pointer;background-color:rgba(0,0,0,.1)}}.tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow{margin-right:10px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;border-bottom:0}.tabulator-row.tabulator-group.tabulator-group-level-1{padding-left:30px}.tabulator-row.tabulator-group.tabulator-group-level-2{padding-left:50px}.tabulator-row.tabulator-group.tabulator-group-level-3{padding-left:70px}.tabulator-row.tabulator-group.tabulator-group-level-4{padding-left:90px}.tabulator-row.tabulator-group.tabulator-group-level-5{padding-left:110px}.tabulator-row.tabulator-group .tabulator-group-toggle{display:inline-block}.tabulator-row.tabulator-group .tabulator-arrow{display:inline-block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-align:middle}.tabulator-row.tabulator-group span{margin-left:10px;color:#d00}.tabulator-popup-container{position:absolute;display:inline-block;box-sizing:border-box;background:#fff;border:1px solid #ddd;box-shadow:0 0 5px 0 rgba(0,0,0,.2);font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:10000}.tabulator-popup{padding:5px;border-radius:3px}.tabulator-tooltip{max-width:Min(500px,100%);padding:3px 5px;border-radius:2px;box-shadow:none;font-size:12px;pointer-events:none}.tabulator-menu .tabulator-menu-item{position:relative;box-sizing:border-box;padding:5px 10px;user-select:none}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover{cursor:pointer;background:#fff}}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu{padding-right:25px}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu:after{display:inline-block;position:absolute;top:calc(5px + .4em);right:10px;height:7px;width:7px;content:\\\"\\\";border-color:#ddd;border-style:solid;border-width:1px 1px 0 0;vertical-align:top;transform:rotate(45deg)}.tabulator-menu .tabulator-menu-separator{border-top:1px solid #ddd}.tabulator-edit-list{max-height:200px;font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch}.tabulator-edit-list .tabulator-edit-list-item{padding:4px;color:#333;outline:none}.tabulator-edit-list .tabulator-edit-list-item.active{color:#fff;background:#1d68cd}.tabulator-edit-list .tabulator-edit-list-item.active.focused{outline:1px solid hsla(0,0%,100%,.5)}.tabulator-edit-list .tabulator-edit-list-item.focused{outline:1px solid #1d68cd}@media (hover:hover) and (pointer:fine){.tabulator-edit-list .tabulator-edit-list-item:hover{cursor:pointer;color:#fff;background:#1d68cd}}.tabulator-edit-list .tabulator-edit-list-placeholder{padding:4px;color:#333;text-align:center}.tabulator-edit-list .tabulator-edit-list-group{border-bottom:1px solid #ddd;padding:6px 4px 4px;color:#333;font-weight:700}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-2,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-2{padding-left:12px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-3,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-3{padding-left:20px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-4,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-4{padding-left:28px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-5,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-5{padding-left:36px}.tabulator.tabulator-ltr{direction:ltr}.tabulator.tabulator-rtl{text-align:initial;direction:rtl}.tabulator.tabulator-rtl .tabulator-header .tabulator-col{text-align:initial;border-left:1px solid #ddd;border-right:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{margin-right:0;margin-left:-1px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:0;padding-left:25px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{left:8px;right:auto}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell{border-right:initial;border-left:1px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-branch{margin-right:0;margin-left:5px;border-bottom-left-radius:0;border-bottom-right-radius:1px;border-left:initial;border-right:2px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-control{margin-right:0;margin-left:5px}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-left:2px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-right:2px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-col-resize-handle:last-of-type{width:3px;margin-left:0;margin-right:-3px}.tabulator.tabulator-rtl .tabulator-footer .tabulator-calcs-holder{text-align:initial}.tabulator-print-fullscreen{position:absolute;top:0;bottom:0;left:0;right:0;z-index:10000}body.tabulator-print-fullscreen-hide>:not(.tabulator-print-fullscreen){display:none!important}.tabulator-print-table{border-collapse:collapse}.tabulator-print-table .tabulator-data-tree-branch{display:inline-block;vertical-align:middle;height:9px;width:7px;margin-top:-9px;margin-right:5px;border-bottom-left-radius:1px;border-left:2px solid #ddd;border-bottom:2px solid #ddd}.tabulator-print-table .tabulator-print-table-group{box-sizing:border-box;border-bottom:1px solid #999;border-right:1px solid #ddd;border-top:1px solid #999;padding:5px 5px 5px 10px;background:#ccc;font-weight:700;min-width:100%}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-print-table-group:hover{cursor:pointer;background-color:rgba(0,0,0,.1)}}.tabulator-print-table .tabulator-print-table-group.tabulator-group-visible .tabulator-arrow{margin-right:10px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;border-bottom:0}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-1 td{padding-left:30px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-2 td{padding-left:50px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-3 td{padding-left:70px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-4 td{padding-left:90px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-5 td{padding-left:110px!important}.tabulator-print-table .tabulator-print-table-group .tabulator-group-toggle{display:inline-block}.tabulator-print-table .tabulator-print-table-group .tabulator-arrow{display:inline-block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-align:middle}.tabulator-print-table .tabulator-print-table-group span{color:#d00}.tabulator-print-table .tabulator-data-tree-control{display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;height:11px;width:11px;margin-right:5px;border:1px solid #333;border-radius:2px;background:rgba(0,0,0,.1);overflow:hidden}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-data-tree-control:hover{cursor:pointer;background:rgba(0,0,0,.2)}}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse{display:inline-block;position:relative;height:7px;width:1px;background:transparent}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{position:absolute;content:\\\"\\\";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand{display:inline-block;position:relative;height:7px;width:1px;background:#333}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{position:absolute;content:\\\"\\\";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator{border:none;background-color:#fff}.tabulator .tabulator-header .tabulator-calcs-holder{background:#f2f2f2!important;border-bottom:1px solid #999}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:#f2f2f2!important}.tabulator .tabulator-tableholder .tabulator-placeholder span{color:#000}.tabulator .tabulator-footer .tabulator-calcs-holder{background:#f2f2f2!important;border-bottom:1px solid #fff}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{background:#f2f2f2!important}.tabulator-row{border-bottom:1px solid #ddd}.tabulator-row .tabulator-cell:last-of-type{border-right:none}.tabulator-row.tabulator-group span{color:#666}.tabulator-print-table .tabulator-print-table-group span{margin-left:10px;color:#666}\\n/*# sourceMappingURL=tabulator_simple.min.css.map */\");\n }, function(Bokeh) {\n inject_raw_css(\"/**\\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\\n * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)\\n * https://github.com/chjj/term.js\\n * @license MIT\\n *\\n * Permission is hereby granted, free of charge, to any person obtaining a copy\\n * of this software and associated documentation files (the \\\"Software\\\"), to deal\\n * in the Software without restriction, including without limitation the rights\\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\\n * copies of the Software, and to permit persons to whom the Software is\\n * furnished to do so, subject to the following conditions:\\n *\\n * The above copyright notice and this permission notice shall be included in\\n * all copies or substantial portions of the Software.\\n *\\n * THE SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\\n * THE SOFTWARE.\\n *\\n * Originally forked from (with the author's permission):\\n * Fabrice Bellard's javascript vt100 for jslinux:\\n * http://bellard.org/jslinux/\\n * Copyright (c) 2011 Fabrice Bellard\\n * The original design remains. The terminal itself\\n * has been extended to include xterm CSI codes, among\\n * other features.\\n */\\n\\n/**\\n * Default styles for xterm.js\\n */\\n\\n.xterm {\\n font-feature-settings: \\\"liga\\\" 0;\\n position: relative;\\n user-select: none;\\n -ms-user-select: none;\\n -webkit-user-select: none;\\n}\\n\\n.xterm.focus,\\n.xterm:focus {\\n outline: none;\\n}\\n\\n.xterm .xterm-helpers {\\n position: absolute;\\n top: 0;\\n /**\\n * The z-index of the helpers must be higher than the canvases in order for\\n * IMEs to appear on top.\\n */\\n z-index: 5;\\n}\\n\\n.xterm .xterm-helper-textarea {\\n padding: 0;\\n border: 0;\\n margin: 0;\\n /* Move textarea out of the screen to the far left, so that the cursor is not visible */\\n position: absolute;\\n opacity: 0;\\n left: -9999em;\\n top: 0;\\n width: 0;\\n height: 0;\\n z-index: -5;\\n /** Prevent wrapping so the IME appears against the textarea at the correct position */\\n white-space: nowrap;\\n overflow: hidden;\\n resize: none;\\n}\\n\\n.xterm .composition-view {\\n /* TODO: Composition position got messed up somewhere */\\n background: #000;\\n color: #FFF;\\n display: none;\\n position: absolute;\\n white-space: nowrap;\\n z-index: 1;\\n}\\n\\n.xterm .composition-view.active {\\n display: block;\\n}\\n\\n.xterm .xterm-viewport {\\n /* On OS X this is required in order for the scroll bar to appear fully opaque */\\n background-color: #000;\\n overflow-y: scroll;\\n cursor: default;\\n position: absolute;\\n right: 0;\\n left: 0;\\n top: 0;\\n bottom: 0;\\n}\\n\\n.xterm .xterm-screen {\\n position: relative;\\n}\\n\\n.xterm .xterm-screen canvas {\\n position: absolute;\\n left: 0;\\n top: 0;\\n}\\n\\n.xterm .xterm-scroll-area {\\n visibility: hidden;\\n}\\n\\n.xterm-char-measure-element {\\n display: inline-block;\\n visibility: hidden;\\n position: absolute;\\n top: 0;\\n left: -9999em;\\n line-height: normal;\\n}\\n\\n.xterm {\\n cursor: text;\\n}\\n\\n.xterm.enable-mouse-events {\\n /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */\\n cursor: default;\\n}\\n\\n.xterm.xterm-cursor-pointer {\\n cursor: pointer;\\n}\\n\\n.xterm.column-select.focus {\\n /* Column selection mode */\\n cursor: crosshair;\\n}\\n\\n.xterm .xterm-accessibility,\\n.xterm .xterm-message {\\n position: absolute;\\n left: 0;\\n top: 0;\\n bottom: 0;\\n right: 0;\\n z-index: 10;\\n color: transparent;\\n}\\n\\n.xterm .live-region {\\n position: absolute;\\n left: -9999px;\\n width: 1px;\\n height: 1px;\\n overflow: hidden;\\n}\\n\\n.xterm-dim {\\n opacity: 0.5;\\n}\\n\\n.xterm-underline {\\n text-decoration: underline;\\n}\\n\");\n }, function(Bokeh) {\n Bokeh.set_log_level(\"info\");\n },\nfunction(Bokeh) {} // ensure no trailing comma for IE\n ];\n\n function run_inline_js() {\n if ((root.Bokeh !== undefined) || (force === true)) {\n for (var i = 0; i < inline_js.length; i++) {\n inline_js[i].call(root, root.Bokeh);\n }\n // Cache old bokeh versions\n if (Bokeh != undefined && !reloading) {\n\tvar NewBokeh = root.Bokeh;\n\tif (Bokeh.versions === undefined) {\n\t Bokeh.versions = new Map();\n\t}\n\tif (NewBokeh.version !== Bokeh.version) {\n\t Bokeh.versions.set(NewBokeh.version, NewBokeh)\n\t}\n\troot.Bokeh = Bokeh;\n }} else if (Date.now() < root._bokeh_timeout) {\n setTimeout(run_inline_js, 100);\n } else if (!root._bokeh_failed_load) {\n console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n root._bokeh_failed_load = true;\n }\n root._bokeh_is_initializing = false\n }\n\n function load_or_wait() {\n // Implement a backoff loop that tries to ensure we do not load multiple\n // versions of Bokeh and its dependencies at the same time.\n // In recent versions we use the root._bokeh_is_initializing flag\n // to determine whether there is an ongoing attempt to initialize\n // bokeh, however for backward compatibility we also try to ensure\n // that we do not start loading a newer (Panel>=1.0 and Bokeh>3) version\n // before older versions are fully initialized.\n if (root._bokeh_is_initializing && Date.now() > root._bokeh_timeout) {\n root._bokeh_is_initializing = false;\n root._bokeh_onload_callbacks = undefined;\n console.log(\"Bokeh: BokehJS was loaded multiple times but one version failed to initialize.\");\n load_or_wait();\n } else if (root._bokeh_is_initializing || (typeof root._bokeh_is_initializing === \"undefined\" && root._bokeh_onload_callbacks !== undefined)) {\n setTimeout(load_or_wait, 100);\n } else {\n Bokeh = root.Bokeh;\n bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n root._bokeh_is_initializing = true\n root._bokeh_onload_callbacks = []\n if (!reloading && (!bokeh_loaded || is_dev)) {\n\troot.Bokeh = undefined;\n }\n load_libs(css_urls, js_urls, js_modules, js_exports, function() {\n\tconsole.debug(\"Bokeh: BokehJS plotting callback run at\", now());\n\trun_inline_js();\n });\n }\n }\n // Give older versions of the autoload script a head-start to ensure\n // they initialize before we start loading newer version.\n setTimeout(load_or_wait, 100)\n}(window));" - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "application/javascript": [ - "\n", - "if ((window.PyViz === undefined) || (window.PyViz instanceof HTMLElement)) {\n", - " window.PyViz = {comms: {}, comm_status:{}, kernels:{}, receivers: {}, plot_index: []}\n", - "}\n", - "\n", - "\n", - " function JupyterCommManager() {\n", - " }\n", - "\n", - " JupyterCommManager.prototype.register_target = function(plot_id, comm_id, msg_handler) {\n", - " if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n", - " var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n", - " comm_manager.register_target(comm_id, function(comm) {\n", - " comm.on_msg(msg_handler);\n", - " });\n", - " } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n", - " window.PyViz.kernels[plot_id].registerCommTarget(comm_id, function(comm) {\n", - " comm.onMsg = msg_handler;\n", - " });\n", - " } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n", - " google.colab.kernel.comms.registerTarget(comm_id, (comm) => {\n", - " var messages = comm.messages[Symbol.asyncIterator]();\n", - " function processIteratorResult(result) {\n", - " var message = result.value;\n", - " console.log(message)\n", - " var content = {data: message.data, comm_id};\n", - " var buffers = []\n", - " for (var buffer of message.buffers || []) {\n", - " buffers.push(new DataView(buffer))\n", - " }\n", - " var metadata = message.metadata || {};\n", - " var msg = {content, buffers, metadata}\n", - " msg_handler(msg);\n", - " return messages.next().then(processIteratorResult);\n", - " }\n", - " return messages.next().then(processIteratorResult);\n", - " })\n", - " }\n", - " }\n", - "\n", - " JupyterCommManager.prototype.get_client_comm = function(plot_id, comm_id, msg_handler) {\n", - " if (comm_id in window.PyViz.comms) {\n", - " return window.PyViz.comms[comm_id];\n", - " } else if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n", - " var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n", - " var comm = comm_manager.new_comm(comm_id, {}, {}, {}, comm_id);\n", - " if (msg_handler) {\n", - " comm.on_msg(msg_handler);\n", - " }\n", - " } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n", - " var comm = window.PyViz.kernels[plot_id].connectToComm(comm_id);\n", - " comm.open();\n", - " if (msg_handler) {\n", - " comm.onMsg = msg_handler;\n", - " }\n", - " } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n", - " var comm_promise = google.colab.kernel.comms.open(comm_id)\n", - " comm_promise.then((comm) => {\n", - " window.PyViz.comms[comm_id] = comm;\n", - " if (msg_handler) {\n", - " var messages = comm.messages[Symbol.asyncIterator]();\n", - " function processIteratorResult(result) {\n", - " var message = result.value;\n", - " var content = {data: message.data};\n", - " var metadata = message.metadata || {comm_id};\n", - " var msg = {content, metadata}\n", - " msg_handler(msg);\n", - " return messages.next().then(processIteratorResult);\n", - " }\n", - " return messages.next().then(processIteratorResult);\n", - " }\n", - " }) \n", - " var sendClosure = (data, metadata, buffers, disposeOnDone) => {\n", - " return comm_promise.then((comm) => {\n", - " comm.send(data, metadata, buffers, disposeOnDone);\n", - " });\n", - " };\n", - " var comm = {\n", - " send: sendClosure\n", - " };\n", - " }\n", - " window.PyViz.comms[comm_id] = comm;\n", - " return comm;\n", - " }\n", - " window.PyViz.comm_manager = new JupyterCommManager();\n", - " \n", - "\n", - "\n", - "var JS_MIME_TYPE = 'application/javascript';\n", - "var HTML_MIME_TYPE = 'text/html';\n", - "var EXEC_MIME_TYPE = 'application/vnd.holoviews_exec.v0+json';\n", - "var CLASS_NAME = 'output';\n", - "\n", - "/**\n", - " * Render data to the DOM node\n", - " */\n", - "function render(props, node) {\n", - " var div = document.createElement(\"div\");\n", - " var script = document.createElement(\"script\");\n", - " node.appendChild(div);\n", - " node.appendChild(script);\n", - "}\n", - "\n", - "/**\n", - " * Handle when a new output is added\n", - " */\n", - "function handle_add_output(event, handle) {\n", - " var output_area = handle.output_area;\n", - " var output = handle.output;\n", - " if ((output.data == undefined) || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {\n", - " return\n", - " }\n", - " var id = output.metadata[EXEC_MIME_TYPE][\"id\"];\n", - " var toinsert = output_area.element.find(\".\" + CLASS_NAME.split(' ')[0]);\n", - " if (id !== undefined) {\n", - " var nchildren = toinsert.length;\n", - " var html_node = toinsert[nchildren-1].children[0];\n", - " html_node.innerHTML = output.data[HTML_MIME_TYPE];\n", - " var scripts = [];\n", - " var nodelist = html_node.querySelectorAll(\"script\");\n", - " for (var i in nodelist) {\n", - " if (nodelist.hasOwnProperty(i)) {\n", - " scripts.push(nodelist[i])\n", - " }\n", - " }\n", - "\n", - " scripts.forEach( function (oldScript) {\n", - " var newScript = document.createElement(\"script\");\n", - " var attrs = [];\n", - " var nodemap = oldScript.attributes;\n", - " for (var j in nodemap) {\n", - " if (nodemap.hasOwnProperty(j)) {\n", - " attrs.push(nodemap[j])\n", - " }\n", - " }\n", - " attrs.forEach(function(attr) { newScript.setAttribute(attr.name, attr.value) });\n", - " newScript.appendChild(document.createTextNode(oldScript.innerHTML));\n", - " oldScript.parentNode.replaceChild(newScript, oldScript);\n", - " });\n", - " if (JS_MIME_TYPE in output.data) {\n", - " toinsert[nchildren-1].children[1].textContent = output.data[JS_MIME_TYPE];\n", - " }\n", - " output_area._hv_plot_id = id;\n", - " if ((window.Bokeh !== undefined) && (id in Bokeh.index)) {\n", - " window.PyViz.plot_index[id] = Bokeh.index[id];\n", - " } else {\n", - " window.PyViz.plot_index[id] = null;\n", - " }\n", - " } else if (output.metadata[EXEC_MIME_TYPE][\"server_id\"] !== undefined) {\n", - " var bk_div = document.createElement(\"div\");\n", - " bk_div.innerHTML = output.data[HTML_MIME_TYPE];\n", - " var script_attrs = bk_div.children[0].attributes;\n", - " for (var i = 0; i < script_attrs.length; i++) {\n", - " toinsert[toinsert.length - 1].childNodes[1].setAttribute(script_attrs[i].name, script_attrs[i].value);\n", - " }\n", - " // store reference to server id on output_area\n", - " output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE][\"server_id\"];\n", - " }\n", - "}\n", - "\n", - "/**\n", - " * Handle when an output is cleared or removed\n", - " */\n", - "function handle_clear_output(event, handle) {\n", - " var id = handle.cell.output_area._hv_plot_id;\n", - " var server_id = handle.cell.output_area._bokeh_server_id;\n", - " if (((id === undefined) || !(id in PyViz.plot_index)) && (server_id !== undefined)) { return; }\n", - " var comm = window.PyViz.comm_manager.get_client_comm(\"hv-extension-comm\", \"hv-extension-comm\", function () {});\n", - " if (server_id !== null) {\n", - " comm.send({event_type: 'server_delete', 'id': server_id});\n", - " return;\n", - " } else if (comm !== null) {\n", - " comm.send({event_type: 'delete', 'id': id});\n", - " }\n", - " delete PyViz.plot_index[id];\n", - " if ((window.Bokeh !== undefined) & (id in window.Bokeh.index)) {\n", - " var doc = window.Bokeh.index[id].model.document\n", - " doc.clear();\n", - " const i = window.Bokeh.documents.indexOf(doc);\n", - " if (i > -1) {\n", - " window.Bokeh.documents.splice(i, 1);\n", - " }\n", - " }\n", - "}\n", - "\n", - "/**\n", - " * Handle kernel restart event\n", - " */\n", - "function handle_kernel_cleanup(event, handle) {\n", - " delete PyViz.comms[\"hv-extension-comm\"];\n", - " window.PyViz.plot_index = {}\n", - "}\n", - "\n", - "/**\n", - " * Handle update_display_data messages\n", - " */\n", - "function handle_update_output(event, handle) {\n", - " handle_clear_output(event, {cell: {output_area: handle.output_area}})\n", - " handle_add_output(event, handle)\n", - "}\n", - "\n", - "function register_renderer(events, OutputArea) {\n", - " function append_mime(data, metadata, element) {\n", - " // create a DOM node to render to\n", - " var toinsert = this.create_output_subarea(\n", - " metadata,\n", - " CLASS_NAME,\n", - " EXEC_MIME_TYPE\n", - " );\n", - " this.keyboard_manager.register_events(toinsert);\n", - " // Render to node\n", - " var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};\n", - " render(props, toinsert[0]);\n", - " element.append(toinsert);\n", - " return toinsert\n", - " }\n", - "\n", - " events.on('output_added.OutputArea', handle_add_output);\n", - " events.on('output_updated.OutputArea', handle_update_output);\n", - " events.on('clear_output.CodeCell', handle_clear_output);\n", - " events.on('delete.Cell', handle_clear_output);\n", - " events.on('kernel_ready.Kernel', handle_kernel_cleanup);\n", - "\n", - " OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {\n", - " safe: true,\n", - " index: 0\n", - " });\n", - "}\n", - "\n", - "if (window.Jupyter !== undefined) {\n", - " try {\n", - " var events = require('base/js/events');\n", - " var OutputArea = require('notebook/js/outputarea').OutputArea;\n", - " if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {\n", - " register_renderer(events, OutputArea);\n", - " }\n", - " } catch(err) {\n", - " }\n", - "}\n" - ], - "application/vnd.holoviews_load.v0+json": "\nif ((window.PyViz === undefined) || (window.PyViz instanceof HTMLElement)) {\n window.PyViz = {comms: {}, comm_status:{}, kernels:{}, receivers: {}, plot_index: []}\n}\n\n\n function JupyterCommManager() {\n }\n\n JupyterCommManager.prototype.register_target = function(plot_id, comm_id, msg_handler) {\n if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n comm_manager.register_target(comm_id, function(comm) {\n comm.on_msg(msg_handler);\n });\n } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n window.PyViz.kernels[plot_id].registerCommTarget(comm_id, function(comm) {\n comm.onMsg = msg_handler;\n });\n } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n google.colab.kernel.comms.registerTarget(comm_id, (comm) => {\n var messages = comm.messages[Symbol.asyncIterator]();\n function processIteratorResult(result) {\n var message = result.value;\n console.log(message)\n var content = {data: message.data, comm_id};\n var buffers = []\n for (var buffer of message.buffers || []) {\n buffers.push(new DataView(buffer))\n }\n var metadata = message.metadata || {};\n var msg = {content, buffers, metadata}\n msg_handler(msg);\n return messages.next().then(processIteratorResult);\n }\n return messages.next().then(processIteratorResult);\n })\n }\n }\n\n JupyterCommManager.prototype.get_client_comm = function(plot_id, comm_id, msg_handler) {\n if (comm_id in window.PyViz.comms) {\n return window.PyViz.comms[comm_id];\n } else if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n var comm = comm_manager.new_comm(comm_id, {}, {}, {}, comm_id);\n if (msg_handler) {\n comm.on_msg(msg_handler);\n }\n } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n var comm = window.PyViz.kernels[plot_id].connectToComm(comm_id);\n comm.open();\n if (msg_handler) {\n comm.onMsg = msg_handler;\n }\n } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n var comm_promise = google.colab.kernel.comms.open(comm_id)\n comm_promise.then((comm) => {\n window.PyViz.comms[comm_id] = comm;\n if (msg_handler) {\n var messages = comm.messages[Symbol.asyncIterator]();\n function processIteratorResult(result) {\n var message = result.value;\n var content = {data: message.data};\n var metadata = message.metadata || {comm_id};\n var msg = {content, metadata}\n msg_handler(msg);\n return messages.next().then(processIteratorResult);\n }\n return messages.next().then(processIteratorResult);\n }\n }) \n var sendClosure = (data, metadata, buffers, disposeOnDone) => {\n return comm_promise.then((comm) => {\n comm.send(data, metadata, buffers, disposeOnDone);\n });\n };\n var comm = {\n send: sendClosure\n };\n }\n window.PyViz.comms[comm_id] = comm;\n return comm;\n }\n window.PyViz.comm_manager = new JupyterCommManager();\n \n\n\nvar JS_MIME_TYPE = 'application/javascript';\nvar HTML_MIME_TYPE = 'text/html';\nvar EXEC_MIME_TYPE = 'application/vnd.holoviews_exec.v0+json';\nvar CLASS_NAME = 'output';\n\n/**\n * Render data to the DOM node\n */\nfunction render(props, node) {\n var div = document.createElement(\"div\");\n var script = document.createElement(\"script\");\n node.appendChild(div);\n node.appendChild(script);\n}\n\n/**\n * Handle when a new output is added\n */\nfunction handle_add_output(event, handle) {\n var output_area = handle.output_area;\n var output = handle.output;\n if ((output.data == undefined) || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {\n return\n }\n var id = output.metadata[EXEC_MIME_TYPE][\"id\"];\n var toinsert = output_area.element.find(\".\" + CLASS_NAME.split(' ')[0]);\n if (id !== undefined) {\n var nchildren = toinsert.length;\n var html_node = toinsert[nchildren-1].children[0];\n html_node.innerHTML = output.data[HTML_MIME_TYPE];\n var scripts = [];\n var nodelist = html_node.querySelectorAll(\"script\");\n for (var i in nodelist) {\n if (nodelist.hasOwnProperty(i)) {\n scripts.push(nodelist[i])\n }\n }\n\n scripts.forEach( function (oldScript) {\n var newScript = document.createElement(\"script\");\n var attrs = [];\n var nodemap = oldScript.attributes;\n for (var j in nodemap) {\n if (nodemap.hasOwnProperty(j)) {\n attrs.push(nodemap[j])\n }\n }\n attrs.forEach(function(attr) { newScript.setAttribute(attr.name, attr.value) });\n newScript.appendChild(document.createTextNode(oldScript.innerHTML));\n oldScript.parentNode.replaceChild(newScript, oldScript);\n });\n if (JS_MIME_TYPE in output.data) {\n toinsert[nchildren-1].children[1].textContent = output.data[JS_MIME_TYPE];\n }\n output_area._hv_plot_id = id;\n if ((window.Bokeh !== undefined) && (id in Bokeh.index)) {\n window.PyViz.plot_index[id] = Bokeh.index[id];\n } else {\n window.PyViz.plot_index[id] = null;\n }\n } else if (output.metadata[EXEC_MIME_TYPE][\"server_id\"] !== undefined) {\n var bk_div = document.createElement(\"div\");\n bk_div.innerHTML = output.data[HTML_MIME_TYPE];\n var script_attrs = bk_div.children[0].attributes;\n for (var i = 0; i < script_attrs.length; i++) {\n toinsert[toinsert.length - 1].childNodes[1].setAttribute(script_attrs[i].name, script_attrs[i].value);\n }\n // store reference to server id on output_area\n output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE][\"server_id\"];\n }\n}\n\n/**\n * Handle when an output is cleared or removed\n */\nfunction handle_clear_output(event, handle) {\n var id = handle.cell.output_area._hv_plot_id;\n var server_id = handle.cell.output_area._bokeh_server_id;\n if (((id === undefined) || !(id in PyViz.plot_index)) && (server_id !== undefined)) { return; }\n var comm = window.PyViz.comm_manager.get_client_comm(\"hv-extension-comm\", \"hv-extension-comm\", function () {});\n if (server_id !== null) {\n comm.send({event_type: 'server_delete', 'id': server_id});\n return;\n } else if (comm !== null) {\n comm.send({event_type: 'delete', 'id': id});\n }\n delete PyViz.plot_index[id];\n if ((window.Bokeh !== undefined) & (id in window.Bokeh.index)) {\n var doc = window.Bokeh.index[id].model.document\n doc.clear();\n const i = window.Bokeh.documents.indexOf(doc);\n if (i > -1) {\n window.Bokeh.documents.splice(i, 1);\n }\n }\n}\n\n/**\n * Handle kernel restart event\n */\nfunction handle_kernel_cleanup(event, handle) {\n delete PyViz.comms[\"hv-extension-comm\"];\n window.PyViz.plot_index = {}\n}\n\n/**\n * Handle update_display_data messages\n */\nfunction handle_update_output(event, handle) {\n handle_clear_output(event, {cell: {output_area: handle.output_area}})\n handle_add_output(event, handle)\n}\n\nfunction register_renderer(events, OutputArea) {\n function append_mime(data, metadata, element) {\n // create a DOM node to render to\n var toinsert = this.create_output_subarea(\n metadata,\n CLASS_NAME,\n EXEC_MIME_TYPE\n );\n this.keyboard_manager.register_events(toinsert);\n // Render to node\n var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};\n render(props, toinsert[0]);\n element.append(toinsert);\n return toinsert\n }\n\n events.on('output_added.OutputArea', handle_add_output);\n events.on('output_updated.OutputArea', handle_update_output);\n events.on('clear_output.CodeCell', handle_clear_output);\n events.on('delete.Cell', handle_clear_output);\n events.on('kernel_ready.Kernel', handle_kernel_cleanup);\n\n OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {\n safe: true,\n index: 0\n });\n}\n\nif (window.Jupyter !== undefined) {\n try {\n var events = require('base/js/events');\n var OutputArea = require('notebook/js/outputarea').OutputArea;\n if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {\n register_renderer(events, OutputArea);\n }\n } catch(err) {\n }\n}\n" - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "application/vnd.holoviews_exec.v0+json": "", - "text/html": [ - "
\n", - "
\n", - "
\n", - "" - ] - }, - "metadata": { - "application/vnd.holoviews_exec.v0+json": { - "id": "dcf1959a-909b-4093-88e5-fb9a74cf75c2" - } - }, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "pn.extension(\"terminal\")" ] @@ -2162,16 +157,9 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "id": "28ed2cbd-a3ae-48ff-91fd-2f04f4a22bbd", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:36:47.068403Z", - "iopub.status.busy": "2023-10-31T21:36:47.068268Z", - "iopub.status.idle": "2023-10-31T21:36:47.072455Z", - "shell.execute_reply": "2023-10-31T21:36:47.072091Z", - "shell.execute_reply.started": "2023-10-31T21:36:47.068391Z" - }, "tags": [] }, "outputs": [], @@ -2236,16 +224,9 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": null, "id": "03779a6b-0672-4817-8bcd-045dae9ba24c", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:36:47.073081Z", - "iopub.status.busy": "2023-10-31T21:36:47.072958Z", - "iopub.status.idle": "2023-10-31T21:36:47.076075Z", - "shell.execute_reply": "2023-10-31T21:36:47.075726Z", - "shell.execute_reply.started": "2023-10-31T21:36:47.073070Z" - }, "tags": [] }, "outputs": [], @@ -2263,16 +244,9 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": null, "id": "369f373a-0b7e-45f0-ad83-c0c464d59743", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:36:47.076645Z", - "iopub.status.busy": "2023-10-31T21:36:47.076528Z", - "iopub.status.idle": "2023-10-31T21:36:50.186947Z", - "shell.execute_reply": "2023-10-31T21:36:50.186427Z", - "shell.execute_reply.started": "2023-10-31T21:36:47.076635Z" - }, "tags": [] }, "outputs": [], @@ -2290,30 +264,12 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": null, "id": "81b0f805-4cf6-4026-9d4c-4c59d3af7067", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:36:50.187723Z", - "iopub.status.busy": "2023-10-31T21:36:50.187574Z", - "iopub.status.idle": "2023-10-31T21:36:50.192930Z", - "shell.execute_reply": "2023-10-31T21:36:50.192573Z", - "shell.execute_reply.started": "2023-10-31T21:36:50.187709Z" - }, "tags": [] }, - "outputs": [ - { - "data": { - "text/plain": [ - "(datetime.date(2025, 1, 1), 60676.0)" - ] - }, - "execution_count": 10, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "evening_iso8601 = \"2025-01-01\"\n", "\n", @@ -2333,30 +289,12 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "id": "94a10715-330d-404f-9c2d-b66a4b9caafa", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:36:50.193518Z", - "iopub.status.busy": "2023-10-31T21:36:50.193395Z", - "iopub.status.idle": "2023-10-31T21:36:50.199403Z", - "shell.execute_reply": "2023-10-31T21:36:50.199057Z", - "shell.execute_reply.started": "2023-10-31T21:36:50.193506Z" - }, "tags": [] }, - "outputs": [ - { - "data": { - "text/plain": [ - "('2025-01-02 00:48:57.891', 0.3758183578029275)" - ] - }, - "execution_count": 11, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "# If the date represents the local calendar date at sunset, we need to shift by the longitude in units of days\n", "this_night = (\n", @@ -2374,16 +312,9 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": null, "id": "f0a93376-0dac-4782-9462-6c41cefc21d0", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:36:50.199988Z", - "iopub.status.busy": "2023-10-31T21:36:50.199864Z", - "iopub.status.idle": "2023-10-31T21:36:53.245190Z", - "shell.execute_reply": "2023-10-31T21:36:53.244747Z", - "shell.execute_reply.started": "2023-10-31T21:36:50.199976Z" - }, "tags": [] }, "outputs": [], @@ -2393,44 +324,12 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": null, "id": "8d6febc7-3b39-4f59-9c2a-bb8d6498ecf4", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:36:53.245898Z", - "iopub.status.busy": "2023-10-31T21:36:53.245768Z", - "iopub.status.idle": "2023-10-31T21:37:03.987084Z", - "shell.execute_reply": "2023-10-31T21:37:03.986570Z", - "shell.execute_reply.started": "2023-10-31T21:36:53.245886Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "cat: /sdf/group/rubin/user/neilsen/mambaforge/envs/svtest20231031/lib/python3.11/site-packages/rubin_sim/../.git/refs/heads/main: No such file or directory\n", - "INFO:healpy:Sigma is 254.796540 arcmin (0.074117 rad) \n", - "INFO:healpy:-> fwhm is 600.000000 arcmin\n", - "INFO:healpy:Sigma is 0.000000 arcmin (0.000000 rad) \n", - "INFO:healpy:-> fwhm is 0.000000 arcmin\n", - "/sdf/group/rubin/user/neilsen/mambaforge/envs/svtest20231031/lib/python3.11/site-packages/rubin_sim/scheduler/surveys/ddf_presched.py:334: UserWarning: Pre-computed DDF properties don't match requested survey times\n", - " warnings.warn(\"Pre-computed DDF properties don't match requested survey times\")\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Optimizing ELAISS1\n", - "Optimizing XMM_LSS\n", - "Optimizing ECDFS\n", - "Optimizing COSMOS\n", - "Optimizing EDFS_a\n" - ] - } - ], + "outputs": [], "source": [ "scheduler = example_scheduler(mjd_start=mjd_start)" ] @@ -2461,48 +360,12 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": null, "id": "1356fb83-51ab-4ccd-9147-134d91db7419", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:37:03.987862Z", - "iopub.status.busy": "2023-10-31T21:37:03.987731Z", - "iopub.status.idle": "2023-10-31T21:37:36.146501Z", - "shell.execute_reply": "2023-10-31T21:37:36.146155Z", - "shell.execute_reply.started": "2023-10-31T21:37:03.987849Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/sdf/group/rubin/user/neilsen/mambaforge/envs/svtest20231031/lib/python3.11/site-packages/rubin_sim/skybrightness_pre/sky_model_pre.py:266: UserWarning: Requested MJD between sunrise and sunset, returning closest maps\n", - " warnings.warn(\"Requested MJD between sunrise and sunset, returning closest maps\")\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "progress = 266.11%Skipped 0 observations\n", - "Flushed 20 observations from queue for being stale\n", - "Completed 750 observations\n", - "ran in 0 min = 0.0 hours\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/sdf/group/rubin/user/neilsen/mambaforge/envs/svtest20231031/lib/python3.11/site-packages/rubin_sim/skybrightness_pre/sky_model_pre.py:266: UserWarning: Requested MJD between sunrise and sunset, returning closest maps\n", - " warnings.warn(\"Requested MJD between sunrise and sunset, returning closest maps\")\n", - "/sdf/group/rubin/user/neilsen/mambaforge/envs/svtest20231031/lib/python3.11/site-packages/rubin_sim/skybrightness_pre/sky_model_pre.py:266: UserWarning: Requested MJD between sunrise and sunset, returning closest maps\n", - " warnings.warn(\"Requested MJD between sunrise and sunset, returning closest maps\")\n" - ] - } - ], + "outputs": [], "source": [ "if not keep_rewards:\n", " observatory, scheduler, observations = sim_runner(\n", @@ -2529,16 +392,9 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": null, "id": "a6c2f16b-c54c-41bc-8daa-1f107e1f48a4", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:37:36.148301Z", - "iopub.status.busy": "2023-10-31T21:37:36.148165Z", - "iopub.status.idle": "2023-10-31T21:37:36.150515Z", - "shell.execute_reply": "2023-10-31T21:37:36.150164Z", - "shell.execute_reply.started": "2023-10-31T21:37:36.148284Z" - }, "tags": [] }, "outputs": [], @@ -2548,29 +404,10 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": null, "id": "1840ee54-90e9-44b3-a425-7de490e325bc", - "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:37:36.151043Z", - "iopub.status.busy": "2023-10-31T21:37:36.150909Z", - "iopub.status.idle": "2023-10-31T21:37:36.169029Z", - "shell.execute_reply": "2023-10-31T21:37:36.168757Z", - "shell.execute_reply.started": "2023-10-31T21:37:36.151028Z" - } - }, - "outputs": [ - { - "data": { - "text/plain": [ - "'/tmp/tmp_hlt_s_l/opsim-p79u64ur.db'" - ] - }, - "execution_count": 16, - "metadata": {}, - "output_type": "execute_result" - } - ], + "metadata": {}, + "outputs": [], "source": [ "with NamedTemporaryFile(prefix=\"opsim-\", suffix=\".db\", dir=data_dir.name) as temp_file:\n", " opsim_output_fname = temp_file.name\n", @@ -2581,29 +418,10 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": null, "id": "2fec714c-ea8c-48b8-b9e9-426889b5e3f6", - "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:37:36.169537Z", - "iopub.status.busy": "2023-10-31T21:37:36.169418Z", - "iopub.status.idle": "2023-10-31T21:37:50.187557Z", - "shell.execute_reply": "2023-10-31T21:37:50.187151Z", - "shell.execute_reply.started": "2023-10-31T21:37:36.169525Z" - } - }, - "outputs": [ - { - "data": { - "text/plain": [ - "'/tmp/tmp_hlt_s_l/scheduler-hsey15lk.pickle.xz'" - ] - }, - "execution_count": 17, - "metadata": {}, - "output_type": "execute_result" - } - ], + "metadata": {}, + "outputs": [], "source": [ "with NamedTemporaryFile(\n", " prefix=\"scheduler-\", suffix=\".pickle.xz\", dir=data_dir.name\n", @@ -2618,32 +436,10 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": null, "id": "4c8dc1c2-43f1-4195-bdf1-8c0b5d211340", - "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:37:50.188223Z", - "iopub.status.busy": "2023-10-31T21:37:50.188098Z", - "iopub.status.idle": "2023-10-31T21:37:53.981960Z", - "shell.execute_reply": "2023-10-31T21:37:53.981494Z", - "shell.execute_reply.started": "2023-10-31T21:37:50.188211Z" - } - }, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/tmp/ipykernel_8313/1851038798.py:6: PerformanceWarning: \n", - "your performance may suffer as PyTables will pickle object types that it cannot\n", - "map directly to c-types [inferred_type->mixed,key->block3_values] [items->Index(['basis_function', 'tier_label', 'survey_label', 'survey_class',\n", - " 'basis_function_class'],\n", - " dtype='object')]\n", - "\n", - " reward_df.to_hdf(rewards_fname, \"reward_df\")\n" - ] - } - ], + "metadata": {}, + "outputs": [], "source": [ "with NamedTemporaryFile(\n", " prefix=\"rewards-\", suffix=\".h5\", dir=data_dir.name\n", @@ -2664,17 +460,9 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": null, "id": "529560b0-810c-4894-8a79-cd547ca425b7", - "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:37:53.982594Z", - "iopub.status.busy": "2023-10-31T21:37:53.982474Z", - "iopub.status.idle": "2023-10-31T21:37:53.986766Z", - "shell.execute_reply": "2023-10-31T21:37:53.986371Z", - "shell.execute_reply.started": "2023-10-31T21:37:53.982582Z" - } - }, + "metadata": {}, "outputs": [], "source": [ "# del observations\n", @@ -2709,136 +497,24 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": null, "id": "34eff882-ae99-4c8c-a02f-e97ccbb9b7b4", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:37:53.987326Z", - "iopub.status.busy": "2023-10-31T21:37:53.987203Z", - "iopub.status.idle": "2023-10-31T21:37:54.033888Z", - "shell.execute_reply": "2023-10-31T21:37:54.033510Z", - "shell.execute_reply.started": "2023-10-31T21:37:53.987314Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/sdf/group/rubin/user/neilsen/mambaforge/envs/svtest20231031/lib/python3.11/site-packages/erfa/core.py:154: ErfaWarning: ERFA function \"dtf2d\" yielded 1 of \"dubious year (Note 6)\"\n", - " warnings.warn('ERFA function \"{}\" yielded {}'.format(func_name, wmsg),\n" - ] - } - ], + "outputs": [], "source": [ "visits = schedview.collect.opsim.read_opsim(opsim_output_fname)" ] }, { "cell_type": "code", - "execution_count": 21, + "execution_count": null, "id": "6b22e706-4b6a-49f3-84a3-09b1acc14b62", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:37:54.034490Z", - "iopub.status.busy": "2023-10-31T21:37:54.034369Z", - "iopub.status.idle": "2023-10-31T21:37:54.148387Z", - "shell.execute_reply": "2023-10-31T21:37:54.148020Z", - "shell.execute_reply.started": "2023-10-31T21:37:54.034479Z" - }, "tags": [] }, - "outputs": [ - { - "data": {}, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "application/vnd.holoviews_exec.v0+json": "", - "text/html": [ - "
\n", - "
\n", - "
\n", - "" - ], - "text/plain": [ - ":Scatter [slewDistance] (slewTime,visitTime,visitExposureTime)" - ] - }, - "execution_count": 21, - "metadata": { - "application/vnd.holoviews_exec.v0+json": { - "id": "5b943c32-b9b2-4c7e-87f7-738620219aac" - } - }, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "hvplot_kwargs_slew = {\n", " \"kind\": \"scatter\",\n", @@ -2856,109 +532,12 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": null, "id": "25c74c0f-9438-4ba6-ba1b-b45f331754a3", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:37:54.149041Z", - "iopub.status.busy": "2023-10-31T21:37:54.148918Z", - "iopub.status.idle": "2023-10-31T21:37:54.492614Z", - "shell.execute_reply": "2023-10-31T21:37:54.492230Z", - "shell.execute_reply.started": "2023-10-31T21:37:54.149029Z" - }, "tags": [] }, - "outputs": [ - { - "data": {}, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "application/vnd.holoviews_exec.v0+json": "", - "text/html": [ - "
\n", - "
\n", - "
\n", - "" - ], - "text/plain": [ - ":NdOverlay [note]\n", - " :Histogram [airmass] (airmass_count)" - ] - }, - "execution_count": 22, - "metadata": { - "application/vnd.holoviews_exec.v0+json": { - "id": "7bdc7882-29c4-4592-a5bb-9420d9ee7e8e" - } - }, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "hvplot_kwargs_airmass_hist = {\n", " \"kind\": \"hist\",\n", @@ -2981,16 +560,9 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": null, "id": "61598f81-a909-47cd-b4df-3e80f89969a0", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:37:54.493259Z", - "iopub.status.busy": "2023-10-31T21:37:54.493137Z", - "iopub.status.idle": "2023-10-31T21:37:54.496453Z", - "shell.execute_reply": "2023-10-31T21:37:54.496090Z", - "shell.execute_reply.started": "2023-10-31T21:37:54.493248Z" - }, "tags": [] }, "outputs": [], @@ -3021,53 +593,12 @@ }, { "cell_type": "code", - "execution_count": 24, + "execution_count": null, "id": "e49a3674-1974-4836-a59c-05eaea5b3783", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:37:54.497063Z", - "iopub.status.busy": "2023-10-31T21:37:54.496940Z", - "iopub.status.idle": "2023-10-31T21:37:54.500474Z", - "shell.execute_reply": "2023-10-31T21:37:54.500084Z", - "shell.execute_reply.started": "2023-10-31T21:37:54.497051Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "[\n", - " {\n", - " \"name\": \"Slew Time\",\n", - " \"settings\": {\n", - " \"kind\": \"scatter\",\n", - " \"x\": \"slewDistance\",\n", - " \"y\": \"slewTime\",\n", - " \"ylabel\": \"slew time (seconds)\",\n", - " \"xlabel\": \"slew distance (degrees)\",\n", - " \"color\": \"visitTime\",\n", - " \"size\": \"visitExposureTime\",\n", - " \"clabel\": \"visit time (seconds)\",\n", - " \"cmap\": \"isolum\"\n", - " }\n", - " },\n", - " {\n", - " \"name\": \"Airmass histogram\",\n", - " \"settings\": {\n", - " \"kind\": \"hist\",\n", - " \"y\": \"airmass\",\n", - " \"by\": \"note\",\n", - " \"bins\": 15,\n", - " \"height\": 512,\n", - " \"ylabel\": \"number of visits\"\n", - " }\n", - " }\n", - "]\n" - ] - } - ], + "outputs": [], "source": [ "with open(custom_tabs_fname, \"r\") as custom_tabs_file:\n", " custom_json = custom_tabs_file.read()\n", @@ -3093,380 +624,12 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": null, "id": "8ab6011b-bb73-42cf-adba-311d144dcbfa", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:37:54.501072Z", - "iopub.status.busy": "2023-10-31T21:37:54.500954Z", - "iopub.status.idle": "2023-10-31T21:38:06.384975Z", - "shell.execute_reply": "2023-10-31T21:38:06.384664Z", - "shell.execute_reply.started": "2023-10-31T21:37:54.501061Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2023-10-31 21:37:54,505: Updating almanac events.\n", - "INFO:prenight:Updating almanac events.\n", - "WARNING: IERSDegradedAccuracyWarning: (some) times are outside of range covered by IERS table, accuracy is degraded. [astropy.utils.iers.iers]\n", - "WARNING:astropy:IERSDegradedAccuracyWarning: (some) times are outside of range covered by IERS table, accuracy is degraded.\n", - "WARNING: Tried to get polar motions for times after IERS data is valid. Defaulting to polar motion from the 50-yr mean for those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version if necessary. [astropy.coordinates.builtin_frames.utils]\n", - "WARNING:astropy:Tried to get polar motions for times after IERS data is valid. Defaulting to polar motion from the 50-yr mean for those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version if necessary.\n", - "2023-10-31 21:37:56,132: Updating almanac events.\n", - "INFO:prenight:Updating almanac events.\n", - "WARNING: IERSDegradedAccuracyWarning: (some) times are outside of range covered by IERS table, accuracy is degraded. [astropy.utils.iers.iers]\n", - "WARNING:astropy:IERSDegradedAccuracyWarning: (some) times are outside of range covered by IERS table, accuracy is degraded.\n", - "WARNING: Tried to get polar motions for times after IERS data is valid. Defaulting to polar motion from the 50-yr mean for those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version if necessary. [astropy.coordinates.builtin_frames.utils]\n", - "WARNING:astropy:Tried to get polar motions for times after IERS data is valid. Defaulting to polar motion from the 50-yr mean for those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version if necessary.\n", - "2023-10-31 21:37:56,146: Starting to update the scheduler.\n", - "INFO:prenight:Starting to update the scheduler.\n", - "2023-10-31 21:37:57,308: Finished updating the scheduler.\n", - "INFO:prenight:Finished updating the scheduler.\n", - "2023-10-31 21:37:57,309: Starting to update visits.\n", - "INFO:prenight:Starting to update visits.\n", - "2023-10-31 21:37:57,319: Finish updating visits DataFrame.\n", - "INFO:prenight:Finish updating visits DataFrame.\n", - "2023-10-31 21:37:57,320: Starting to update visits ColumnDataSource.\n", - "INFO:prenight:Starting to update visits ColumnDataSource.\n", - "2023-10-31 21:37:57,331: Finished updating visits ColumnDataSource.\n", - "INFO:prenight:Finished updating visits ColumnDataSource.\n", - "2023-10-31 21:37:57,331: Starting to update reward dataframe.\n", - "INFO:prenight:Starting to update reward dataframe.\n", - "2023-10-31 21:37:57,345: Finished updating reward dataframe.\n", - "INFO:prenight:Finished updating reward dataframe.\n", - "2023-10-31 21:37:57,346: Starting to update tier selector.\n", - "INFO:prenight:Starting to update tier selector.\n", - "2023-10-31 21:37:57,347: Starting to update surveys selector.\n", - "INFO:prenight:Starting to update surveys selector.\n", - "2023-10-31 21:37:57,350: Starting to update basis function selector.\n", - "INFO:prenight:Starting to update basis function selector.\n", - "2023-10-31 21:37:57,354: Finished updating basis function selector.\n", - "INFO:prenight:Finished updating basis function selector.\n", - "2023-10-31 21:37:57,354: Finished updating surveys selector.\n", - "INFO:prenight:Finished updating surveys selector.\n", - "2023-10-31 21:37:57,355: Starting to update basis function selector.\n", - "INFO:prenight:Starting to update basis function selector.\n", - "2023-10-31 21:37:57,358: Finished updating basis function selector.\n", - "INFO:prenight:Finished updating basis function selector.\n", - "2023-10-31 21:37:57,358: Finished updating tier selector.\n", - "INFO:prenight:Finished updating tier selector.\n", - "2023-10-31 21:37:57,359: Starting to update surveys selector.\n", - "INFO:prenight:Starting to update surveys selector.\n", - "2023-10-31 21:37:57,362: Finished updating surveys selector.\n", - "INFO:prenight:Finished updating surveys selector.\n", - "2023-10-31 21:37:57,362: Starting to update basis function selector.\n", - "INFO:prenight:Starting to update basis function selector.\n", - "2023-10-31 21:37:57,365: Finished updating basis function selector.\n", - "INFO:prenight:Finished updating basis function selector.\n", - "2023-10-31 21:37:57,366: Starting to update obs_rewards.\n", - "INFO:prenight:Starting to update obs_rewards.\n", - "2023-10-31 21:37:57,368: Finished updating obs_rewards.\n", - "INFO:prenight:Finished updating obs_rewards.\n", - "2023-10-31 21:37:57,381: Starting to update almanac table.\n", - "INFO:prenight:Starting to update almanac table.\n", - "2023-10-31 21:37:57,415: Finished updating almanac table.\n", - "INFO:prenight:Finished updating almanac table.\n", - "2023-10-31 21:37:57,424: Starting to update tab contents.\n", - "INFO:prenight:Starting to update tab contents.\n", - "2023-10-31 21:37:57,425: Starting to create initial dict of tab contents.\n", - "INFO:prenight:Starting to create initial dict of tab contents.\n", - "2023-10-31 21:37:57,430: Starting to update altitude vs. time plot\n", - "INFO:prenight:Starting to update altitude vs. time plot\n", - "2023-10-31 21:37:57,460: Finished updating altitude vs. time plot\n", - "INFO:prenight:Finished updating altitude vs. time plot\n", - "2023-10-31 21:37:57,470: Starting to update polar alt-az plot\n", - "INFO:prenight:Starting to update polar alt-az plot\n", - "2023-10-31 21:37:57,620: Finished updating polar alt-az plot\n", - "INFO:prenight:Finished updating polar alt-az plot\n", - "2023-10-31 21:37:57,631: Starting to update airmass vs. time plot\n", - "INFO:prenight:Starting to update airmass vs. time plot\n", - "2023-10-31 21:37:57,656: Finished updating airmass vs. time plot\n", - "INFO:prenight:Finished updating airmass vs. time plot\n", - "2023-10-31 21:37:57,666: Starting to update visit skymaps\n", - "INFO:prenight:Starting to update visit skymaps\n", - "WARNING: IERSDegradedAccuracyWarning: (some) times are outside of range covered by IERS table, accuracy is degraded. [astropy.utils.iers.iers]\n", - "WARNING:astropy:IERSDegradedAccuracyWarning: (some) times are outside of range covered by IERS table, accuracy is degraded.\n", - "WARNING: Tried to get polar motions for times after IERS data is valid. Defaulting to polar motion from the 50-yr mean for those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version if necessary. [astropy.coordinates.builtin_frames.utils]\n", - "WARNING:astropy:Tried to get polar motions for times after IERS data is valid. Defaulting to polar motion from the 50-yr mean for those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version if necessary.\n", - "/sdf/group/rubin/user/neilsen/mambaforge/envs/svtest20231031/lib/python3.11/site-packages/rubin_sim/skybrightness_pre/sky_model_pre.py:266: UserWarning: Requested MJD between sunrise and sunset, returning closest maps\n", - " warnings.warn(\"Requested MJD between sunrise and sunset, returning closest maps\")\n", - "WARNING: IERSDegradedAccuracyWarning: (some) times are outside of range covered by IERS table, accuracy is degraded. [astropy.utils.iers.iers]\n", - "WARNING:astropy:IERSDegradedAccuracyWarning: (some) times are outside of range covered by IERS table, accuracy is degraded.\n", - "WARNING: Tried to get polar motions for times after IERS data is valid. Defaulting to polar motion from the 50-yr mean for those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version if necessary. [astropy.coordinates.builtin_frames.utils]\n", - "WARNING:astropy:Tried to get polar motions for times after IERS data is valid. Defaulting to polar motion from the 50-yr mean for those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version if necessary.\n", - "WARNING: IERSDegradedAccuracyWarning: (some) times are outside of range covered by IERS table, accuracy is degraded. [astropy.utils.iers.iers]\n", - "WARNING:astropy:IERSDegradedAccuracyWarning: (some) times are outside of range covered by IERS table, accuracy is degraded.\n", - "WARNING: Tried to get polar motions for times after IERS data is valid. Defaulting to polar motion from the 50-yr mean for those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version if necessary. [astropy.coordinates.builtin_frames.utils]\n", - "WARNING:astropy:Tried to get polar motions for times after IERS data is valid. Defaulting to polar motion from the 50-yr mean for those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version if necessary.\n", - "WARNING: IERSDegradedAccuracyWarning: (some) times are outside of range covered by IERS table, accuracy is degraded. [astropy.utils.iers.iers]\n", - "WARNING:astropy:IERSDegradedAccuracyWarning: (some) times are outside of range covered by IERS table, accuracy is degraded.\n", - "WARNING: Tried to get polar motions for times after IERS data is valid. Defaulting to polar motion from the 50-yr mean for those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version if necessary. [astropy.coordinates.builtin_frames.utils]\n", - "WARNING:astropy:Tried to get polar motions for times after IERS data is valid. Defaulting to polar motion from the 50-yr mean for those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version if necessary.\n", - "WARNING: IERSDegradedAccuracyWarning: (some) times are outside of range covered by IERS table, accuracy is degraded. [astropy.utils.iers.iers]\n", - "WARNING:astropy:IERSDegradedAccuracyWarning: (some) times are outside of range covered by IERS table, accuracy is degraded.\n", - "WARNING: Tried to get polar motions for times after IERS data is valid. Defaulting to polar motion from the 50-yr mean for those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version if necessary. [astropy.coordinates.builtin_frames.utils]\n", - "WARNING:astropy:Tried to get polar motions for times after IERS data is valid. Defaulting to polar motion from the 50-yr mean for those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version if necessary.\n", - "WARNING: Tried to get polar motions for times after IERS data is valid. Defaulting to polar motion from the 50-yr mean for those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version if necessary. [astropy.coordinates.builtin_frames.utils]\n", - "WARNING:astropy:Tried to get polar motions for times after IERS data is valid. Defaulting to polar motion from the 50-yr mean for those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version if necessary.\n", - "WARNING: IERSDegradedAccuracyWarning: (some) times are outside of range covered by IERS table, accuracy is degraded. [astropy.utils.iers.iers]\n", - "WARNING:astropy:IERSDegradedAccuracyWarning: (some) times are outside of range covered by IERS table, accuracy is degraded.\n", - "2023-10-31 21:38:02,837: Finished updating visit skymaps\n", - "INFO:prenight:Finished updating visit skymaps\n", - "2023-10-31 21:38:02,847: Updating visit tabulator widget\n", - "INFO:prenight:Updating visit tabulator widget\n", - "2023-10-31 21:38:02,855: Finished updating visit tabulator widget\n", - "INFO:prenight:Finished updating visit tabulator widget\n", - "2023-10-31 21:38:02,862: Starting to update reward params.\n", - "INFO:prenight:Starting to update reward params.\n", - "2023-10-31 21:38:02,869: Finished updating reward params.\n", - "INFO:prenight:Finished updating reward params.\n", - "2023-10-31 21:38:02,875: Starting to update reward plot.\n", - "INFO:prenight:Starting to update reward plot.\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "/sdf/data/rubin/user/neilsen/devel/schedview/schedview/plot/nightbf.py:176: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`\n", - " reward = this_survey_reward_df.query(f\"queue_fill_mjd_ns=={fill_mjd}\")[y_column][0]\n", - "2023-10-31 21:38:03,032: Finished updating reward plot.\n", - "INFO:prenight:Finished updating reward plot.\n", - "2023-10-31 21:38:03,042: Starting to update infeasible plot.\n", - "INFO:prenight:Starting to update infeasible plot.\n", - "2023-10-31 21:38:03,064: Finished updating infeasible plot.\n", - "INFO:prenight:Finished updating infeasible plot.\n", - "2023-10-31 21:38:03,075: Starting to update visit explorer\n", - "INFO:prenight:Starting to update visit explorer\n", - "WARNING: IERSDegradedAccuracyWarning: (some) times are outside of range covered by IERS table, accuracy is degraded. [astropy.utils.iers.iers]\n", - "WARNING:astropy:IERSDegradedAccuracyWarning: (some) times are outside of range covered by IERS table, accuracy is degraded.\n", - "WARNING: Tried to get polar motions for times after IERS data is valid. Defaulting to polar motion from the 50-yr mean for those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version if necessary. [astropy.coordinates.builtin_frames.utils]\n", - "WARNING:astropy:Tried to get polar motions for times after IERS data is valid. Defaulting to polar motion from the 50-yr mean for those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version if necessary.\n", - "2023-10-31 21:38:06,270: Finished updating visit explorer\n", - "INFO:prenight:Finished updating visit explorer\n", - "2023-10-31 21:38:06,273: Finished creating initial dict of tab contents.\n", - "INFO:prenight:Finished creating initial dict of tab contents.\n", - "2023-10-31 21:38:06,278: Starting to create custom hvplot 0 (Slew Time)\n", - "INFO:prenight:Starting to create custom hvplot 0 (Slew Time)\n", - "2023-10-31 21:38:06,293: Finished creating custom hvplot 0\n", - "INFO:prenight:Finished creating custom hvplot 0\n", - "2023-10-31 21:38:06,305: Starting to create custom hvplot 1 (Airmass histogram)\n", - "INFO:prenight:Starting to create custom hvplot 1 (Airmass histogram)\n", - "2023-10-31 21:38:06,361: Finished creating custom hvplot 1\n", - "INFO:prenight:Finished creating custom hvplot 1\n", - "2023-10-31 21:38:06,369: Finished updating tab contents.\n", - "INFO:prenight:Finished updating tab contents.\n" - ] - } - ], + "outputs": [], "source": [ "prenight = schedview.app.prenight.Prenight()\n", "pn_app = prenight.make_app(\n", @@ -3480,239 +643,12 @@ }, { "cell_type": "code", - "execution_count": 26, + "execution_count": null, "id": "a9764efa-de7f-4f3e-8730-33680fcbbb29", "metadata": { - "execution": { - "iopub.execute_input": "2023-10-31T21:38:06.385762Z", - "iopub.status.busy": "2023-10-31T21:38:06.385471Z", - "iopub.status.idle": "2023-10-31T21:38:08.405436Z", - "shell.execute_reply": "2023-10-31T21:38:08.405029Z", - "shell.execute_reply.started": "2023-10-31T21:38:06.385749Z" - }, "tags": [] }, - "outputs": [ - { - "data": {}, - "metadata": {}, - "output_type": "display_data" - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n", - "BokehUserWarning: out of range integer may result in loss of precision\n" - ] - }, - { - "data": {}, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "application/vnd.holoviews_exec.v0+json": "", - "text/html": [ - "
\n", - "
\n", - "
\n", - "" - ], - "text/plain": [ - "Column(sizing_mode='stretch_width')\n", - " [0] Markdown(str, sizing_mode='stretch_width')\n", - " [1] Row(sizing_mode='stretch_width')\n", - " [0] Param(Prenight, name='

Parameters

', parameters=['night', 'timezone', ...], sizing_mode='stretch_width', widgets={'night': = 5.3", + "colorcet", + "bokeh >= 3.1.1", + "healpy", + "holoviews", + "hvplot", "numpy", "pandas", - "pytz", + "panel >= 1.1.0", "param", - "holoviews", - "hvplot", - "astropy >= 5.3", - "healpy", + "pytz", + "rubin-scheduler", "uranography >= 1.1.0 ", - "rubin-sim < 2", - "bokeh >= 3.1.1", - "panel >= 1.1.0", - "colorcet", ] [project.optional-dependencies] test = [ "pytest", "black", + "isort", "ruff", "pytest-cov", "pytest-black", + "geckodriver" ] dev = [ - "documenteer[pipelines]", + "documenteer[guide]", ] [project.scripts] diff --git a/requirements.txt b/requirements.txt index 07ab5a1d..703828a4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,13 @@ +astropy +bokeh +colorcet +healpy holoviews hvplot -rubin-sim <2.0 +numpy +pandas +panel +param +pytz uranography +rubin-scheduler diff --git a/schedview/app/prenight/prenight.py b/schedview/app/prenight/prenight.py index 93a73806..dabb4dbc 100644 --- a/schedview/app/prenight/prenight.py +++ b/schedview/app/prenight/prenight.py @@ -14,10 +14,10 @@ import pandas as pd import panel as pn import param -import rubin_sim.scheduler.example +import rubin_scheduler.scheduler.example from astropy.time import Time -from rubin_sim.scheduler.model_observatory import ModelObservatory -from rubin_sim.utils import survey_start_mjd +from rubin_scheduler.scheduler.model_observatory import ModelObservatory +from rubin_scheduler.utils import survey_start_mjd import schedview.collect.footprint import schedview.collect.opsim @@ -97,10 +97,10 @@ class Prenight(param.Parameterized): scheduler_fname_doc = """URL or file name of the scheduler pickle file. Such a pickle file can either be of an instance of a subclass of -rubin_sim.scheduler.schedulers.CoreScheduler, or a tuple of the form +rubin_scheduler.scheduler.schedulers.CoreScheduler, or a tuple of the form (scheduler, conditions), where scheduler is an instance of a subclass of -rubin_sim.scheduler.schedulers.CoreScheduler, and conditions is an -instance of rubin_sim.scheduler.conditions.Conditions.""" +rubin_scheduler.scheduler.schedulers.CoreScheduler, and conditions is an +instance of rubin_scheduler.scheduler.conditions.Conditions.""" scheduler_fname = param.String( doc=scheduler_fname_doc, label="URL or file name of scheduler pickle file", @@ -170,12 +170,12 @@ class Prenight(param.Parameterized): # and communication overhead is reduced. _visits_cds = param.Parameter() - # An instance of rubin_sim.scheduler.schedulers.CoreScheduler + # An instance of rubin_scheduler.scheduler.schedulers.CoreScheduler _scheduler = param.Parameter() _almanac_events = schedview.param.DataFrame( None, - doc="Events from the rubin_sim alamanc", + doc="Events from the rubin_scheduler alamanc", columns={"MJD": float, "LST": float, "UTC": pd.Timestamp}, ) @@ -437,7 +437,7 @@ def _update_scheduler(self): self.logger.error(f"Could not load scheduler from {self.scheduler_fname} {e}") if USE_EXAMPLE_SCHEDULER: self.logger.info("Starting to load example scheduler.") - self._scheduler = rubin_sim.scheduler.example.example_scheduler(nside=self._nside) + self._scheduler = rubin_scheduler.scheduler.example.example_scheduler(nside=self._nside) self.logger.info("Finished loading example scheduler.") @param.depends( diff --git a/schedview/app/sched_maps/sched_maps.py b/schedview/app/sched_maps/sched_maps.py index 2b4cb5fb..c3227615 100644 --- a/schedview/app/sched_maps/sched_maps.py +++ b/schedview/app/sched_maps/sched_maps.py @@ -3,8 +3,8 @@ import bokeh.plotting import pandas as pd from astropy.time import Time -from rubin_sim.scheduler.example import example_scheduler -from rubin_sim.scheduler.model_observatory import ModelObservatory +from rubin_scheduler.scheduler.example import example_scheduler +from rubin_scheduler.scheduler.model_observatory import ModelObservatory from uranography.api import ArmillarySphere, HorizonMap, MollweideMap, Planisphere from schedview.collect import read_scheduler, sample_pickle diff --git a/schedview/app/scheduler_dashboard/__init__.py b/schedview/app/scheduler_dashboard/__init__.py index a2afd707..4051677c 100644 --- a/schedview/app/scheduler_dashboard/__init__.py +++ b/schedview/app/scheduler_dashboard/__init__.py @@ -1 +1,5 @@ +__all__ = [ + "scheduler_app", +] + from .scheduler_dashboard import scheduler_app diff --git a/schedview/app/scheduler_dashboard/scheduler_dashboard.py b/schedview/app/scheduler_dashboard/scheduler_dashboard.py index 138cc5fd..ebe0a825 100644 --- a/schedview/app/scheduler_dashboard/scheduler_dashboard.py +++ b/schedview/app/scheduler_dashboard/scheduler_dashboard.py @@ -39,7 +39,7 @@ import numpy as np import panel as pn import param -import rubin_sim.site_models +import rubin_scheduler.site_models from astropy.time import Time from astropy.utils.exceptions import AstropyWarning from bokeh.models import ColorBar, LinearColorMapper @@ -49,7 +49,7 @@ from pytz import timezone # For the conditions.mjd bugfix -from rubin_sim.scheduler.model_observatory import ModelObservatory +from rubin_scheduler.scheduler.model_observatory import ModelObservatory import schedview import schedview.collect.scheduler_pickle @@ -116,10 +116,10 @@ class Scheduler(param.Parameterized): # Param parameters that are modifiable by user actions. scheduler_fname_doc = """URL or file name of the scheduler pickle file. Such a pickle file can either be of an instance of a subclass of - rubin_sim.scheduler.schedulers.CoreScheduler, or a tuple of the form + rubin_scheduler.scheduler.schedulers.CoreScheduler, or a tuple of the form (scheduler, conditions), where scheduler is an instance of a subclass of - rubin_sim.scheduler.schedulers.CoreScheduler, and conditions is an - instance of rubin_sim.scheduler.conditions.Conditions. + rubin_scheduler.scheduler.schedulers.CoreScheduler, and conditions is an + instance of rubin_scheduler.scheduler.conditions.Conditions. """ scheduler_fname = param.String( default="", @@ -582,12 +582,12 @@ def update_conditions(self): or self._model_observatory.nside != self._scheduler.nside ): # Get weather conditions from pickle. - wind_data = rubin_sim.site_models.ConstantWindData( + wind_data = rubin_scheduler.site_models.ConstantWindData( wind_speed=self._conditions.wind_speed, wind_direction=self._conditions.wind_direction, ) # Set seeing to fiducial site seeing. - seeing_data = rubin_sim.site_models.ConstantSeeingData(0.69) + seeing_data = rubin_scheduler.site_models.ConstantSeeingData(0.69) # Create new MO instance. self._model_observatory = ModelObservatory( nside=self._scheduler.nside, @@ -1294,10 +1294,10 @@ class RestrictedFilesScheduler(Scheduler): # Param parameters that are modifiable by user actions. scheduler_fname_doc = """URL or file name of the scheduler pickle file. Such a pickle file can either be of an instance of a subclass of - rubin_sim.scheduler.schedulers.CoreScheduler, or a tuple of the form + rubin_scheduler.scheduler.schedulers.CoreScheduler, or a tuple of the form (scheduler, conditions), where scheduler is an instance of a subclass of - rubin_sim.scheduler.schedulers.CoreScheduler, and conditions is an - instance of rubin_sim.scheduler.conditions.Conditions. + rubin_scheduler.scheduler.schedulers.CoreScheduler, and conditions is an + instance of rubin_scheduler.scheduler.conditions.Conditions. """ scheduler_fname = schedview.param.FileSelectorWithEmptyOption( path=f"{PACKAGE_DATA_DIR}/*scheduler*.p*", diff --git a/schedview/app/start.py b/schedview/app/start.py index 556d6063..7d715b01 100644 --- a/schedview/app/start.py +++ b/schedview/app/start.py @@ -20,8 +20,3 @@ def start_app(app_name): def sched_maps(): """Start the sched_maps app.""" start_app("sched_maps") - - -def metric_maps(): - """Start the metric_maps app.""" - start_app("metric_maps") diff --git a/schedview/collect/footprint.py b/schedview/collect/footprint.py index c0d08156..5f756599 100644 --- a/schedview/collect/footprint.py +++ b/schedview/collect/footprint.py @@ -1,5 +1,5 @@ import numpy as np -from rubin_sim.scheduler.utils.sky_area import SkyAreaGenerator +from rubin_scheduler.scheduler.utils.sky_area import EuclidOverlapFootprint def get_footprint(scheduler=None): @@ -25,7 +25,8 @@ def get_footprint(scheduler=None): footprint += np.sum(basis_function.footprint.footprints, axis=0) if footprint is None: - sky_area_generator = SkyAreaGenerator(nside=nside) + # Load up a default footprint from rubin_scheduler + sky_area_generator = EuclidOverlapFootprint(nside=nside) band_footprints, _ = sky_area_generator.return_maps() footprint = np.sum(band_footprints[b] for b in band_footprints.dtype.fields.keys()) diff --git a/schedview/collect/scheduler_pickle.py b/schedview/collect/scheduler_pickle.py index ba7fb809..3faef3c3 100644 --- a/schedview/collect/scheduler_pickle.py +++ b/schedview/collect/scheduler_pickle.py @@ -11,7 +11,7 @@ from pathlib import Path from tempfile import TemporaryDirectory -from rubin_sim.scheduler.model_observatory import ModelObservatory +from rubin_scheduler.scheduler.model_observatory import ModelObservatory try: PICKLE_FNAME = os.environ["SCHED_PICKLE"] @@ -29,10 +29,10 @@ def read_local_scheduler_pickle(file_name): Returns ------- - scheduler : `rubin_sim.scheduler.schedulers.core_scheduler.CoreScheduler` - An instance of a rubin_sim scheduler object. - conditions : `rubin_sim.scheduler.features.conditions.Conditions` - An instance of a rubin_sim conditions object. + scheduler : `rubin_scheduler.scheduler.schedulers.CoreScheduler` + An instance of a rubin_scheduler scheduler object. + conditions : `rubin_scheduler.scheduler.features.Conditions` + An instance of a rubin_scheduler conditions object. """ if file_name is None: file_name = PICKLE_FNAME @@ -75,10 +75,10 @@ def read_scheduler(file_name_or_url=None): Returns ------- - scheduler : `rubin_sim.scheduler.schedulers.core_scheduler.CoreScheduler` - An instance of a rubin_sim scheduler object. - conditions : `rubin_sim.scheduler.features.conditions.Conditions` - An instance of a rubin_sim conditions object. + scheduler : `rubin_scheduler.scheduler.schedulers.CoreScheduler` + An instance of a rubin_scheduler scheduler object. + conditions : `rubin_scheduler.scheduler.features.Conditions` + An instance of a rubin_scheduler conditions object. """ if file_name_or_url is None: file_name_or_url = PICKLE_FNAME @@ -89,7 +89,7 @@ def read_scheduler(file_name_or_url=None): if Path(file_name_or_url).is_file(): scheduler, conditions = read_local_scheduler_pickle(file_name_or_url) else: - # If we didn't have do decompress it, we could use urlopen instead + # If we didn't have to decompress it, we could use urlopen instead # of downloading a local copy. But, it can be compressed, so we need # to use gzip.open to open it. with TemporaryDirectory() as directory: diff --git a/schedview/compute/astro.py b/schedview/compute/astro.py index 500a5d8f..c20dd1d1 100644 --- a/schedview/compute/astro.py +++ b/schedview/compute/astro.py @@ -5,8 +5,8 @@ import pandas as pd import pytz from astropy.time import Time -from rubin_sim.scheduler.model_observatory import ModelObservatory -from rubin_sim.site_models.almanac import Almanac +from rubin_scheduler.scheduler.model_observatory import ModelObservatory +from rubin_scheduler.site_models.almanac import Almanac @cache diff --git a/schedview/compute/camera.py b/schedview/compute/camera.py index 430310ca..bc4cce9f 100644 --- a/schedview/compute/camera.py +++ b/schedview/compute/camera.py @@ -47,17 +47,17 @@ def single_eq_vertices(self, ra, decl, rotation=0): Returns ------- - ra : `numpy.ndarray` + ra : `np.ndarray` An array of the R.A. of the vertices of the polygon surrounding the camera footprint (degrees). - decl : `numpy.ndarray` + decl : `np.ndarray` An array of the declinations of the vertices of the polygon surrounding the camera footprint (degrees). """ center = SkyCoord(ra, decl, unit="deg") # rotation matches the sense used by - # rubin_sim.utils.camera_footprint.LsstCameraFootprint + # rubin_scheduler.utils.camera_footprint.LsstCameraFootprint eq_vertices = center.directional_offset_by( (self.vertices.angle.values + rotation) * u.deg, self.vertices.r.values * u.deg, @@ -80,10 +80,10 @@ def __call__(self, ra, decl, rotation=0): Returns ------- - ra : `numpy.ndarray` + ra : `np.ndarray` An array of the R.A. of the vertices of the polygon surrounding the camera footprints (degrees). - decl : `numpy.ndarray` + decl : `np.ndarray` An array of the declinations of the vertices of the polygon surrounding the camera footprints (degrees). """ diff --git a/schedview/compute/scheduler.py b/schedview/compute/scheduler.py index 879c5baa..c526a4a9 100644 --- a/schedview/compute/scheduler.py +++ b/schedview/compute/scheduler.py @@ -9,10 +9,10 @@ import pandas as pd from astropy.time import Time from astropy.timeseries import TimeSeries -from rubin_sim.scheduler import sim_runner, surveys -from rubin_sim.scheduler.example import example_scheduler -from rubin_sim.scheduler.model_observatory import ModelObservatory -from rubin_sim.scheduler.utils import SchemaConverter, empty_observation +from rubin_scheduler.scheduler import sim_runner, surveys +from rubin_scheduler.scheduler.example import example_scheduler +from rubin_scheduler.scheduler.model_observatory import ModelObservatory +from rubin_scheduler.scheduler.utils import SchemaConverter, empty_observation def _make_observation_from_record(record): @@ -80,7 +80,7 @@ def replay_visits(scheduler, visits): Parameters ---------- - scheduler : `rubin_sim.scheduler.CoreScheduler` + scheduler : `rubin_scheduler.scheduler.CoreScheduler` An instance of the scheduler to update visits : `pandas.DataFrame` A table of visits to add. @@ -218,11 +218,11 @@ def create_example( Returns ------- - scheduler : `rubin_sim.scheduler.schedulers.CoreScheduler` + scheduler : `rubin_scheduler.scheduler.schedulers.CoreScheduler` The scheduler instance. - observatory : `rubin_sim.models.ModelObservatory` + observatory : `rubin_scheduler.models.ModelObservatory` The observatory instance. - conditions : `rubin_sim.scheduler.utils.observatory.ObservingConditions` + conditions : `rubin_scheduler.scheduler.features.Conditions` The conditions at the current time. observations : `pd.DataFrame` The observations from the simulation. @@ -292,7 +292,7 @@ def make_unique_survey_name(scheduler, survey_index=None): Parameters ---------- - scheduler : `rubin_sim.scheduler.schedulers.CoreScheduler` + scheduler : `rubin_scheduler.scheduler.schedulers.CoreScheduler` The scheduler instance. survey_index : `list` of `int` The index of the survey to name. If None, use the current survey. @@ -333,9 +333,9 @@ def make_scheduler_summary_df(scheduler, conditions, reward_df=None): Parameters ---------- - scheduler : `rubin_sim.scheduler.schedulers.CoreScheduler` + scheduler : `rubin_scheduler.scheduler.schedulers.CoreScheduler` The scheduler instance. - conditions : `rubin_sim.scheduler.features.conditions.Conditions` + conditions : `rubin_scheduler.scheduler.features.conditions.Conditions` The conditions for which to summarize the reward. reward_df : `pandas.DataFrame` The table with rewards for each survey. If None, calculate it. @@ -384,11 +384,13 @@ def get_survey_name(row): standard_surveys = [c[0] for c in inspect.getmembers(surveys)] def get_survey_url(row): + url_base = "https://rubin-scheduler.lsst.io/fbs-api.html#" if isinstance(row.survey_class, str) and row.survey_class in standard_surveys: - url_base = "https://rubin-sim.lsst.io/api/rubin_sim.scheduler.surveys" - survey_url = f"{url_base}.{row.survey_class}.html#{row.survey_class}" + section_base = "rubin_scheduler.scheduler.surveys" + survey_url = f"{url_base}.{section_base}.{row.survey_class}" else: - survey_url = "" + generic_survey = "module-rubin_scheduler.scheduler.surveys" + survey_url = f"{url_base}.{generic_survey}" return survey_url summary_df["survey_url"] = summary_df.apply(get_survey_url, axis=1) diff --git a/schedview/compute/survey.py b/schedview/compute/survey.py index 18f2af5b..aaad220d 100644 --- a/schedview/compute/survey.py +++ b/schedview/compute/survey.py @@ -4,7 +4,7 @@ import healpy as hp import numpy as np -import rubin_sim.scheduler.basis_functions +import rubin_scheduler.scheduler.basis_functions def make_survey_reward_df(survey, conditions, reward_df=None): @@ -12,9 +12,9 @@ def make_survey_reward_df(survey, conditions, reward_df=None): Parameters ---------- - survey : `rubin_sim.scheduler.surveys.BaseSurvey` + survey : `rubin_scheduler.scheduler.surveys.BaseSurvey` The survey to summarize. - conditions : `rubin_sim.scheduler.features.conditions.Conditions` + conditions : `rubin_scheduler.scheduler.features.Conditions` The conditions to use for the summary. reward_df : `pandas.DataFrame`, optional A dataframe with the columns "basis_function", "basis_function_class", @@ -49,18 +49,20 @@ def to_sigfig(x): return float("{:.5g}".format(x)) def _guess_basis_function_doc_url(basis_function_name): + url_base = "https://rubin-scheduler.lsst.io/fbs-api.html#" + if not isinstance(basis_function_name, str): return "" root_bf_name = basis_function_name.split()[0] - standard_basis_functions = dict(getmembers(rubin_sim.scheduler.basis_functions)).keys() + standard_basis_functions = dict(getmembers(rubin_scheduler.scheduler.basis_functions)).keys() if root_bf_name in standard_basis_functions: - url_base = "https://rubin-sim.lsst.io/api/rubin_sim.scheduler.basis_functions" - section_base = "rubin_sim.scheduler.basis_functions" - url = f"{url_base}.{root_bf_name}.html#{section_base}.{root_bf_name}" + section_base = "rubin_scheduler.scheduler.basis_functions" + url = f"{url_base}.{section_base}.{root_bf_name}" else: - url = "" + generic_bf = "module-rubin_scheduler.scheduler.basis_functions" + url = f"{url_base}.{generic_bf}" return url try: @@ -84,9 +86,9 @@ def compute_maps(survey, conditions, nside=None): Parameters ---------- - survey : `rubin_sim.scheduler.surveys.BaseSurvey` + survey : `rubin_scheduler.scheduler.surveys.BaseSurvey` The survey to summarize. - conditions : `rubin_sim.scheduler.features.conditions.Conditions` + conditions : `rubin_scheduler.scheduler.features.Conditions` The conditions to use for the summary. nside : int, optional The nside to use for the returned healpix maps. If not provided, the diff --git a/schedview/data/sample_opsim.db b/schedview/data/sample_opsim.db index 42adeec3..c3e6eb43 100644 Binary files a/schedview/data/sample_opsim.db and b/schedview/data/sample_opsim.db differ diff --git a/schedview/data/sample_rewards.h5 b/schedview/data/sample_rewards.h5 index 6eff52b5..90319873 100644 Binary files a/schedview/data/sample_rewards.h5 and b/schedview/data/sample_rewards.h5 differ diff --git a/schedview/data/sample_scheduler.pickle.xz b/schedview/data/sample_scheduler.pickle.xz index 79a6757f..9d5f9242 100644 Binary files a/schedview/data/sample_scheduler.pickle.xz and b/schedview/data/sample_scheduler.pickle.xz differ diff --git a/schedview/plot/nightbf.py b/schedview/plot/nightbf.py index ca4502f9..f1add3f6 100644 --- a/schedview/plot/nightbf.py +++ b/schedview/plot/nightbf.py @@ -3,7 +3,7 @@ import bokeh import numpy as np from astropy.time import Time -from rubin_sim.scheduler.model_observatory import ModelObservatory +from rubin_scheduler.scheduler.model_observatory import ModelObservatory def _extract_night(df, mjd_column, night, observatory=None): diff --git a/schedview/plot/rewards.py b/schedview/plot/rewards.py index 153644cb..616de11f 100644 --- a/schedview/plot/rewards.py +++ b/schedview/plot/rewards.py @@ -5,7 +5,7 @@ from astropy.time import Time # Imported to help sphinx make the link -from rubin_sim.scheduler.model_observatory import ModelObservatory # noqa F401 +from rubin_scheduler.scheduler.model_observatory import ModelObservatory # noqa F401 import schedview.collect.opsim import schedview.collect.scheduler_pickle @@ -53,7 +53,7 @@ def create_survey_reward_plot( Parameters ---------- - scheduler : `rubin_sim.scheduler.schedulers.Core_scheduler` or `str` + scheduler : `rubin_scheduler.scheduler.schedulers.Core_scheduler` or `str` The scheduler with the surveys to evaluate, or the name of a file from which such a scheduler should be loaded. night_date : `astropy.time.Time` diff --git a/schedview/plot/scheduler.py b/schedview/plot/scheduler.py index e7523fa7..320b7dfa 100644 --- a/schedview/plot/scheduler.py +++ b/schedview/plot/scheduler.py @@ -10,15 +10,15 @@ import healpy as hp import numpy as np import pandas as pd -import rubin_sim.scheduler.basis_functions -import rubin_sim.scheduler.example -import rubin_sim.scheduler.schedulers -import rubin_sim.scheduler.surveys +import rubin_scheduler.scheduler.basis_functions +import rubin_scheduler.scheduler.example +import rubin_scheduler.scheduler.schedulers +import rubin_scheduler.scheduler.surveys from astropy.time import Time -from rubin_sim.scheduler.features.conditions import Conditions -from rubin_sim.scheduler.model_observatory import ModelObservatory -from rubin_sim.scheduler.schedulers.core_scheduler import CoreScheduler as CoreScheduler -from rubin_sim.utils import survey_start_mjd +from rubin_scheduler.scheduler.features.conditions import Conditions +from rubin_scheduler.scheduler.model_observatory import ModelObservatory +from rubin_scheduler.scheduler.schedulers.core_scheduler import CoreScheduler as CoreScheduler +from rubin_scheduler.utils import survey_start_mjd from uranography.api import ArmillarySphere, HorizonMap, MollweideMap, Planisphere, make_zscale_linear_cmap from schedview.collect import read_scheduler @@ -91,7 +91,9 @@ def __init__(self, init_key="AvoidDirectWind", nside=DEFAULT_NSIDE, scheduler=No self.observatory = None if scheduler is None: - scheduler = rubin_sim.scheduler.example.example_scheduler(nside=nside, mjd_start=DEFAULT_MJD) + scheduler = rubin_scheduler.scheduler.example.example_scheduler( + nside=nside, mjd_start=DEFAULT_MJD + ) if self.observatory is not None: conditions = self.observatory.return_conditions() else: @@ -310,7 +312,7 @@ def scheduler(self, scheduler): Parameters ---------- - scheduler : `rubin_sim.scheduler.schedulers.CoreScheduler` + scheduler : `rubin_scheduler.scheduler.schedulers.CoreScheduler` The new scheduler to visualize """ # Work separated into _set_scheduler so that it can be overriden by @@ -341,7 +343,7 @@ def conditions(self, conditions): Parameters ---------- - conditions : `rubin_sim.scheduler.features.conditions.Conditions` + conditions : `rubin_scheduler.scheduler.features.conditions.Conditions` The new conditions. """ if conditions.nside != self.nside: @@ -948,7 +950,9 @@ def to_sigfig(x): # Get URLs for survey documentation # Flatten the list of lists of surveys into one long list surveys = itertools.chain.from_iterable(self.scheduler.survey_lists) - survey_class_names = ["rubin_sim.scheduler.surveys." + s.__class__.__name__ for s in surveys] + survey_class_names = [ + "rubin_scheduler.scheduler.surveys." + s.__class__.__name__ for s in surveys + ] survey_doc_url = [f"https://rubin-sim.lsst.io/api/{cn}.html#{cn}" for cn in survey_class_names] survey_name_formatter = bokeh.models.widgets.HTMLTemplateFormatter( template='<%= value %>' diff --git a/schedview/plot/survey.py b/schedview/plot/survey.py index 625062c0..a9871229 100644 --- a/schedview/plot/survey.py +++ b/schedview/plot/survey.py @@ -3,8 +3,8 @@ import astropy import bokeh import numpy as np -import rubin_sim.scheduler.features.conditions -import rubin_sim.scheduler.surveys # noqa: F401 +import rubin_scheduler.scheduler.features +import rubin_scheduler.scheduler.surveys # noqa: F401 from astropy.time import Time from uranography.api import HorizonMap, make_zscale_linear_cmap @@ -45,11 +45,11 @@ def map_survey_healpix( The scale to use for the cmap. Defaults to "full", which uses the full range of values in the healpix map. Alternatively, "zscale" can be used to use a zscale cmap. - conditions : `rubin_sim.scheduler.features.conditions.Conditions`, optional + conditions : `rubin_scheduler.scheduler.features.Conditions`, optional Default is None. The observing conditions at which to map the survey, used to determine telescope pointing. If None, do not mark telescope pointing. - survey : `rubin_sim.scheduler.surveys.BaseSurvey`, optional + survey : `rubin_scheduler.scheduler.surveys.BaseSurvey`, optional Default is None. The survey with fields to mark on the map. If None or an unsuitable survey type, do not mark survey fields. diff --git a/schedview/plot/visitmap.py b/schedview/plot/visitmap.py index d8c801a5..52b1fc39 100644 --- a/schedview/plot/visitmap.py +++ b/schedview/plot/visitmap.py @@ -5,8 +5,8 @@ from astropy.time import Time # Imported to help sphinx make the link -from rubin_sim.scheduler.model_observatory.model_observatory import ModelObservatory -from rubin_sim.scheduler.schedulers import CoreScheduler # noqa F401 +from rubin_scheduler.scheduler.model_observatory.model_observatory import ModelObservatory +from rubin_scheduler.scheduler.schedulers import CoreScheduler # noqa F401 from uranography.api import ArmillarySphere, Planisphere, split_healpix_by_resolution import schedview.collect.scheduler_pickle @@ -56,7 +56,7 @@ def plot_visit_skymaps( footprint : `numpy.array` A healpix map of the footprint. - conditions : `rubin_sim.scheduler.features.conditions.Conditions` + conditions : `rubin_scheduler.scheduler.features.conditions.Conditions` The conditions for the night, which determines the start and end times covered by the map. hatch : `bool` @@ -263,7 +263,7 @@ def plot_visit_planisphere( footprint : `numpy.array` A healpix map of the footprint. - conditions : `rubin_sim.scheduler.features.conditions.Conditions` + conditions : `rubin_scheduler.scheduler.features.conditions.Conditions` The conditions for the night, which determines the start and end times covered by the map. hatch : `bool` diff --git a/schedview/plot/visits.py b/schedview/plot/visits.py index 6a707233..9f1428dd 100644 --- a/schedview/plot/visits.py +++ b/schedview/plot/visits.py @@ -2,7 +2,7 @@ from astropy.time import Time # Imported to help sphinx make the link -from rubin_sim.scheduler.model_observatory import ModelObservatory # noqa F401 +from rubin_scheduler.scheduler.model_observatory import ModelObservatory # noqa F401 import schedview.collect.opsim import schedview.compute.astro diff --git a/tests/test_compute_scheduler.py b/tests/test_compute_scheduler.py index e1311a93..401c4e05 100644 --- a/tests/test_compute_scheduler.py +++ b/tests/test_compute_scheduler.py @@ -1,12 +1,12 @@ import unittest import pandas as pd -import rubin_sim.scheduler.example +import rubin_scheduler.scheduler.example from astropy.time import Time -from rubin_sim.scheduler.example import example_scheduler -from rubin_sim.scheduler.features.conditions import Conditions -from rubin_sim.scheduler.model_observatory import ModelObservatory -from rubin_sim.utils import survey_start_mjd +from rubin_scheduler.scheduler.example import example_scheduler +from rubin_scheduler.scheduler.features.conditions import Conditions +from rubin_scheduler.scheduler.model_observatory import ModelObservatory +from rubin_scheduler.utils import survey_start_mjd from schedview.compute.scheduler import create_example, make_scheduler_summary_df, make_unique_survey_name @@ -22,7 +22,7 @@ def test_create_example(self): current_time = Time(TEST_MJD, format="mjd").iso[:19] + "Z" survey_start = Time(MJD_START, format="mjd").iso[:19] + "Z" scheduler, observatory, conditions, observations = create_example(current_time, survey_start) - self.assertIsInstance(scheduler, rubin_sim.scheduler.schedulers.CoreScheduler) + self.assertIsInstance(scheduler, rubin_scheduler.scheduler.schedulers.CoreScheduler) self.assertIsInstance(observatory, ModelObservatory) self.assertIsInstance(conditions, Conditions) diff --git a/tests/test_compute_survey.py b/tests/test_compute_survey.py index 86227f35..41fc6fb6 100644 --- a/tests/test_compute_survey.py +++ b/tests/test_compute_survey.py @@ -2,9 +2,9 @@ from collections import OrderedDict import pandas as pd -from rubin_sim.scheduler.example import example_scheduler -from rubin_sim.scheduler.model_observatory import ModelObservatory -from rubin_sim.utils import survey_start_mjd +from rubin_scheduler.scheduler.example import example_scheduler +from rubin_scheduler.scheduler.model_observatory import ModelObservatory +from rubin_scheduler.utils import survey_start_mjd from schedview.compute.survey import compute_maps, make_survey_reward_df diff --git a/tests/test_nightly.py b/tests/test_nightly.py index de98d5f7..501b30cc 100644 --- a/tests/test_nightly.py +++ b/tests/test_nightly.py @@ -5,8 +5,8 @@ import bokeh import pandas as pd -from rubin_sim.scheduler.model_observatory import ModelObservatory -from rubin_sim.scheduler.utils import SchemaConverter +from rubin_scheduler.scheduler.model_observatory import ModelObservatory +from rubin_scheduler.scheduler.utils import SchemaConverter import schedview import schedview.plot.nightly diff --git a/tests/test_plot_survey.py b/tests/test_plot_survey.py index 2fca0014..5ec3b8db 100644 --- a/tests/test_plot_survey.py +++ b/tests/test_plot_survey.py @@ -2,7 +2,7 @@ import healpy as hp import numpy as np -from rubin_sim.utils import survey_start_mjd +from rubin_scheduler.utils import survey_start_mjd from uranography.api import SphereMap from schedview.plot.survey import map_survey_healpix diff --git a/tests/test_scheduler.py b/tests/test_scheduler.py index 5957a8a0..536806fa 100644 --- a/tests/test_scheduler.py +++ b/tests/test_scheduler.py @@ -3,9 +3,9 @@ import astropy.utils.iers import healpy as hp from astropy.time import TimeDelta -from rubin_sim.scheduler.example import example_scheduler -from rubin_sim.scheduler.features.conditions import Conditions -from rubin_sim.scheduler.model_observatory import ModelObservatory +from rubin_scheduler.scheduler.example import example_scheduler +from rubin_scheduler.scheduler.features.conditions import Conditions +from rubin_scheduler.scheduler.model_observatory import ModelObservatory from schedview.collect import sample_pickle from schedview.plot.scheduler import DEFAULT_MJD, SchedulerDisplay diff --git a/tests/test_scheduler_dashboard.py b/tests/test_scheduler_dashboard.py index 205200ed..584c8639 100644 --- a/tests/test_scheduler_dashboard.py +++ b/tests/test_scheduler_dashboard.py @@ -8,17 +8,17 @@ import bokeh.io import bokeh.plotting import pandas as pd -import rubin_sim.site_models +import rubin_scheduler.site_models from astropy.time import Time from pandas import Timestamp from panel.widgets import Tabulator -from rubin_sim.scheduler.example import example_scheduler -from rubin_sim.scheduler.features.conditions import Conditions -from rubin_sim.scheduler.model_observatory import ModelObservatory +from rubin_scheduler.scheduler.example import example_scheduler +from rubin_scheduler.scheduler.features.conditions import Conditions +from rubin_scheduler.scheduler.model_observatory import ModelObservatory # Objects to test instances against -from rubin_sim.scheduler.schedulers.core_scheduler import CoreScheduler -from rubin_sim.utils import survey_start_mjd +from rubin_scheduler.scheduler.schedulers.core_scheduler import CoreScheduler +from rubin_scheduler.utils import survey_start_mjd import schedview from schedview.app.scheduler_dashboard.scheduler_dashboard import Scheduler, scheduler_app @@ -136,13 +136,13 @@ def test_site_models(self): wind_speed = 4 wind_direction = 25 fiducial_seeing = 0.69 - wind_data = rubin_sim.site_models.ConstantWindData( + wind_data = rubin_scheduler.site_models.ConstantWindData( wind_speed=wind_speed, wind_direction=wind_direction, ) - seeing_data = rubin_sim.site_models.ConstantSeeingData(fiducial_seeing) - self.assertIsInstance(wind_data, rubin_sim.site_models.ConstantWindData) - self.assertIsInstance(seeing_data, rubin_sim.site_models.ConstantSeeingData) + seeing_data = rubin_scheduler.site_models.ConstantSeeingData(fiducial_seeing) + self.assertIsInstance(wind_data, rubin_scheduler.site_models.ConstantWindData) + self.assertIsInstance(seeing_data, rubin_scheduler.site_models.ConstantSeeingData) self.assertEqual(wind_data.wind_speed, wind_speed) self.assertEqual(wind_data.wind_direction, wind_direction) self.assertEqual(seeing_data.fwhm_500, fiducial_seeing) diff --git a/tests/test_scheduler_pickle.py b/tests/test_scheduler_pickle.py index 21bbe4a0..06fac70e 100644 --- a/tests/test_scheduler_pickle.py +++ b/tests/test_scheduler_pickle.py @@ -3,10 +3,10 @@ import unittest from tempfile import TemporaryDirectory -from rubin_sim.scheduler.example import example_scheduler -from rubin_sim.scheduler.features.conditions import Conditions -from rubin_sim.scheduler.schedulers.core_scheduler import CoreScheduler -from rubin_sim.utils import survey_start_mjd +from rubin_scheduler.scheduler.example import example_scheduler +from rubin_scheduler.scheduler.features.conditions import Conditions +from rubin_scheduler.scheduler.schedulers.core_scheduler import CoreScheduler +from rubin_scheduler.utils import survey_start_mjd from schedview.collect.scheduler_pickle import read_scheduler diff --git a/util/efd_sched.py b/util/efd_sched.py index 09f57063..18e89521 100644 --- a/util/efd_sched.py +++ b/util/efd_sched.py @@ -12,7 +12,7 @@ from astropy.time import Time, TimeDelta from lsst.resources import ResourcePath from lsst_efd_client import EfdClient -from rubin_sim.utils import Site +from rubin_scheduler.utils import Site LOCAL_ROOT_URI = {"usdf": "s3://rubin:", "summit": "https://s3.cp.lsst.org/"} @@ -97,7 +97,7 @@ def localize_scheduler_url(scheduler_url, site="usdf"): scheduler_url : `str` The localized URL of the scheduler. """ - # If we don't have a cannonical root for the site, just return + # If we don't have a canonical root for the site, just return # the original if site not in LOCAL_ROOT_URI: return scheduler_url @@ -132,7 +132,6 @@ def get_scheduler(scheduler_url, destination=None): This function sets the environment variable `LSST_DISABLE_BUCKET_VALIDATION` to "1". """ - os.environ["LSST_DISABLE_BUCKET_VALIDATION"] = "1" scheduler_resource_path = ResourcePath(scheduler_url) scheduler_pickle_bytes = scheduler_resource_path.read() @@ -182,7 +181,10 @@ async def get_scheduler_at_time(desired_time, destination=None, efd="usdf_efd"): Otherwise, the file path of the saved scheduler is returned. """ these_scheduler_references = await query_schedulers_in_window(desired_time, efd) - this_url = these_scheduler_references.url[0] + if len(these_scheduler_references) == 0: + print(f"No scheduler snapshots found at {desired_time}") + return None + this_url = these_scheduler_references.url.iloc[0] site = efd.removesuffix("_efd") this_url = localize_scheduler_url(this_url, site=site) result = get_scheduler(this_url, destination) @@ -210,6 +212,9 @@ async def get_scheduler_on_night(night, row_number, destination, efd="usdf_efd") The scheduler for the given night. """ these_scheduler_references = await query_night_schedulers(night, efd=efd) + if len(these_scheduler_references) == 0: + print(f"No scheduler snapshots found on night {night}") + return None this_url = these_scheduler_references.url.iloc[row_number] site = efd.removesuffix("_efd") this_url = localize_scheduler_url(this_url, site=site) diff --git a/util/sample_data/make_sample_test_data.py b/util/sample_data/make_sample_test_data.py index b8eff481..91946a8f 100644 --- a/util/sample_data/make_sample_test_data.py +++ b/util/sample_data/make_sample_test_data.py @@ -5,11 +5,11 @@ import numpy as np from astropy.time import Time -from rubin_sim.scheduler import sim_runner -from rubin_sim.scheduler.example import example_scheduler -from rubin_sim.scheduler.model_observatory import ModelObservatory -from rubin_sim.scheduler.utils import SchemaConverter -from rubin_sim.utils import survey_start_mjd +from rubin_scheduler.scheduler import sim_runner +from rubin_scheduler.scheduler.example import example_scheduler +from rubin_scheduler.scheduler.model_observatory import ModelObservatory +from rubin_scheduler.scheduler.utils import SchemaConverter +from rubin_scheduler.utils import survey_start_mjd DEFAULT_DATE = Time(survey_start_mjd(), format="mjd").iso[:10] @@ -38,12 +38,12 @@ ) warnings.filterwarnings( "ignore", - module="rubin_sim", + module="rubin_scheduler", message="invalid value encountered in arcsin", ) warnings.filterwarnings( "ignore", - module="rubin_sim", + module="rubin_scheduler", message="All-NaN slice encountered", )