Skip to main content

slidingRefractory

Code to perform a new test of whether neurons have contaminated refractory periods, with a sliding window

Python

Installation

Install using pip:

pip install slidingRP

Install using sources in development mode. First clone the repository.

cd slidingRefractory
pip install -e .

Minimal working example

from pathlib import Path
import numpy as np
import pandas as pd

from slidingRP import metrics

# get the small test datasets from the github repository first
repo_path = "/home/ibladmin/Documents/PYTHON/int-brain-lab/slidingRefractory"
TEST_DATA_PATH = Path(repo_path).joinpath("test-data", "integration")

params = {'sampleRate': 30000, 'binSizeCorr': 1 / 30000}
spikes = pd.read_parquet(TEST_DATA_PATH.joinpath('spikes.pqt'))
table = metrics.slidingRP_all(spikes.times, spikes.clusters, **params)

assert np.allclose(pd.read_parquet(TEST_DATA_PATH.joinpath("rp_table.pqt")), pd.DataFrame(table), equal_nan=True)

Contribute

Run unit tests

 pytest python/test_*

Upload package

rm -fR dist
rm -fR build
python setup.py sdist bdist_wheel
twine upload dist/*

Download files

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

Source Distribution

slidingRP-1.1.1.tar.gz (35.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slidingRP-1.1.1-py3-none-any.whl (40.2 kB view details)

Uploaded Python 3

File details

Details for the file slidingRP-1.1.1.tar.gz.

File metadata

  • Download URL: slidingRP-1.1.1.tar.gz
  • Upload date:
  • Size: 35.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.11

File hashes

Hashes for slidingRP-1.1.1.tar.gz
Algorithm Hash digest
SHA256 89bba7d1ba74c74b5e188268cb86d4c512e0fcf217a9ad251b7c27c4f06bcc45
MD5 86f13dde54b8335b484a763dee41af52
BLAKE2b-256 5893cbedf2071fd337b0ea07aa5faa0c11c0dc0907f831e0093376fe563bee6f

See more details on using hashes here.

File details

Details for the file slidingRP-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: slidingRP-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 40.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.11

File hashes

Hashes for slidingRP-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3da89aeabb18966b2d2125c3b0aaa8c697a1411a37d0963f6749992f04f01d8a
MD5 e2763bd3a7baf68ce45c02702ca53aa2
BLAKE2b-256 f01685c49d8f6d233ae23ce233e11fd2e8dc1650d56522d8c0fac803cc2f7994

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 files

1.1.0

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page