Commit 436727d
authored
Bump compat for SUNRepresentations to 0.4 (#161)
Widens SUNRepresentations compat from `"0.3"` to `"0.3, 0.4"` in both
root and `test/Project.toml`, plus one ext fix needed for the 0.4 API
change.
### Ext change
SUNRepresentations 0.4 removed the un-parameterized `SUNIrrep(...)`
constructor — it now throws and requires `SUNIrrep{N}(...)`. The
extension was using `SUNIrrep((λ..., 0))` which worked in 0.3 but breaks
in 0.4. Fix: `SUNIrrep{N}((λ..., 0))` — compatible with both 0.3 and
0.4.
`c.I` continues to work in 0.4 via a `Base.getproperty` backwards-compat
shim that returns the weight, so `sector_label` is unchanged.
### Changes
-
ext/GradedArraysSUNRepresentationsExt/GradedArraysSUNRepresentationsExt.jl:
`SUNIrrep((λ..., 0))` → `SUNIrrep{N}((λ..., 0))`
- Project.toml: `SUNRepresentations = "0.3"` → `"0.3, 0.4"`
- test/Project.toml: `SUNRepresentations = "0.3"` → `"0.3, 0.4"`
- Project.toml: version `0.8.4` → `0.8.5`
Smoke-tested locally: the SU tests (`test_sectors.jl`,
`test_fusion_rule.jl`) all pass against SUNRepresentations 0.4.1 parent 18c37c5 commit 436727d
3 files changed
Lines changed: 4 additions & 4 deletions
File tree
- ext/GradedArraysSUNRepresentationsExt
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments