Skip to content

Improves OpenSim dependency handling#71

Merged
Ipuch merged 2 commits intopyomeca:mainfrom
Ipuch:opensim_rm
Jul 16, 2025
Merged

Improves OpenSim dependency handling#71
Ipuch merged 2 commits intopyomeca:mainfrom
Ipuch:opensim_rm

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

Comments