{ "metadata": { "name": "", "signature": "sha256:fc85657ae55fad769a85c6786b29cde4d0517ac20dec39727d4240e912197f1a" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "How to work with physical units in Python?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Autor: [Eduardo Mart\u00edn Calleja](http://balbuceosastropy.blogspot.com.es/)" ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Imports and references" ] }, { "cell_type": "code", "collapsed": false, "input": [ "from __future__ import division\n", "\n", "import quantities as pq\n", "import numpy as np\n", "import inspect\n", "\n", "# This IPython magic generates a table with version information\n", "#https://github.com/jrjohansson/version_information\n", "%load_ext version_information\n", "%version_information numpy, quantities" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "
Software | Version |
---|---|
Python | 2.7.9 64bit [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] |
IPython | 2.3.1 |
OS | Linux 3.13.0 45 generic x86_64 with debian jessie sid |
numpy | 1.9.1 |
quantities | 0.10.1 |
Fri Feb 20 21:45:43 2015 CET |