Giter VIP home page Giter VIP logo

Comments (4)

ratal avatar ratal commented on July 17, 2024

Dear,
I would say that without increasing your machine memory, you will have always difficulties to read big files.
But there are ways to optimise memory consumption:

  1. you can use parameter convertAfterRead=False to have same memory use of your file (conversion to floating inflates memory use)
  2. you can choose to only read a list of channels. To know the file list of channels, you can refer to issue #27 and then use the listchannel parameter
  3. exporting to CSV is generally a bad idea for big files. You could export to HDF5 which is a good and widely used format (you can read it in Matlab for instance). But generally for whatever export, it is needed to copy some data so you also need memory margin.
    Regards

from mdfreader.

pdrharris avatar pdrharris commented on July 17, 2024

Hello,
Thank you very much for getting back to me. I am fairly new to all of this and appreciate your help.
On the third point, the files are so big that it is not even getting as far as reading them in, even without trying to convert them and that is with convertAfterRead=False.
So am I right in thinking that, if a CAN log was taken over 8 hours, there is no way of reading in only (say) the first hour or the second hour of data?
If not, I will definitely look at limiting the channels that I read in or splitting the file using different software.
Thanks again,
Peter

from mdfreader.

ratal avatar ratal commented on July 17, 2024

Hi,
There is no functionality to have partial read of the data in mdfreader so I as you proposed, you should read a list of channels
Regards

from mdfreader.

pdrharris avatar pdrharris commented on July 17, 2024

Thank you very much for your help. I'll close the issue now but I'm very grateful.
Yours,
Peter

from mdfreader.

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.