{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Tutorial 4: Data with errors\n", "\n", "This tutorial will talk about how to treat data with errors.\n", "\n", "**NOTE FOR CONTRIBUTORS: Always clear all output before commiting (``Cell`` > ``All Output`` > ``Clear``)**!" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ "# Magic\n", "%matplotlib inline\n", "# Reload modules whenever they change\n", "%load_ext autoreload\n", "%autoreload 2\n", "\n", "# Make clusterking package available even without installation\n", "import sys\n", "sys.path = [\"../../\"] + sys.path" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ "import clusterking as ck" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Loading the data created in Tutorial 1, this time as a ``DataWithErrors`` object (which has additional methods to add errors)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "dwe = ck.DataWithErrors(\"output/cluster/\", \"tutorial_basics\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Adding errors" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "dwe.add_err_poisson(200)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "