Skip to content

Latest commit

 

History

History
46 lines (41 loc) · 1.71 KB

README.md

File metadata and controls

46 lines (41 loc) · 1.71 KB

PyND

Python module for calculating neighborhood density

Getting Started

  1. Be sure you have Python installed. From a shell session, run python --version. The output should look something like what is shown below. This package was developed against Python 3.6, though it may work with newer versions of python.

    $ python --version
    Python 3.6.6
  2. Check that pip is installed for the version of Python you intend on using. From a shell session, run pip --version. The output should look something like what is shown below. It's critical that the python version shown at the end of the line matches the one above.

    $ pip --version
    pip 18.1 from c:\...python\python36\lib\site-packages\pip (python 3.6)
  3. Check that pipenv is installed. From a shell session, run pipenv --version. The output should be something like:

    $ pipenv --version
    pipenv, version 2018.10.13

    If pipenv is not installed, install it using pip by running pip install pipenv, then check that the installation was successful by running pipenv --version

  4. Clone this repository.

  5. From the root directory of the repository, create a virtual environment with pipenv

    $ cd PyND
    $ pipenv install

    Note: to support automated unit tests with pytest run instead pipenv install --dev

  6. Install the R package reticulate, which allows you to run python from within an R session and pass objects back and forth between the two.

    install.packages("reticulate")
  7. From R, source() the file PyND\Test.R