Skip to content
/ PyND Public
forked from BUlexlab/PyND

Python module for calculating neighborhood density

License

Notifications You must be signed in to change notification settings

ASL-LEX/PyND

 
 

Repository files navigation

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

About

Python module for calculating neighborhood density

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 94.0%
  • R 4.2%
  • Batchfile 1.8%