diff --git a/docs/colab/quickstart.ipynb b/docs/colab/quickstart.ipynb index 958559c..20798e9 100644 --- a/docs/colab/quickstart.ipynb +++ b/docs/colab/quickstart.ipynb @@ -55,6 +55,9 @@ "from h5rdmtoolbox.repository import zenodo\n", "from h5rdmtoolbox.tutorial import TutorialConventionZenodoRecordID\n", "\n", + "import os\n", + "os.environ['ZENODO_API_TOKEN'] = 'changeme'\n", + "\n", "zenodo_repo = zenodo.ZenodoRecord(TutorialConventionZenodoRecordID)\n", "cv = h5tbx.convention.from_repo(zenodo_repo, 'tutorial_convention.yaml')" ] @@ -68,7 +71,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ @@ -107,7 +110,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 6, "metadata": {}, "outputs": [ { @@ -116,7 +119,7 @@ "using(\"h5rdmtoolbox-tutorial-convention\")" ] }, - "execution_count": 5, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -128,7 +131,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 7, "metadata": {}, "outputs": [ { @@ -171,7 +174,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 8, "metadata": {}, "outputs": [ { @@ -397,24 +400,24 @@ "\n", "
<xarray.DataArray 'u' (time: 1000)>\n", + "<xarray.DataArray 'u' (time: 1000)> Size: 8kB\n", "6.5 10.69 12.31 9.495 11.96 11.03 10.44 ... 11.36 8.524 12.65 11.85 10.43 12.66\n", "Coordinates:\n", - " * time (time) float64 0.0 0.001001 0.002002 0.003003 ... 0.998 0.999 1.0\n", + " * time (time) float64 8kB 0.0 0.001001 0.002002 ... 0.998 0.999 1.0\n", "Attributes:\n", " RDF_OBJECT: {'units': 'http://qudt.org/vocab/unit/M-PER-SEC'}\n", " RDF_PREDICATE: {'units': 'http://qudt.org/schema/qudt/Unit'}\n", " standard_name: x_velocity\n", - " units: m/sxarray.DataArray'u'time: 10006.5 10.69 12.31 9.495 11.96 11.03 ... 8.524 12.65 11.85 10.43 12.66array([ 6.50046905, 10.68536081, 12.30607161, 9.49512793, 11.96264157,\n", + " units: m/sxarray.DataArray'u'time: 10006.5 10.69 12.31 9.495 11.96 11.03 ... 8.524 12.65 11.85 10.43 12.66array([ 6.50046905, 10.68536081, 12.30607161, 9.49512793, 11.96264157,\n", " 11.02843768, 10.44235934, 7.85991334, 9.62100834, 10.51000289,\n", " 9.08394603, 10.87032698, 8.8328099 , 11.63369414, 11.34544161,\n", " 9.79117771, 8.93743925, 12.05946537, 9.12372875, 7.76336351,\n", @@ -1219,7 +1223,7 @@ " 10.29228508, 13.80683283, 9.38758721, 9.08586932, 5.22277185,\n", " 8.27640164, 8.93121233, 7.47479143, 7.95360232, 11.07693202,\n", " 13.43300555, 10.35824781, 9.0880633 , 10.6533834 , 11.36392977,\n", - " 8.52402259, 12.65268968, 11.85400705, 10.4261845 , 12.65666618])Coordinates: (1)time(time)float640.0 0.001001 0.002002 ... 0.999 1.0standard_name :timeunits :msarray([0. , 0.001001, 0.002002, ..., 0.997998, 0.998999, 1. ])Indexes: (1)timePandasIndexPandasIndex(Index([ 0.0, 0.001001001001001001, 0.002002002002002002,\n", + " 8.52402259, 12.65268968, 11.85400705, 10.4261845 , 12.65666618])Coordinates: (1)time(time)float640.0 0.001001 0.002002 ... 0.999 1.0standard_name :timeunits :msarray([0. , 0.001001, 0.002002, ..., 0.997998, 0.998999, 1. ])Indexes: (1)timePandasIndexPandasIndex(Index([ 0.0, 0.001001001001001001, 0.002002002002002002,\n", " 0.003003003003003003, 0.004004004004004004, 0.005005005005005005,\n", " 0.006006006006006006, 0.007007007007007007, 0.008008008008008008,\n", " 0.009009009009009009,\n", @@ -1228,13 +1232,13 @@ " 0.993993993993994, 0.994994994994995, 0.995995995995996,\n", " 0.996996996996997, 0.997997997997998, 0.998998998998999,\n", " 1.0],\n", - " dtype='float64', name='time', length=1000))Attributes: (4)RDF_OBJECT :{'units': 'http://qudt.org/vocab/unit/M-PER-SEC'}RDF_PREDICATE :{'units': 'http://qudt.org/schema/qudt/Unit'}standard_name :x_velocityunits :m/s" + " dtype='float64', name='time', length=1000))
<xarray.DataArray 'u' (time: 1000)> Size: 8kB\n", "6.5 10.69 12.31 9.495 11.96 11.03 10.44 ... 11.36 8.524 12.65 11.85 10.43 12.66\n", "Coordinates:\n", - " * time (time) float64 0.0 0.001001 0.002002 0.003003 ... 0.998 0.999 1.0\n", + " * time (time) float64 8kB 0.0 0.001001 0.002002 ... 0.998 0.999 1.0\n", "Attributes:\n", " RDF_OBJECT: {'units': 'http://qudt.org/vocab/unit/M-PER-SEC'}\n", " RDF_PREDICATE: {'units': 'http://qudt.org/schema/qudt/Unit'}\n", " standard_name: x_velocity\n", - " units: m/s
array([ 6.50046905, 10.68536081, 12.30607161, 9.49512793, 11.96264157,\n", + " units: m/s
array([ 6.50046905, 10.68536081, 12.30607161, 9.49512793, 11.96264157,\n", " 11.02843768, 10.44235934, 7.85991334, 9.62100834, 10.51000289,\n", " 9.08394603, 10.87032698, 8.8328099 , 11.63369414, 11.34544161,\n", " 9.79117771, 8.93743925, 12.05946537, 9.12372875, 7.76336351,\n", @@ -1219,7 +1223,7 @@ " 10.29228508, 13.80683283, 9.38758721, 9.08586932, 5.22277185,\n", " 8.27640164, 8.93121233, 7.47479143, 7.95360232, 11.07693202,\n", " 13.43300555, 10.35824781, 9.0880633 , 10.6533834 , 11.36392977,\n", - " 8.52402259, 12.65268968, 11.85400705, 10.4261845 , 12.65666618])
array([0. , 0.001001, 0.002002, ..., 0.997998, 0.998999, 1. ])
PandasIndex(Index([ 0.0, 0.001001001001001001, 0.002002002002002002,\n", + " 8.52402259, 12.65268968, 11.85400705, 10.4261845 , 12.65666618])
PandasIndex(Index([ 0.0, 0.001001001001001001, 0.002002002002002002,\n", " 0.003003003003003003, 0.004004004004004004, 0.005005005005005005,\n", " 0.006006006006006006, 0.007007007007007007, 0.008008008008008008,\n", " 0.009009009009009009,\n", @@ -1228,13 +1232,13 @@ " 0.993993993993994, 0.994994994994995, 0.995995995995996,\n", " 0.996996996996997, 0.997997997997998, 0.998998998998999,\n", " 1.0],\n", - " dtype='float64', name='time', length=1000))