Skip to content

Improves OpenSim dependency handling #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 16, 2025
Merged

Conversation

Ipuch
Copy link
Collaborator

@Ipuch Ipuch commented Jul 16, 2025

Updates the project to handle OpenSim as an optional dependency. Related to:

  • Make the library usable even tho Opensim is not installed #67

  • Changes the installation instructions in the README to clarify that OpenSim is not a mandatory dependency.

  • Implements a mechanism to lazily import OpenSim-related modules, preventing import errors when OpenSim is not installed.

  • Introduces a new model_from_file function to dynamically load models based on file extension and available interfaces.

  • Adds a test case that is skipped if OpenSim is not installed.


This change is Reviewable

@Ipuch Ipuch merged commit 1ea87f6 into pyomeca:main Jul 16, 2025
2 checks passed
@Ipuch Ipuch deleted the opensim_rm branch July 16, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant