Commit 0f5d3ad
committed
species/vectors: drop converter import, inline get_vector
The previous commit changed zmat.py to a module-style import of
vectors but the structural cycle (zmat -> vectors -> converter -> zmat)
remained, so CodeQL kept flagging both edges.
vectors.py only used converter in get_vector, where it called
xyz_to_x_y_z(xyz) (O(N) per-axis split + check_xyz_dict validation)
just to read two atoms' coordinates. Inline the two coord lookups
directly and drop the module-level converter import. The cycle is
now fully broken at the import-graph level.1 parent f07d1f2 commit 0f5d3ad
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
361 | 360 | | |
362 | 361 | | |
363 | 362 | | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
369 | 366 | | |
370 | 367 | | |
371 | 368 | | |
| |||
0 commit comments