stanfordnmbl / opencap-processing Goto Github PK
View Code? Open in Web Editor NEWUtilities for processing OpenCap data.
License: Apache License 2.0
Utilities for processing OpenCap data.
License: Apache License 2.0
The problem is that the provided end time for the time window exceeds the end time of the motion file.
Support parallel computing.
getpass doesn't work in spyder. Plus, figure out how to send 2fa, and potentially store credentials for the duration of the session, but reliably delete them once spyder is closed
It seems like the libraries build on OS 12.5 do not work with older versions:https://simtk.org/plugins/phpBB/viewtopicPhpbb.php?f=2385&t=15341&p=44584&start=0&view=
Add get_whole_body_angular_momentum
to kinematics class.
Bug when coordinate files are provided in rad.
They return modelName with and without .osim
Seems like it is not picking the good compiler by default when installing Visual Studio 2022. Check if there is a way to identify the compiler on the computer and specify it in the cmake calls.
Manual fix:
cmd1 = 'cmake "' + pathBuildExpressionGraph + '" -G "Visual Studio 17 2022" -A x64 -DTARGET_NAME:STRING="' + filename + '" -DSDK_DIR:PATH="' + SDK_DIR + '" -DCPP_DIR:PATH="' + CPP_DIR + '"'
cmd3 = 'cmake "' + pathBuildExternalFunction + '" -G "Visual Studio 17 2022" -A x64 -DTARGET_NAME:STRING="' + filename + '" -DINSTALL_DIR:PATH="' + path_external_functions_filename_install + '"'
Installing opensim, condacolab the sourcecode from github runs without problems on colab. I ran it directly and aslo made copy to an colab notebook version which gives me the same error.
I get following errors when importing packages
ModuleNotFoundError Traceback (most recent call last)
in
1 import os
----> 2 import utilsKinematics
3 from utils import download_kinematics
4 from utilsPlotting import plot_dataframe
/content/opencap-processing/utilsKinematics.py in
20
21 import os
---> 22 import opensim
23 import numpy as np
24 import pandas as pd
ModuleNotFoundError: No module named 'opensim'
Bug when running kinetics with no .env file.
I suggest we add a function get_gait_events
in the gait_analysis
class that returns gaitEvents
. That would be useful for downstream tasks.
Thoughts @suhlrich? I can do it.
Check wrapping surface scaling thing.
Hard to get good fitting for this session.
ef516897-f0b2-493e-9927-3022db2d2ac3
Improve documentation - test conda package https://anaconda.org/anaconda/cmake
A lot of the functions in utils
will download / request even if it is already available locally.
For instance, download_trial
will call get_model_and_metadata
that will call get_neutral_trial_id
that will call get_session_json
. This makes the system not usable offline and can create bugs if the API is temporarily unavailable (happened to me overnight). It would be great if we had a consistent way of defining these functions. For each function would take an argument overwrite=False
, such that by default it does not download again, but instead uses what is there already.
Thoughts @suhlrich ?
@suhlrich feel free to add items
As several other users have pointed out in the forum, adding support for frontal knee ROM in kinematic and kinetic analyses would be a great feature to implement soon.
I am referring to the model posted here: https://drive.google.com/file/d/153QJQHVuYFVj01p_NKJTlD_Ho570N84L/view
Best
Bernhard
Not a big fan that different filters are used for inputs and outputs. The OpenSim filter is a 3rd order I think
Add class utilsKinetics for analyzing kinetics results
Hello, I keep getting the attribution error like the one below.
AttributeError: module 'foo' has no attribute 'foo'
It is coming from the generateF function in utilsOpenSimAD.py
def generateF(dim):
import foo
importlib.reload(foo)
cg = ca.CodeGenerator('foo_jac')
arg = ca.SX.sym('arg', dim)
y,, = foo.foo(arg)
F = ca.Function('F',[arg],[y])
cg.add(F)
cg.add(F.jacobian())
cg.generate()
How can I solve this problem?
I appreciate your answer in advance.
Add otp verification step in utilsAuth in opencap-core and opencap-processing. If otp_verified is False, we can trigger the code to be sent just like we do for the front end, and have the user enter it into the terminal, and move on.
Add support for running muscle-driven simulations with the full body model with the ISB shoulder.
Full body model sent by user.
Bug here, you cannot assign a NaN to an array of doubles. Need for fix + need for way to handle missing contralateral data in rest of code. Session for testing: 1a1e9c15-4bc3-4b72-bf9d-cc6ba9293c23, trial: 10mwt
Automatically identify cmake-generator on windows
Test out new feature for bounds
optionssol.detect_simple_bounds = true; % (default = false)
opti.solver('ipopt',optionssol);
sol = opti.solve(); (edited)
It is all hard coded now, let's define the bounds only once and adjust everything automatically.
z_temp = np.zeros((self.nGaitCycles,3))
for i in range(self.nGaitCycles):
z_temp[i,:] = np.mean(asisVector[self.gaitEvents['ipsilateralIdx'][i,0]: \
self.gaitEvents['ipsilateralIdx'][i,2]],axis=0)
z_temp = z_temp / np.linalg.norm(z_temp,axis=1,keepdims=True)
```
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.