Git Product home page Git Product logo

Comments (4)

pariterre avatar pariterre commented on September 21, 2024

Hi @Dareczin
I must admit that I never myself fully understood xarray as I am not the one who migrated the code, and haven't used it since. If I recall well, the method .loc can be used to access the data, but I am not sure.

If you need to access the actual c3d data, I would suggest to load from ezc3d directly (github.com/pyomeca/ezc3d) and access the point data as such:

import ezc3d

c = ezc3d.c3d("path_to_file.c3d")
data = c["data"]["points"]

as shown in the documentation here: https://github.com/pyomeca/ezc3d/#python-3


That said, I had a quick look at the pyomeca's doc (https://pyomeca.github.io/getting-started/). I think you can access the data just as before. You can't modify it the same way though. Sorry for not helping much, I never myself took the time to understand xarrays, and mainly dropped out of pyomeca code when Romain completely rewrote the code (I focussed on biorbd, ezc3d and bioptim, which is more than enough hahaha)

from pyomeca.

Dareczin avatar Dareczin commented on September 21, 2024

Dear @pariterre

Sorry for late anwser I was at conference without PC to check if your suggestion is working. ezc3d reading also works. However from reading whole file to acessing and manipulating I need to check a docs. I do not know if i should go for issue elsewhere to discuss ezc3d, but description about reading could be litte more specific.

Anyway thank you for information about your not working with Romain now, I will not bother you longer with the issue. Thank you for anwsering me!

Best regards,
Dareczin

from pyomeca.

pariterre avatar pariterre commented on September 21, 2024

No worries, I am supposed to use pyomeca again in a project that came up last Friday. If I do, I will update the doc for sure!

from pyomeca.

Dareczin avatar Dareczin commented on September 21, 2024

Great news! Looking forward to it!

from pyomeca.

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.