Skip to main content

Grid Search in Python

Project description

GriSPy (Grid Search in Python)

Build Status Documentation Status License: MIT Python 3.6

GriSPy is a regular grid search algorithm for quick nearest-neighbor lookup.

This class indexes a set of k-dimensional points in a regular grid providing a fast aproach for nearest neighbors queries. Optional periodic boundary conditions can be provided for each axis individually.

GriSPy has the following queries implemented:

  • bubble_neighbors: find neighbors within a given radius. A different radius for each centre can be provided.
  • shell_neighbors: find neighbors within given lower and upper radius. Different lower and upper radius can be provided for each centre.
  • nearest_neighbors: find the nth nearest neighbors for each centre.

And the following methods are available:

  • set_periodicity: define the periodicity conditions.
  • save_grid: save the grid for future use.
  • load_grid: load a previously saved grid.


You need Python 3.7 or later to run GriSPy. You can have multiple Python versions (2.x and 3.x) installed on the same system without problems.

Development Install

  1. Clone this repo and then inside the local

  2. Execute

    $ pip install -e .


Martin Chalela (E-mail:,
Emanuel Sillero, Luis Pereyra and Alejandro Garcia

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for grispy, version 2019.12
Filename, size File type Python version Upload date Hashes
Filename, size grispy-2019.12.tar.gz (15.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page