Commit 5a7aa2a
authored
Bundles three small, related inertia/centre-of-mass issues (separate PRs
would conflict on `thermo.py`/`test_thermo.py`).
- **#37** — rename the two non-snake_case inertia attributes
`_eigenvalues_I` → `_inertia_eigenvalues` and `_eigenvalues_I_SI` →
`_inertia_eigenvalues_si` (clears pylint C0103; pure rename, no
behaviour change; the one test reference updated).
- **#36** — validate the principal moments of inertia against ASE's
`get_moments_of_inertia` for a linear (CO₂) and nonlinear (H₂O) molecule
(masses pinned to the tool's), plus a translation-invariance test
proving the COM relocation makes the moments position-independent.
- **#35** — document that `System.coord()` returns the *original* input
coordinates and that the COM relocation is an internal detail of the
thermo pipeline (`Thermo._reloc_coord`).
Closes #35, closes #36, closes #37.
Full suite: 255 passed / 11 skipped.
1 parent 46c8d93 commit 5a7aa2a
3 files changed
Lines changed: 56 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
742 | | - | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
743 | 749 | | |
744 | 750 | | |
745 | 751 | | |
746 | 752 | | |
747 | | - | |
| 753 | + | |
748 | 754 | | |
749 | 755 | | |
750 | 756 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
242 | | - | |
| 241 | + | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
183 | 224 | | |
184 | 225 | | |
185 | 226 | | |
| |||
465 | 506 | | |
466 | 507 | | |
467 | 508 | | |
468 | | - | |
| 509 | + | |
469 | 510 | | |
470 | 511 | | |
471 | 512 | | |
| |||
0 commit comments