Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revision to installation instructions and scipy importing #84

Merged
merged 2 commits into from
Sep 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/gallery/dong2022.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.1"
"version": "3.10.4"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion docs/source/gallery/dong2022.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.. DO NOT EDIT.
.. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY.
.. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE:
.. "gallery\dong2022.py"
.. "gallery/dong2022.py"
.. LINE NUMBERS ARE GIVEN BELOW.

.. only:: html
Expand Down
2 changes: 1 addition & 1 deletion docs/source/gallery/hariharan2022.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.1"
"version": "3.10.4"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion docs/source/gallery/hariharan2022.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.. DO NOT EDIT.
.. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY.
.. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE:
.. "gallery\hariharan2022.py"
.. "gallery/hariharan2022.py"
.. LINE NUMBERS ARE GIVEN BELOW.

.. only:: html
Expand Down
2 changes: 1 addition & 1 deletion docs/source/gallery/knights2020.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.1"
"version": "3.10.4"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion docs/source/gallery/knights2020.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.. DO NOT EDIT.
.. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY.
.. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE:
.. "gallery\knights2020.py"
.. "gallery/knights2020.py"
.. LINE NUMBERS ARE GIVEN BELOW.

.. only:: html
Expand Down
2 changes: 1 addition & 1 deletion docs/source/gallery/konkol2022.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.1"
"version": "3.10.4"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion docs/source/gallery/konkol2022.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.. DO NOT EDIT.
.. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY.
.. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE:
.. "gallery\konkol2022.py"
.. "gallery/konkol2022.py"
.. LINE NUMBERS ARE GIVEN BELOW.

.. only:: html
Expand Down
2 changes: 1 addition & 1 deletion docs/source/gallery/tejedor2022.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.1"
"version": "3.10.4"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion docs/source/gallery/tejedor2022.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.. DO NOT EDIT.
.. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY.
.. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE:
.. "gallery\tejedor2022.py"
.. "gallery/tejedor2022.py"
.. LINE NUMBERS ARE GIVEN BELOW.

.. only:: html
Expand Down
8 changes: 5 additions & 3 deletions docs/source/install/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Installation Instructions
Installation via *conda*
--------------------------

The latest 'stable' version of *RivGraph* can be installed via `conda`.
The latest 'stable' version of *RivGraph* can be installed via `conda`; as of this writing we have tested this installation process for Python versions 3.9.x and 3.7.13 (per `issue 83 <https://github.com/VeinsOfTheEarth/RivGraph/issues/83>`_).
We recommend installing *RivGraph* into a fresh conda environment to minimize the risk of dependency clashes.
The easiest way to do this is by opening Terminal (Mac/Unix) or Anaconda Prompt (Windows) and typing:
::
Expand All @@ -27,8 +27,10 @@ If you would rather install *RivGraph* into a pre-existing environment "myenv",

.. warning::

*RivGraph* dependencies may be pinned to specific versions of packages (e.g. geopandas 0.7) that may not mesh with your existing environment.
Check the `environment file <https://github.com/VeinsOfTheEarth/RivGraph/blob/master/environment.yml>`_ for these cases.
*RivGraph* dependencies may be pinned to specific versions of packages that may not mesh with your existing environment.
Check the `environment file <https://github.com/VeinsOfTheEarth/RivGraph/blob/master/environment.yml>`_ for these cases.
If you are having trouble getting the environment to resolve, or it is taking a very long time, consider using *mamba*
as a drop-in replacement for *conda* (see `mamba docs <https://mamba.readthedocs.io/en/latest/>`_).

Installation from source
------------------------
Expand Down
2 changes: 1 addition & 1 deletion rivgraph/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import numpy as np
import networkx as nx
from pyproj.crs import CRS
from scipy.ndimage.morphology import distance_transform_edt
from scipy.ndimage import distance_transform_edt
from matplotlib import pyplot as plt
import geopandas as gpd
from shapely.geometry import LineString
Expand Down
2 changes: 1 addition & 1 deletion rivgraph/deltas/delta_directionality.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from scipy.stats import mode, linregress
from scipy.interpolate import interp1d
from scipy.spatial import ConvexHull
from scipy.ndimage.morphology import distance_transform_edt
from scipy.ndimage import distance_transform_edt
import rivgraph.io_utils as io
import rivgraph.directionality as dy

Expand Down
2 changes: 1 addition & 1 deletion rivgraph/im_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ def fill_holes(I, maxholesize=0):
I = np.array(I, dtype=bool)

if maxholesize == 0:
I = nd.morphology.binary_fill_holes(I)
I = nd.binary_fill_holes(I)
return I
else:
# Fill only holes less than maxholesize
Expand Down
2 changes: 1 addition & 1 deletion rivgraph/mask_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import geopandas as gpd
import rivgraph.im_utils as iu
import rivgraph.geo_utils as gu
from scipy.ndimage.morphology import distance_transform_edt
from scipy.ndimage import distance_transform_edt
from shapely.geometry import Polygon
from shapely.ops import cascaded_union
from scipy import stats
Expand Down
4 changes: 2 additions & 2 deletions rivgraph/rivers/river_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import numpy as np
import networkx as nx
from fastdtw import fastdtw
from scipy.ndimage.morphology import distance_transform_edt
from scipy.ndimage import distance_transform_edt
import shapely
from shapely.geometry import LineString, Polygon
from scipy import signal
Expand Down Expand Up @@ -641,7 +641,7 @@ def get_transect_indices_along_buffered_lines(cl, mapper):
pts[i] = idxlist

return pts


def get_transect_endpoints_xy(lpts, rpts):
"""
Expand Down