From 25659225bbd57106a4556b62f1062f06dd743063 Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Thu, 30 Nov 2023 21:50:07 -0700 Subject: [PATCH] Resolving pre-commit-hook changes --- environment.yml | 12 +++---- .../03-uxarray-vis/02-grid-topology.ipynb | 35 +++++++++++++------ 2 files changed, 31 insertions(+), 16 deletions(-) diff --git a/environment.yml b/environment.yml index 1cbf92fc..3289122d 100644 --- a/environment.yml +++ b/environment.yml @@ -2,23 +2,22 @@ name: unstructured-grid-viz-cookbook-dev channels: - conda-forge dependencies: - - jupyter-book - - jupyterlab - - jupyter_server - - pip - # - uxarray uncomment this and remove the below pip uxarray install if Grid.plot.mesh() etc get released - cartopy - dask - datashader - geoviews - holoviews - hvplot + - jupyter-book + - jupyterlab + - jupyter_server - matplotlib-base - netcdf4 - numba - numpy - pandas<2.1.0 - pathlib + - pip - pre_commit - pyarrow<13.0.0 - pytest @@ -28,9 +27,10 @@ dependencies: - scipy - shapely # - spatialpandas # uncomment this and remove below pip install if from_exterior_coords() gets released + # - uxarray uncomment this and remove the below pip uxarray install if Grid.plot.mesh() etc get released - xarray - pip: - - sphinx-pythia-theme - antimeridian - git+https://github.com/UXARRAY/uxarray.git@philipc2/point-viz - git+https://github.com/holoviz/spatialpandas.git + - sphinx-pythia-theme diff --git a/notebooks/03-uxarray-vis/02-grid-topology.ipynb b/notebooks/03-uxarray-vis/02-grid-topology.ipynb index 9e0300ef..f381fe91 100644 --- a/notebooks/03-uxarray-vis/02-grid-topology.ipynb +++ b/notebooks/03-uxarray-vis/02-grid-topology.ipynb @@ -19,7 +19,10 @@ { "cell_type": "markdown", "metadata": { - "collapsed": false + "collapsed": false, + "jupyter": { + "outputs_hidden": false + } }, "source": [ "## Setup" @@ -35,7 +38,10 @@ { "cell_type": "markdown", "metadata": { - "collapsed": false + "collapsed": false, + "jupyter": { + "outputs_hidden": false + } }, "source": [ "### Imports" @@ -45,7 +51,10 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "collapsed": false, + "jupyter": { + "outputs_hidden": false + } }, "outputs": [], "source": [ @@ -61,7 +70,10 @@ { "cell_type": "markdown", "metadata": { - "collapsed": false + "collapsed": false, + "jupyter": { + "outputs_hidden": false + } }, "source": [ "### Read in the data" @@ -71,7 +83,10 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "collapsed": false, + "jupyter": { + "outputs_hidden": false + } }, "outputs": [], "source": [ @@ -93,12 +108,12 @@ "source": [ "
\n", "

How to plot through `Grid`, `UxDataset`, or `UxDataArray`?

\n", - " As the above `ux_grid` and `uxds` creation suggests, you may either have a `UxDataset` (or similarly `UxDataArray`), or a standalone `Grid` object. Visualization\n", - "of the geometric elements of an unstructured grid is possible in all of these cases as follows (Through `uxgrid` accessor when it is a `UxDataset` or `UxDataArray`):
\n", + " As the above `ux_grid` and `uxds` creation suggests, you may either have a `UxDataset` (or similarly `UxDataArray`), or a standalone `Grid` object. Visualizatio of the geometric elements of an unstructured grid is possible in all of these cases as follows (Through `uxgrid` accessor when it is a `UxDataset` or `UxDataArray`):
\n", " \n", - "`uxarray.Grid.plot.plotting_function()`
\n", - "`uxarray.UxDataset.uxgrid.plot.plotting_function()`
\n", - "`uxarray.UxDataArray.uxgrid.plot.plotting_function()`
\n", + " `uxarray.Grid.plot.plotting_function()`
\n", + " `uxarray.UxDataset.uxgrid.plot.plotting_function()`
\n", + " `uxarray.UxDataArray.uxgrid.plot.plotting_function()`
\n", + "\n", "We will demonstrate plotting functions using the standalone `ux_grid` thorughout this notebook.\n", "
" ]