Search found 17 matches

by Neil Dhir
Thu Sep 08, 2016 11:36 am
Forum: OpenSim
Topic: Half-way there in creating a setup .xml file with Python API
Replies: 10
Views: 1551

Re: Half-way there in creating a setup .xml file with Python API

You can make sublime into a fully fledged IDE (which is what I have, though admittedly it only seems to work with established modules). But I get your point anyway. Thanks for help, if anyone wants the full code, I am happy to post it.
by Neil Dhir
Wed Sep 07, 2016 10:21 am
Forum: OpenSim
Topic: Half-way there in creating a setup .xml file with Python API
Replies: 10
Views: 1551

Re: Half-way there in creating a setup .xml file with Python API

I can confirm that tab completion (in sublime albeit) does not work :)
by Neil Dhir
Wed Sep 07, 2016 5:35 am
Forum: OpenSim
Topic: Half-way there in creating a setup .xml file with Python API
Replies: 10
Views: 1551

Re: Half-way there in creating a setup .xml file with Python API

Ok so printXML() does not work. However I now have: """ Script to quickly deal with XML files for OpenSim. """ import opensim as osim import yaml import os.path class scaleTools(object): def __init__(self, trial): # Set data directory self.subPath = "/data/DATA/icra/" self.trial = str(trial).zfill(3...
by Neil Dhir
Tue Sep 06, 2016 5:44 pm
Forum: OpenSim
Topic: Half-way there in creating a setup .xml file with Python API
Replies: 10
Views: 1551

Re: Half-way there in creating a setup .xml file with Python API

Hmm...? That method does not appear to exist in the opensim 3.3 API. Have I missed something?
by Neil Dhir
Tue Sep 06, 2016 5:16 pm
Forum: OpenSim
Topic: Half-way there in creating a setup .xml file with Python API
Replies: 10
Views: 1551

Half-way there in creating a setup .xml file with Python API

Hey guys, I am attempting to create the scale setup file http://simtk-confluence.stanford.edu:8080/display/OpenSim/Scale+Setup+File . This is proving somewhat difficult because this is not at all straight-forward. Though through the scant posts that I could find knocking around, I think I am half-wa...
by Neil Dhir
Wed Aug 31, 2016 2:25 pm
Forum: OpenSim
Topic: Scaling data through API (preferably python)
Replies: 1
Views: 206

Scaling data through API (preferably python)

HI!

Is there and example somewhere which shows how to scale your data (see http://simtk-confluence.stanford.edu:80 ... im/Scaling) using the API - preferably python.

Cannot seem to find any good examples.

Thanks
by Neil Dhir
Sat Aug 27, 2016 10:16 am
Forum: OpenSim
Topic: Workflow achievable through the APIs
Replies: 3
Views: 439

Re: Workflow achievable through the APIs

Ah sorry, I meant to say; can you do the whole workflow through scripting? That is what I would like to do, am I am very familiar with opensim now, so hoping that the whole thing should be quite fast.
by Neil Dhir
Fri Aug 26, 2016 4:47 pm
Forum: OpenSim
Topic: Workflow achievable through the APIs
Replies: 3
Views: 439

Workflow achievable through the APIs

This is a very short, very high-level question regarding the API.

Is it possible to perform the whole workflow (see attached image) using just the API? Also found here: http://simtk-confluence.stanford.edu:80 ... m+Workflow
by Neil Dhir
Wed Aug 17, 2016 7:08 am
Forum: OpenSim
Topic: Access model properties through python API; names of muscles and joints
Replies: 3
Views: 512

Re: Access model properties through python API; names of muscles and joints

No sure, I know you can do that; what I want is a list of all the muscles names as strings. I know I can access them one by one, by looking up the string name in the .osim file. I don't want to do this, I would just like to call a function that returns each muscle name to me. Something like: model.g...
by Neil Dhir
Wed Aug 17, 2016 6:45 am
Forum: OpenSim
Topic: Access model properties through python API; names of muscles and joints
Replies: 3
Views: 512

Access model properties through python API; names of muscles and joints

Hi, I am using the Gait2354_simbody.osim model for some work I am trying out. Through the .osim file I know what the model components are called e.g. the given name of the muscles, through string assignments or bodies: <Body name="femur_r"> <mass>9.3014</mass> <mass_center> 0 -0.17 0</mass_center> <...