{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from datetime import datetime" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from datetime import datetime\n", "startTime = datetime.now()\n", "print(\"Started: \" + str(startTime))\n", "\n", "stepTime = datetime.now()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "def printStepTime(text):\n", " global stepTime\n", " endTime = datetime.now()\n", " print(\"Finished \" + text + \": \" + str(endTime) + \", took \" + str(endTime - stepTime))\n", " stepTime = endTime" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Download SI data\n", "!curl -L https://github.com/Smithsonian/OpenAccess/archive/master.zip --output data/data.zip\n", "\n", "printStepTime(\"downloading\")" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.2" } }, "nbformat": 4, "nbformat_minor": 4 }