GithubHelp home page GithubHelp logo

igor's Introduction

Igor utilities

for dealing with Igor files in experiments

Installation

Run python setup.py install (for permanent install) or python setup.py develop (for development installation).

Usage

For example, let's say you did an experiment on May 13, 2015. Then you might run something like:

from convert import interleaved_to_chunk
interleaved_to_chunk("150513.bin", "150513_FIFO", "150513")

to convert the FIFO file to a series of binary files, "150513a.bin", "150513b.bin", and so on, where each file contains 1000 seconds of the experiment.

The interleaved_to_chunk function in convert.py requires the following arguments: headerfile - the sample header .bin file, fifofile - contains the experiment data as a FIFO file (output from the recording system),and outputfilebase - the desired base filename for the output files (a letter is appended to denote each of the 1000 second segments).

Requires

  • Numpy

igor's People

Contributors

pjadzinsky avatar bnaecker avatar nirum avatar

Stargazers

 avatar  avatar

Watchers

Lane McIntosh avatar James Cloos avatar  avatar  avatar Pablo Jadzinsky avatar Satchel Grant avatar

igor's Issues

"chanlist" feature in recording.binary.readbin() outputs half as many samples as expected

When calling recording.binary.readbin() with chanlist=[n], where n is any channel's integer index, the data has half as many samples as you'd expect from readbinhdr['nsamples']. The data retrieved using the chanlist flag also differs from the same channel's data retrieved without using the chanlist flag.

This was observed on a .bin file recorded on July 2nd, 2015 under the new FIFO->BIN conversion script.

Ex. If you want to get just the photodiode trace (channel 0), using chanlist = [0] you will only get 1/2 of the samples from that file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.