samplestamps


Namesamplestamps JSON
Version 0.6.0 PyPI version JSON
download
home_pagehttps://github.com/janclemenslab/samplestamps
SummaryFor converting between timestamps.
upload_time2023-08-18 19:29:42
maintainerNone
docs_urlNone
authorJan Clemens
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Samplestamps

Code for converting between time stamps and samples/frames.

## Installation
`pip install samplestamps`

## Usage

```python
from samplestamps import SampStamp
ss = SampStamp(sample_times=daq_stamps[:,0],
               frame_times=cam_stamps[:,0],
               sample_numbers=daq_samplenumber[:,0])
ledonset_sample = 80000.0+np.argmax(daq_samples[80000:,-1]>0.05)
print(f'led onset at sample {ledonset_sample} corresponding to')
print(f'   seconds: {ss.sample_time(ledonset_sample):1.3f}')
print(f'   frame: {ss.frame(ledonset_sample):1.0f}.')
```
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/janclemenslab/samplestamps",
    "name": "samplestamps",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Jan Clemens",
    "author_email": "clemensjan@googlemail.com",
    "download_url": "https://files.pythonhosted.org/packages/42/08/f5fd941362aa7319a6923b2368c8da04dbc6d9d6a16d69a7f42931582ad6/samplestamps-0.6.0.tar.gz",
    "platform": null,
    "description": "# Samplestamps\n\nCode for converting between time stamps and samples/frames.\n\n## Installation\n`pip install samplestamps`\n\n## Usage\n\n```python\nfrom samplestamps import SampStamp\nss = SampStamp(sample_times=daq_stamps[:,0],\n               frame_times=cam_stamps[:,0],\n               sample_numbers=daq_samplenumber[:,0])\nledonset_sample = 80000.0+np.argmax(daq_samples[80000:,-1]>0.05)\nprint(f'led onset at sample {ledonset_sample} corresponding to')\nprint(f'   seconds: {ss.sample_time(ledonset_sample):1.3f}')\nprint(f'   frame: {ss.frame(ledonset_sample):1.0f}.')\n```",
    "bugtrack_url": null,
    "license": null,
    "summary": "For converting between timestamps.",
    "version": "0.6.0",
    "project_urls": {
        "Homepage": "https://github.com/janclemenslab/samplestamps"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "796dab13810e7499d85bb51d75af55184143135dbaf0bf4ad55ca96f9280e677",
                "md5": "c199225657f01ecac0d268e30b0c9b26",
                "sha256": "e9ab4e9c0d992b73b8bef955cddfda5fa6683244b96cf9f5b640f7d6411fd006"
            },
            "downloads": -1,
            "filename": "samplestamps-0.6.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c199225657f01ecac0d268e30b0c9b26",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 8511,
            "upload_time": "2023-08-18T19:29:38",
            "upload_time_iso_8601": "2023-08-18T19:29:38.521126Z",
            "url": "https://files.pythonhosted.org/packages/79/6d/ab13810e7499d85bb51d75af55184143135dbaf0bf4ad55ca96f9280e677/samplestamps-0.6.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4208f5fd941362aa7319a6923b2368c8da04dbc6d9d6a16d69a7f42931582ad6",
                "md5": "54337f750f3ed421af1be03280aa8355",
                "sha256": "07a0cd42bddf9e06c27c79344e9c68d13014808fbaf8ac2e7aa9b7afb7337dc8"
            },
            "downloads": -1,
            "filename": "samplestamps-0.6.0.tar.gz",
            "has_sig": false,
            "md5_digest": "54337f750f3ed421af1be03280aa8355",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 386619,
            "upload_time": "2023-08-18T19:29:42",
            "upload_time_iso_8601": "2023-08-18T19:29:42.627610Z",
            "url": "https://files.pythonhosted.org/packages/42/08/f5fd941362aa7319a6923b2368c8da04dbc6d9d6a16d69a7f42931582ad6/samplestamps-0.6.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-18 19:29:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "janclemenslab",
    "github_project": "samplestamps",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "samplestamps"
}
        
Elapsed time: 0.11633s