Giter VIP home page Giter VIP logo

Comments (4)

nsteinme avatar nsteinme commented on August 21, 2024

Another option here is to make the input data file type be an NPY file
rather than flat binary. This file type contains a tiny header which
specifies the data size and type. It can be memory mapped and "fread" (by
just skipping the header first). I believe an existing data file can be
converted to NPY by concatenating a file of the header with the data file;
I need to test this more.

So that option is nicer because it is self-contained - if we want to go
that way it would be best to do it in coordination with Cyrille and phy so
you can use the same raw data file for both. Simply using the same
params.py file that phy uses is definitely the simpler option.

On Thu, Apr 28, 2016 at 12:33 PM, petersaj [email protected] wrote:

Marius' note:

It needs to know how many total channels there are so it loads them
correctly from the bin file. In the past I left this as a user-defined
option because there were cases where we ran it without a prb file.... But
I think these days the prb file is a requirement for loading into Phy, so
it needs to be made for any type of probe anyway. So I should really just
determine the number of channels from the prb file.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#11

from kilosort.

marius10p avatar marius10p commented on August 21, 2024

Thanks Nick, but just making the NPY file out of a binary might take a significant amount of time. On top of that, memory mapping in matlab works significantly worse than just reading a flat binary file, I have noticed recently.

from kilosort.

nsteinme avatar nsteinme commented on August 21, 2024

In linux the concatenation is immediate. But I'm struggling to get it to
work on windows, so we can forget it for now.

Fwiw, you can of course still just read the npy file with fread in matlab,
you just have to skip the header (usually 80 bytes) first.

On Thu, Apr 28, 2016 at 1:04 PM, marius10p [email protected] wrote:

Thanks Nick, but just making the NPY file out of a binary might take a
significant amount of time. On top of that, memory mapping in matlab works
significantly worse than just reading a flat binary file, I have noticed
recently.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#11 (comment)

from kilosort.

marius10p avatar marius10p commented on August 21, 2024

The number of active and total channels is now read from the channel map file, unless already specified in ops. Same goes for sampling frequency.

from kilosort.

Related Issues (20)

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.