{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "0", "metadata": { "nbsphinx": "hidden" }, "outputs": [], "source": [ "# Remove flox spam\n", "\n", "import logging\n", "\n", "# Get the logger for the 'flox' package\n", "logger = logging.getLogger(\"flox\")\n", "# Set the logging level to WARNING\n", "logger.setLevel(logging.WARNING)" ] }, { "cell_type": "code", "execution_count": null, "id": "1", "metadata": { "tags": [] }, "outputs": [], "source": [ "from pathlib import Path\n", "\n", "import numpy as np\n", "from matplotlib import pyplot as plt\n", "from mpl_toolkits.axes_grid1 import make_axes_locatable\n", "\n", "import xscen as xs\n", "\n", "output_folder = Path().absolute() / \"_data\"\n", "\n", "# Create a project Catalog\n", "project = {\n", " \"title\": \"example-diagnostics\",\n", " \"description\": \"This is an example catalog for xscen's documentation.\",\n", "}\n", "\n", "pcat = xs.ProjectCatalog(\n", " str(output_folder / \"example-diagnostics.json\"),\n", " create=True,\n", " project=project,\n", " overwrite=True,\n", ")" ] }, { "cell_type": "markdown", "id": "2", "metadata": {}, "source": [ "# Diagnostics\n", "\n", "It can be useful to perform a various diagnostic tests in order to check that the data that was produced is as expected. Diagnostics can also help us assess bias adjustment methods.\n", "\n", "Make sure you run GettingStarted.ipynb before this one, the GettingStarted outputs will be used a inputs in this notebook." ] }, { "cell_type": "code", "execution_count": null, "id": "3", "metadata": { "tags": [] }, "outputs": [], "source": [ "# Load catalog from the GettingStarted notebook\n", "gettingStarted_cat = xs.ProjectCatalog(\n", " str(output_folder / \"example-gettingstarted.json\")\n", ")" ] }, { "cell_type": "markdown", "id": "4", "metadata": {}, "source": [ "## Health checks\n", "\n", "