semvec/pypi-packages huggingface dataset:
ca2spike 0.1.3
convert calcium trace to spikes

Ca2Spike
========

Deconvolve calcium imaging data to spikes. A wrapper around Chenkov and
McColgan so it’s easier to use their model and weights. Assuming you
have a imageJ roi measurement csv file, and a known sample_rate of your
two photon recording:

.. code:: python

   import numpy as np
   from ca2spike import deconvolve
   calcium_data = np.genfromtxt(file_path, delimiter=',')[1:, 1::4].T
   spike_data, timestamps, new_sample_rate = deconvolve(data, sample_rate)

Here the new sample rate is just a rounded int, coz otherwise your
analysis experience will suck.
zendesk-exporter 0.0.32
A small zendesk export tool

# zendesk_exporter
Exports data from Zendesk API to excel or csv

# Install
1. Open a command prompt and run 

   `sudo easy_install pip`

   pip is a tool that lets python developers share code.
2. Now, run 

   `pip install zendesk_exporter`

   This installs the exporter to your computer
3. Now, run 

   `zendesk_exporter job_file.json`

   `job_file.json` is a file that the program needs to be able to find. `job_file.json` should look like this:

```json
{
    "domain_name": "XXX",
    "email": "XXX",
    "api_key": "XXX",
    "start_date": "2018-06-27",
    "end_date": "2018-06-30",
    "fetch_comments": true,
    "output_file_name": "last_6_months",
    "output_file_type": "csv",
    "fetch_all_ticket_data": false
}
```
You can change the parameters in this file to change how the program behaves.
pi-si7021 0.5.4
Library to read si7021 sensor.

# pi_si7021
[![Build Status](https://travis-ci.org/kangasta/pi_si7021.svg?branch=master)](https://travis-ci.org/kangasta/pi_si7021)

Library for playing around with si7021 relative humidity and temperature sensor with Raspberry Pi. Based on [pigpio example](http://abyz.me.uk/rpi/pigpio/examples.html#Python_Si7021_py).

## Usage

```python

from pi_si7021 import Si7021

RHTEMP = Si7021()

print("Temperature: " + str(round(RHTEMP.temperature, 2)) + u" \u00B0C")
print("Relative humidity: " + str(round(RHTEMP.relative_humidity, 2)) + " %")

RHTEMP.close()

```

## Testing

Run unit tests with commands:

```bash
cd pi_si7021

python3 -m unittest discover -s tst/
```

Get test coverage with commands:
```bash
cd pi_si7021

coverage run -m unittest discover -s tst/
coverage report -m
```
pi-hcsr501 0.5.1
Library to read hcsr501 sensor.

# pi_hcsr501
[![Build Status](https://travis-ci.org/kangasta/pi_hcsr501.svg?branch=master)](https://travis-ci.org/kangasta/pi_hcsr501)

Library for playing around with hcsr501 PIR motion sensor with Raspberry Pi.

## Usage

```python

from pi_hcsr501 import HcSr501

HCSR501 = HcSr501()

while True:
	print(str(HCSR501.active) + " ", end="\r")
	sleep(0.5)

```

## Testing

Run unit tests with command:

```bash
cd pi_hcsr501

python3 -m unittest discover -s tst/
```

Get test coverage with commands:
```bash
cd pi_hcsr501

coverage run -m unittest discover -s tst/
coverage report -m
```