Skip to content

Conversation

@kmarchais
Copy link
Member

@kmarchais kmarchais commented Jan 22, 2026

Summary

  • Rename internal C++ module from simmit to _core following Python conventions for internal extension modules
  • Rename wrapper source file from legacy boostpython_smartplus_wrappers.cpp to python_module.cpp
  • Update all code references to use the new import style (import simcoon as sim)
  • Remove outdated boost dependencies (no longer needed since dylib replaced Boost.DLL)
  • Add backward compatibility alias for existing code using from simcoon import simmit

Changes

Core module rename

  • simcoon-python-builder/src/python_wrappers/python_module.cpp: Renamed from boostpython_smartplus_wrappers.cpp, updated PYBIND11_MODULE(_core, m)
  • simcoon-python-builder/CMakeLists.txt: Updated target name from simmit to _core
  • python-setup/simcoon/__init__.py: Import from _core, add simmit alias for backward compatibility

Legacy cleanup

  • python-setup/simcoon/solver.py: Renamed from solver.py.py
  • simcoon-python-builder/test/test_core/: Renamed from simmit_test/
  • simcoon-python-builder/cmake/README.txt: Removed outdated boost.python references
  • conda.recipe/meta.yaml: Removed boost dependency
  • install_conda.md: Removed boost install step, updated file references
  • Install.sh, Install.bat: Updated file references, removed boost

Documentation & examples updates (55 files)

  • Updated all Python imports from from simcoon import simmit as sim to import simcoon as sim
  • Updated RST docs .. autofunction:: references from simcoon.simmit.X to simcoon.X
  • Updated C++ docstrings in doc_hyperelastic.hpp
  • Updated notebooks and tutorials

Testing

  • Python package builds successfully
  • import simcoon works
  • from simcoon import simmit works (backward compatibility)
  • from simcoon import _core works
  • Python tests pass

Related Issue

Closes #53

Rename the internal C++ module from `simmit` to `_core`, following
Python conventions for internal extension modules. Also rename the
wrapper source file from the legacy Boost.Python name.

Changes:
- Rename boostpython_smartplus_wrappers.cpp to python_module.cpp
- Rename CMake target from simmit to _core
- Update PYBIND11_MODULE declaration to use _core
- Update __init__.py to import from _core
- Add backward compatibility alias for existing `from simcoon import simmit`
- Update legacy install scripts (Install.sh, Install.bat)

Closes #53
- Rename solver.py.py to solver.py
- Rename simmit_test directory to test_core
- Remove boost dependency from conda.recipe/meta.yaml
- Update test import to use _core instead of simmit
- Remove outdated boost references from documentation
- Update install scripts and READMEs
@kmarchais kmarchais requested a review from chemiskyy January 22, 2026 16:08
kmarchais and others added 4 commits January 22, 2026 17:19
Update imports, documentation, and code references to use the new
module structure where functions are exported at the simcoon level.

Changes:
- Update test imports from `from simcoon import simmit` to `from simcoon import _core`
- Update example/tutorial imports to `import simcoon as sim`
- Update notebook imports to `import simcoon as sim`
- Update RST documentation autofunction references from simcoon.simmit to simcoon
- Update C++ docstrings in doc_hyperelastic.hpp
- Update CLAUDE.md to reference _core module
- Update CMakeLists.txt comment
- Update Install.sh commented install_name_tool paths
- Update conda-packaging.yml to check for _core.so instead of simmit.so
- Clear notebook output containing old error messages
Deleted various input and output data files from Mechanical and Thermomechanical Umats notebook directories. This cleanup likely removes obsolete or unnecessary test data to reduce repository size or prepare for new data generation.
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.

Rename simmit module and cleanup legacy naming

3 participants