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

r.connectivity.network: replace R with Python #1109

Draft
wants to merge 3 commits into
base: grass8
Choose a base branch
from

Conversation

ninsbl
Copy link
Member

@ninsbl ninsbl commented Jun 18, 2024

This is a first start to replace the use of R with Python

@ninsbl ninsbl added enhancement New feature or request Python Related code is in Python labels Jun 18, 2024
@ninsbl ninsbl requested a review from ecodiv June 18, 2024 23:32

"""
MODULE: r.connectivity.network
AUTHOR(S): Stefan Blumentrath <stefan dot blumentrath at nina dot no>
PURPOSE: Compute connectivity measures for a set of habitat patches
based on graph-theory (using the igraph-package in R).
based on graph-theory (usig the igraph-package in R).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
based on graph-theory (usig the igraph-package in R).
based on graph-theory (using the igraph-package in R).

@@ -17,7 +16,7 @@

r.connectivity.network is the 2nd tool of the
r.connectivity.* toolchain and performs the (core) network
analysis (using the igraph-package in R) on the network
analysis (usig the igraph-package in R) on the network
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
analysis (usig the igraph-package in R) on the network
analysis (using the igraph-package in R) on the network

Comment on lines +28 to +29
in a plot showing an overview over number of connections,
number of components and and the size of the largest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
in a plot showing an overview over number of connections,
number of components and and the size of the largest
in a plot showing an overview over the number of connections,
number of components and the size of the largest

" (use PYTHONPATH variable)."
)
gscript.fatal(
"Could not import igraph library! To install it run:",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Could not import igraph library! To install it run:",
"Could not import igraph library! To install it run: ",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Python Related code is in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants