Python routines dealing with Neuropixels data.
Project description
routines
Formal Definition of a "routine" -> a python function with the following properties:
- short memorable name
- computes a commonly used Variable from a raw dataset directory.
- when called, looks for the Variable in dir/routinesMemory where dir is the directory of the dataset. If not found, the routine saves the variable after having computed it.
Python version has to be >=3.7 ot there will be imports issues!
Useful link to create a python package from a git repository
Installation:
Using a conda environment is very much advised. Instructions here: manage conda environments
- from a local repository (recommended if plans to work on it/regularly pull upgrades)
$ conda activate env_name
$ cd path/to/save_dir # any directory where your code will be accessible by your editor and safe. NOT downloads folder.
$ git clone https://github.com/Npix-routines/NeuroPyxels
$ cd NeuroPyxels
$ python setup.py develop # this will create an egg link to save_dir, which means that you do not need to reinstall the package each time you pull an udpate from github.
- from the remote repository (recommended for easy passive install)
$ conda activate env_name
$ pip install git+https://github.com/Npix-routines/NeuroPyxels@master
- Now test that the installation works. If it doesn't, figure out which packages are missing from the error log.
$ conda activate env_name
$ python
>>> import npix # NO ERROR OMG THIS PACKAGE IS SO AWESOME
Pull remote updates (after Maxime's updates :)):
$ conda activate env_name
$ cd path/to/save_dir/NeuroPyxels
$ git pull
# And that's it, thanks to the egg link no need to reinstall the package!
Push local updates:
# DO NOT DO THAT WITHOUT CHECKING WITH MAXIME FIRST
# ONLY ON DEDICATED BRANCH CREATED WITH THE GITHUB BROWSER INTERFACE
$ cd path/to/save_dir/NeuroPyxels
$ git checkout DEDICATED_BRANCH_NAME # ++++++ IMPORTANT
$ git add.
$ git commit -m "commit details - try to be specific"
$ git push origin DEDICATED_BRANCH_NAME # ++++++ IMPORTANT
# Then pull request to master branch using the online github green button! Do not forget this last step, to allow the others repo to sync.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
npyx-1.0.tar.gz
(147.0 kB
view details)
Built Distribution
npyx-1.0-py3-none-any.whl
(151.6 kB
view details)
File details
Details for the file npyx-1.0.tar.gz
.
File metadata
- Download URL: npyx-1.0.tar.gz
- Upload date:
- Size: 147.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeaa7bcb8934ba46145dda49cfcb64425d8361b6e508d11dbabceeebc5c9a087 |
|
MD5 | b8ffac538def183a86d34ad877c75067 |
|
BLAKE2b-256 | 2c1b306ed07612596f06ee8a9799ed466834aae96cb92110379f0f77864fefc8 |
File details
Details for the file npyx-1.0-py3-none-any.whl
.
File metadata
- Download URL: npyx-1.0-py3-none-any.whl
- Upload date:
- Size: 151.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3233bc797da930bfd1f1d6bae3772ecaf54f51d9f1aaf4a8f21312a52d785ffd |
|
MD5 | 833e60fbb3234fedcbb0edc905be3bf8 |
|
BLAKE2b-256 | 72c55519bcebbe0e75f5f67c01b5fcb88d6b6865c5c7db16d5a237b4ebc6d0ed |