Skip to content

Commit

Permalink
adding environment
Browse files Browse the repository at this point in the history
  • Loading branch information
carsen-stringer committed Jan 16, 2020
1 parent a2af97c commit 6cedd0c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,22 @@ Here is what the output looks like for a recording of 64,000 neurons in a larval

## Installation

You can pip install the package:
Install an [Anaconda](https://www.anaconda.com/download/) distribution of Python -- Choose **Python 3.x** and your operating system. Note you might need to use an anaconda prompt if you did not add anaconda to the path.

1. Download the [`environment.yml`](https://github.com/MouseLand/rastermap/blob/master/environment.yml) file from the repository. You can do this by cloning the repository, or copy-pasting the text from the file into a text document on your local computer.
2. Open an anaconda prompt / command prompt with `conda` for **python 3** in the path
3. Change directories to where the `environment.yml` is and run `conda env create -f environment.yml`
4. To activate this new environment, run `conda activate rastermap`
5. You should see `(rastermap)` on the left side of the terminal line. Now run `python -m rastermap` and you're all set.

If you have an older `rastermap` environment you can remove it with `conda env remove -n rastermap` before creating a new one.

Note you will always have to run **conda activate rastermap** before you run suite2p. Conda ensures pyqt and numba run correctly and quickly on your machine. If you want to run jupyter notebooks in this environment, then also `conda install jupyter`.

... Or you can pip install the package and the pyqt5 requirements (not as recommended):

```
pip install PyQt5 PyQt5.sip
pip install rastermap
```

Expand Down
15 changes: 15 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: rastermap
dependencies:
- python>=3.7
- pip
- numpy>=1.16
- numba>=0.43.1
- matplotlib
- scipy
- scikit-learn
- pyqt
- pip:
- pyqtgraph
- natsort
- scanimage-tiff-reader
- rastermap>0.1.0
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@

setuptools.setup(
name="rastermap",
version="0.1.1",
version="0.1.3",
author="Marius Pachitariu and Carsen Stringer",
author_email="[email protected]",
description="Unsupervised clustering algorithm for 2D data",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/MouseLand/rastermap",
packages=setuptools.find_packages(),
install_requires = ['numpy>=1.13.0', 'scipy', 'pyqtgraph', 'PyQt5', 'PyQt5.sip','matplotlib','numba','natsort'],
install_requires = ['numpy>=1.13.0', 'scipy','scikit-learn', 'pyqtgraph', 'matplotlib','numba','natsort'],
include_package_data=True,
classifiers=(
"Programming Language :: Python :: 3",
Expand Down

0 comments on commit 6cedd0c

Please sign in to comment.