fenilsuchak / seer-py

Python SDK for the Seer data platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

seer-py

Python SDK for the Seer data platform, which handles authenticating a user, downloading channel data, and uploading labels/annotations.

Install

To install, simply clone or download this repository, then type pip install . which will install all the dependencies.

Epilepsy Ecosystem Data

For users attempting to download data for the Epilepsy Ecosystem, please download the latest release instead of cloning the repository or downloading the master branch. Then open the script ContestDataDownloader.py in Examples and it will guide you through the download process (you will need to change a few things in this script including the path to download the data to).

Requirements

This library currently requires Python 3, and it if you don't currently have a Python 3 installation, we recommend you use the Anaconda distribution for its simplicity, support, stability and extensibility. It can be downloaded here: https://www.anaconda.com/download

The install instructions above will install all the required dependencies, however, if you wish to install them yourself, here's what you'll need:

To run the Jupyter notebook example (optional, included in Anaconda): pip install notebook

Getting Started

Check out the Example for a step-by-step example of how to use the SDK to access data on the Seer platform.

To start a Jupyter notebook, run jupyter notebook in a command/bash window. Further instructions on Jupyter can be found here: https://github.com/jupyter/notebook

Troubleshooting

Downloading hangs on Windows

There is a known issue with using python's multiprocessing module on Windows with spyder. The function getLinks uses multiprocessing.Pool to run multiple downloads simultaneously, which can cause the process to run indefinitely. The workaround for this is to ensure that the current working directory is set to the directory containing your script. Running the script from a command window will also solve this problem. Alternatively, setting threads=1 in the getLinks function will stop in from using multiprocessing altogether.

About

Python SDK for the Seer data platform

License:MIT License


Languages

Language:Python 100.0%