Skip to content

Commit 6cedd0c

Browse files
adding environment
1 parent a2af97c commit 6cedd0c

3 files changed

Lines changed: 31 additions & 3 deletions

File tree

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,22 @@ Here is what the output looks like for a recording of 64,000 neurons in a larval
1414

1515
## Installation
1616

17-
You can pip install the package:
17+
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.
18+
19+
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.
20+
2. Open an anaconda prompt / command prompt with `conda` for **python 3** in the path
21+
3. Change directories to where the `environment.yml` is and run `conda env create -f environment.yml`
22+
4. To activate this new environment, run `conda activate rastermap`
23+
5. You should see `(rastermap)` on the left side of the terminal line. Now run `python -m rastermap` and you're all set.
24+
25+
If you have an older `rastermap` environment you can remove it with `conda env remove -n rastermap` before creating a new one.
26+
27+
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`.
28+
29+
... Or you can pip install the package and the pyqt5 requirements (not as recommended):
1830

1931
```
32+
pip install PyQt5 PyQt5.sip
2033
pip install rastermap
2134
```
2235

environment.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: rastermap
2+
dependencies:
3+
- python>=3.7
4+
- pip
5+
- numpy>=1.16
6+
- numba>=0.43.1
7+
- matplotlib
8+
- scipy
9+
- scikit-learn
10+
- pyqt
11+
- pip:
12+
- pyqtgraph
13+
- natsort
14+
- scanimage-tiff-reader
15+
- rastermap>0.1.0

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
setuptools.setup(
77
name="rastermap",
8-
version="0.1.1",
8+
version="0.1.3",
99
author="Marius Pachitariu and Carsen Stringer",
1010
author_email="carsen.stringer@gmail.com",
1111
description="Unsupervised clustering algorithm for 2D data",
1212
long_description=long_description,
1313
long_description_content_type="text/markdown",
1414
url="https://github.com/MouseLand/rastermap",
1515
packages=setuptools.find_packages(),
16-
install_requires = ['numpy>=1.13.0', 'scipy', 'pyqtgraph', 'PyQt5', 'PyQt5.sip','matplotlib','numba','natsort'],
16+
install_requires = ['numpy>=1.13.0', 'scipy','scikit-learn', 'pyqtgraph', 'matplotlib','numba','natsort'],
1717
include_package_data=True,
1818
classifiers=(
1919
"Programming Language :: Python :: 3",

0 commit comments

Comments
 (0)