Skip to content

Organize musica directory#632

Merged
boulderdaze merged 6 commits intomainfrom
612-organize-musica-directory
Oct 6, 2025
Merged

Organize musica directory#632
boulderdaze merged 6 commits intomainfrom
612-organize-musica-directory

Conversation

@boulderdaze
Copy link
Copy Markdown
Collaborator

@boulderdaze boulderdaze commented Oct 3, 2025

This PR:

  • Organizes /musica directory for python modules by creating a subdirectory for each project (tuvx, carma, mechanism configuration)
  • Closes Organize musica/ folder #612

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 3, 2025

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Oct 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.24%. Comparing base (14fa82a) to head (0a2f860).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #632   +/-   ##
=======================================
  Coverage   78.24%   78.24%           
=======================================
  Files          54       54           
  Lines        6858     6858           
=======================================
  Hits         5366     5366           
  Misses       1492     1492           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@boulderdaze boulderdaze self-assigned this Oct 3, 2025
@boulderdaze boulderdaze requested a review from Copilot October 3, 2025 21:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR restructures the MUSICA library by organizing Python modules into subdirectories for each project (TUV-x, CARMA, mechanism configuration) within the /musica directory. This reorganization improves code organization and modularity while maintaining backward compatibility through proper imports.

Key changes include:

  • Moving modules into project-specific subdirectories with proper __init__.py files
  • Updating import statements throughout the codebase to reflect the new structure
  • Reorganizing C++ bindings directory structure
  • Removing unused imports to clean up the codebase

Reviewed Changes

Copilot reviewed 36 out of 38 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
musica/init.py Updated to import submodules instead of individual classes
musica/tuvx/init.py New module init file for TUV-x components
musica/carma/init.py New module init file for CARMA components
tutorials/7. carma.ipynb Updated CARMA class references to use new module structure
Various test files Updated import statements for moved TUV-x and CARMA classes
C++ binding files Updated include paths and reorganized directory structure
musica/backend.py Added error handling for backend import failures

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@boulderdaze boulderdaze marked this pull request as ready for review October 3, 2025 23:04
@boulderdaze boulderdaze requested a review from K20shores October 3, 2025 23:04
Copy link
Copy Markdown
Collaborator

@K20shores K20shores left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind splitting up types.py as well with this?

@boulderdaze
Copy link
Copy Markdown
Collaborator Author

Would you mind splitting up types.py as well with this?

I was thinking that it might make more sense for it to be named micm instead of type, since including both the solver and state under type is a bit confusing. What do you think?

@K20shores
Copy link
Copy Markdown
Collaborator

Would you mind splitting up types.py as well with this?

I was thinking that it might make more sense for it to be named micm instead of type, since including both the solver and state under type is a bit confusing. What do you think?

Yes, or maybe put it into a folder called micm and split it into micm, state, conditions? Either way is fine with me

@boulderdaze
Copy link
Copy Markdown
Collaborator Author

Would you mind splitting up types.py as well with this?

I was thinking that it might make more sense for it to be named micm instead of type, since including both the solver and state under type is a bit confusing. What do you think?

Yes, or maybe put it into a folder called micm and split it into micm, state, conditions? Either way is fine with me

Okay, I created an issue for this. I'll create an separate PR for this.

@boulderdaze boulderdaze requested a review from K20shores October 6, 2025 15:56
@boulderdaze boulderdaze merged commit 93b6105 into main Oct 6, 2025
66 checks passed
@boulderdaze boulderdaze deleted the 612-organize-musica-directory branch October 6, 2025 16:04
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.

Organize musica/ folder

4 participants