halleysfifthinc / c3d.jl Goto Github PK
View Code? Open in Web Editor NEWRead and write C3D files with Julia
License: MIT License
Read and write C3D files with Julia
License: MIT License
After I cloned the package by:
Pkg.clone("https://github.com/halleysfifthinc/C3D.jl.git"),
and tried to:
using C3D
it requires "VaxData" Package, so I cloned it by:
Pkg.clone("https://github.com/halleysfifthinc/VaxData.jl.git"),
then I tried again to:
using C3D
I use julia 0.6.2 on ubuntu 14
Thanks,
E.g. when multiple subjects exist with identical marker sets
julia> f = readc3d(joinpath(samp00, "Vicon Motion Systems", "TableTennis.c3d"));
julia> length(f.point)
391
julia> f = readc3d(joinpath(artifact"sample00", "Vicon Motion Systems", "TableTennis.c3d"); strip_prefixes=true);
julia> length(f.point)
276
This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml
to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix
on this issue.
I'll open a PR within a few hours, please be patient!
julia> readc3d(artifact"sample27/kyowadengyo.c3d")
ERROR: EOFError: read end of file
Stacktrace:
[1] unsafe_read(s::IOStream, p::Ptr{UInt8}, nb::UInt64)
@ Base ./iostream.jl:428
[2] unsafe_read
@ ./io.jl:759 [inlined]
[3] read!
@ ./io.jl:777 [inlined]
[4] saferead!(io::IOStream, x::Matrix{Int16}, FEND::C3D.Endian)
@ C3D .../C3D/src/C3D.jl:220
[5] readdata(io::IOStream, groups::Dict{Symbol, C3D.Group}, FEND::C3D.Endian, FType::Type{VaxData.VaxFloatF})
@ C3D .../C3D/src/C3D.jl:182
[6] readc3d(fn::String; paramsonly::Bool, validate::Bool, missingpoints::Bool, strip_prefixes::Bool)
@ C3D .../C3D/src/C3D.jl:278
[7] readc3d
@ .../C3D/src/C3D.jl:261 [inlined]
[8] top-level scope
@ /opt/julia/usr/share/julia/stdlib/v1.8/Artifacts/src/Artifacts.jl:4
In the event that a parameter has been modified after reading, the standard parameter size calculation (abs(p.np - p.pos)
) cannot be relied upon, and the size must be properly calculated. This will be necessary for saving modified C3D files (probably not so much for created C3Ds).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.