This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
A python-based toolbox for galactic simulations


Galaxy collision simulation done using PySpace

Documentation

The documentation for this project can be found at http://pyspace.readthedocs.org/.

Features

  • A python interface for high performance C++ implementation of N-body simulation algorithms.
  • PySpace has a numpy friendly API which makes it easier to use.
  • Parallel support using OpenMP.
  • GPU support using CUDA
  • Dumps vtk output which allows users to take advantage of tools like ParaView, MayaVi, etc. for visualization.

Algorithms

  • Brute Force \(O(n^2)\)
  • Barnes-Hut \(O(nlogn)\)

Installation

Dependencies

  • Numpy
  • PyEVTK (pip install pyevtk)
  • gcc compiler
  • OpenMP (optional)
  • ParaView / MayaVi or any other vtk rendering tool (optional)

Linux and OSX

To install the latest stable version, run:

$ pip install pyspace

To install development version, clone this repository by:

$ git clone https://github.com/adityapb/pyspace.git

To install, run:

$ python setup.py install

To install without OpenMP, set USE_OPENMP environment variable to 0 and then install:

$ export USE_OPENMP=0
$ python setup.py install

To install without GPU support, set USE_CUDA environment variable to 0 and then install:

$ export USE_CUDA=0
$ python setup.py install

Troubleshooting

If you run into any issues regarding installation or otherwise, please report here.

Some common issues are addressed below

CUDA not found

Make sure if the CUDA toolkit is installed. If you still get this message after installation, follow the instructions given below.

Add CUDA it to PATH environmental variable and try again

Or, set CUDAHOME environmental variable to path of the CUDA installation by:

$ export CUDAHOME=/usr/local/cuda

Image not found

If your code compiles and you get this error at runtime, make sure you have a CUDA compatible device installed.

If you don’t, install without GPU support (see Installation)

PySpace doesn’t support Windows currently

Running the tests

For running the tests you will need to install nose, install using:

$ pip install nose

To run the tests, from project’s root directory run:

$ make test

Running the benchmarks

For running benchmarks you will need to install pandas, install using:

$ pip install pandas

To run the benchmarks, cd to benchmarks directory and run:

$ python run_benchmarks.py

Contributing

Use PEP 8 coding standard for python and follow this for C++.

Release History

Release History

0.1.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
PySpace-0.1.0.tar.gz (36.4 kB) Copy SHA256 Checksum SHA256 Source Apr 30, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting