Commit 3102314
committed
qspace_light: explain the CellConstructor requirement instead of a TypeError
The light mode calls DiagonalizeSupercell(q_only=True), which only newer
CellConstructor releases provide. Against an older one the flag failed with
'DiagonalizeSupercell() got an unexpected keyword argument q_only', raised
from inside __setattr__ and pointing at neither the flag nor the requirement.
A module-level probe now reports the capability, so the constructor raises an
explanatory error, and tests/test_qspace_light skips instead of failing when
the installed CellConstructor cannot support it. Nothing else changes: the
default path never touches q_only.1 parent 07b346d commit 3102314
2 files changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
110 | 121 | | |
111 | 122 | | |
112 | 123 | | |
| |||
351 | 362 | | |
352 | 363 | | |
353 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
354 | 373 | | |
355 | 374 | | |
356 | 375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
27 | 37 | | |
28 | 38 | | |
29 | 39 | | |
| |||
0 commit comments