Comments (4)
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.
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.
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.
Great news! Looking forward to it!
from pyomeca.
Related Issues (20)
- Pyomeca on Google Colab? HOT 2
- derivative method in newest version
- latest supported python version HOT 1
- troubles with xarrays and findpeaks HOT 3
- Slicing data using the square brackets HOT 1
- How to install Pyomeca from the Pycharm Terminal for Win 10. HOT 11
- Dependencies error HOT 5
- Unable to import ezc3d HOT 1
- Problem With Google Colab Import HOT 4
- `conda install -c conda-forge bioviz` fails in Python3.10 with error `ResolvePackageNotFound: - python=3.1` HOT 1
- Import 3d positional data for conversion to other file formats HOT 2
- . HOT 3
- delsys c3d HOT 6
- rototrans matmul HOT 2
- accessing Subject Properties in c3d files HOT 3
- Recover the trajectory color HOT 4
- conflicting sizes for dimension 'channel': length 272 on the data but length 255 on coordinate 'channel' HOT 6
- Could not open the c3d file: iostream error HOT 4
- Markers.from_trc -> IndexError: single positional indexer is out-of-bounds HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyomeca.