Comments (9)
Hi there,
As far as I know, opensim
has been build on three channels:
mrtnz
: uploaded 10 days and 19 hours ago from this repo with this pull-request mergedpyomeca
: uploaded 1 month and 30 days ago from this repo- kzts: uploaded 23 days and 3 hours ago. I don't know the source code so I don't recommend this one as OpenSim as had a lot of changes in the last year.
from pyomeca.
Yep, I confirm the bug, the one on pyomeca fails due an error with simbody interface. @romainmartinez, should I have a look?
from pyomeca.
Hi @hmok !
I am the main coder of ezc3d and co-coder with @romainmartinez on pyomeca. I was interested on why you struggled to install ezc3d? If anything can be done in order to help installing it, please let me know! The easiest way is to open an issue on github in ezc3d :)
For your specific problem, I tried installing everything in google colab and all seems fine. Here the command I used:
!wget -c https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
!chmod +x Miniconda3-latest-Linux-x86_64.sh
!bash ./Miniconda3-latest-Linux-x86_64.sh -b -f -p /usr/local
!conda install -y --prefix /usr/local -c pyomeca -c conda-forge pyomeca
import sys
sys.path.append('/usr/local/lib/python3.7/site-packages/')
Please note that if python version changes in miniconda, you will need to change the python version in the sys.path.append
command.
Afterwards, ezc3d
and pyomeca
(even though I doubt you explicitly need to import ezc3d
) can be imported by:
import ezc3d
import pyomeca
Here is the Google Colab example I've made:
https://colab.research.google.com/drive/1VFTHMYVIR-azN1mtsWdrxzA2OlrcW9cJ
Enjoy!
from pyomeca.
Hi @pariterre ,
Thank you for the nice note above and great work by the way! Keep up please!
I had difficulty findings what you kindly shared with me. Thanks for creating the Google Colab notebook as well. It works now perfectly. I am quite new to Python so I am slow, sorry for simple questions.
I am wondering if you could install OpenSim on Google Colab as well. I have tried it but haven't had success yet.
I will explore your pyomeca more!
Thanks again.
Hossein
from pyomeca.
Hi there!
You can download it via conda again, but so far I am not sure there is an official channel. So you will have to choose. As up today, it seems the 2 most up-to-date is ours (pyomeca) and kzts, the latter slightly more recent. Assuming you are using the kzts channel, just run the following command to install opensim:
!conda install -y --prefix /usr/local -c kzts opensim
Afterward, you should be able to access opensim resources via the import opensim as osim
command (please note that the as osim
is not required. It only creates an alias so in your code you call opensim commands by using this alias (for example: osim.model()
instead of opensim.model()
)
Regards
from pyomeca.
Hello again!
That is great. I have been trying many ways but this is so easy and I did it. Thanks a lot here is what I did:
!wget -c https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
!chmod +x Miniconda3-latest-Linux-x86_64.sh
!bash ./Miniconda3-latest-Linux-x86_64.sh -b -f -p /usr/local
!conda install -y --prefix /usr/local -c kzts opensim
import sys
sys.path.append('/usr/local/lib/python3.7/site-packages/')
import opensim as osim
The it works. Wow.
May I please ask you what you meant by two ways of installing it. Can we install OpenSim via pyomeca as well?
Thanks a lot and have a wonderful day!
Cheers,
Hossein
from pyomeca.
Yep, we also host our build of Opensim. You can install it from our channel using this command
!conda install -y --prefix /usr/local -c pyomeca opensim
I am not sure which one is most up-to-date though. This is not impossible that the one on our channel includes some changes I've made into OpenSim but were not merged yet into the main repo (mainly on StaticOptimization). @romainmartinez can you confirm?
Regards!
from pyomeca.
That is great! Thanks for the list and details. I just tried to install all three options. I could only install properly kzts. I will go ahead with kzts one for now but I will try them later again!
from pyomeca.
Since this problem is not related to pyomeca, I'll close this issue. Feel free to reach us on the pyosim repo if you still have trouble installing pyosim.
from pyomeca.
Related Issues (20)
- Review: Running EMG Example HOT 2
- Review: Additional examples for other data HOT 2
- Marker visualization HOT 3
- 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
- resultant velocity - trubles with calling xarrays with same commands as in older pyomeca version. HOT 4
- Recover the trajectory color HOT 4
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.