Skip to content

Added B matrix functionality#122

Draft
nwhel wants to merge 28 commits into
masterfrom
B_matrix_implementation
Draft

Added B matrix functionality#122
nwhel wants to merge 28 commits into
masterfrom
B_matrix_implementation

Conversation

@nwhel

@nwhel nwhel commented Jan 14, 2025

Copy link
Copy Markdown
Collaborator

Added support for primitive internal coordinates, Wilson B matrices, and generating trajectories using these.

nwhel added 8 commits January 14, 2025 14:10
Added support for primitive internal coordinates, Wilson B matrices, and generating trajectories using these.
typing does not have TypeAlias before Python 3.12, moved for backwards compatability.
added "from __future__ import annotations"
@codecov

codecov Bot commented Jan 14, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 161 lines in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (6bf9e98) to head (b474b14).
Report is 7 commits behind head on master.

Files with missing lines Patch % Lines
...rd/_cartesian_coordinates/_cartesian_class_bmat.py 0.00% 144 Missing ⚠️
src/chemcoord/_utilities/typing.py 0.00% 15 Missing ⚠️
...ord/_cartesian_coordinates/cartesian_class_main.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #122    +/-   ##
=======================================
  Coverage    0.00%   0.00%            
=======================================
  Files          29      31     +2     
  Lines        2761    2921   +160     
=======================================
- Misses       2761    2921   +160     

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

nwhel added 4 commits January 15, 2025 11:54
Added Vector, Matrix, Tensor3D types to differentiate between NDArrays
Changed type union from | to Union[]
Now go through each element of delta_c and minimize the paths between angles.
@mcocdawc

mcocdawc commented Jan 15, 2025

Copy link
Copy Markdown
Owner
  • tests tests tests
  • no mutable default arguments
  • break into functions
  • smaller helper function for doing a step and then backwards interpolation
  • decorator wrapper for mypy and numba.njit, passing on __annotation__
  • ensuring that stuff stays array and/or list when it is array and/or list
  • pass in cartesian coordinates + lookup table instead of pos_arr
  • more descriptive names
  • fragment-based code
  • pure internal movement (?) (get_inertia and get_barycenter might be useful)

perhaps (could be done for another MR)

  • profiling

@nwhel nwhel left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Mislabeled this, meant to say fixed method arguments.

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.

2 participants