{ "cells": [ { "cell_type": "markdown", "source": [ "# Create inscribed circles\n", "\n", "This notebook creates a center and a radius of a maximum inscribed circle of each enclosed tessellation cell. We will need it to generate distance-based weights used to measure contextual characters.\n", "\n", "It requires custom piece of code within pygeos. Therefore, we use a custom docker container based on `docker/Dockerfile`." ], "metadata": {} }, { "cell_type": "code", "execution_count": 9, "source": [ "from dask.distributed import Client, LocalCluster, as_completed\n", "from tqdm.notebook import tqdm\n", "from time import time" ], "outputs": [], "metadata": {} }, { "cell_type": "code", "execution_count": 6, "source": [ "client = Client(LocalCluster())\n", "client" ], "outputs": [ { "output_type": "execute_result", "data": { "text/html": [ "
\n",
"Client\n", "
| \n",
"\n",
"Cluster\n", "
| \n",
"