• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

RimuQMC / Rimu.jl / 14028563988

24 Mar 2025 06:16AM UTC coverage: 94.785% (-0.04%) from 94.826%
14028563988

push

github

web-flow
AllOverlaps for Excited States (#302)

`AllOverlaps` implemented for multiple spectral states.

---------

Co-authored-by: mtsch <matijacufar@gmail.com>
Co-authored-by: Joachim Brand <joachim.brand@gmail.com>

85 of 93 new or added lines in 8 files covered. (91.4%)

1 existing line in 1 file now uncovered.

6888 of 7267 relevant lines covered (94.78%)

17379534.28 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.33
/src/Interfaces/dataframes.jl
1
function num_replicas(df::DataFrame)
26✔
2
    if haskey(metadata(df), "num_replicas")
48✔
3
        return parse(Int, metadata(df, "num_replicas"))
22✔
4
    else
5
        num = length(filter(startswith("norm"), names(df)))
4✔
6
        num > 0 || throw(ArgumentError("No replicas found in DataFrame"))
8✔
NEW
7
        return num
×
8
    end
9
end
10

11
function num_spectral_states(df::DataFrame)
4✔
12
    if haskey(metadata(df), "num_spectral_states")
6✔
13
        return parse(Int, metadata(df, "num_spectral_states"))
2✔
14
    else
15
        if length(filter(startswith("norm"), names(df))) == 0
2✔
16
            throw(ArgumentError("No spectral states found in DataFrame"))
2✔
17
        end
NEW
18
        return 1
×
19
    end
20
end
21

22
function num_overlaps(df::DataFrame)
10✔
23
    if haskey(metadata(df), "num_overlaps")
18✔
24
        return parse(Int, metadata(df, "num_overlaps"))
8✔
25
    else
26
        if length(filter(startswith("norm"), names(df))) == 0
2✔
27
            throw(ArgumentError("No replicas found in DataFrame"))
2✔
28
        end
NEW
29
        return length(filter(startswith(r"c[0-9]+_dot"), names(df)))
×
30
    end
31
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc