Skip to content

Commit

Permalink
Collect coverage in .coverage folder
Browse files Browse the repository at this point in the history
  • Loading branch information
goerz committed Nov 27, 2023
1 parent f473e0a commit de57999
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
1 change: 1 addition & 0 deletions .coverage/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.info
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pkg> add QuantumGradientGenerators

Note that this package is not intended for direct use. Instead, it serves as a building block for implementing quantum control methods, e.g. in the [GRAPE][] package.

For development usage withing the [JuliaQuantumControl][] organization, see the [organization development notes](https://github.com/JuliaQuantumControl#development).
For development usage within the [JuliaQuantumControl][] organization, see the [organization development notes](https://github.com/JuliaQuantumControl#development).


[JuliaQuantumControl]: https://github.com/JuliaQuantumControl
Expand Down
2 changes: 0 additions & 2 deletions devrepl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ end

if !isfile(joinpath("test", "Manifest.toml"))
_instantiate()
cp(joinpath("test", "Project.toml"), joinpath("docs", "Project.toml"); force=true)
cp(joinpath("test", "Manifest.toml"), joinpath("docs", "Manifest.toml"); force=true)
end
include("test/init.jl")

Expand Down
8 changes: 1 addition & 7 deletions src/gradgen_operator.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import QuantumControlBase.QuantumPropagators: has_real_eigvals, _exp_prop_convert_operator
import QuantumControlBase.QuantumPropagators: _exp_prop_convert_operator
import QuantumControlBase.QuantumPropagators.Controls: get_controls
import QuantumControlBase.QuantumPropagators.SpectralRange: random_state

Expand Down Expand Up @@ -28,12 +28,6 @@ function get_controls(O1::GradgenOperator)
end


# Upper triangular block matrices have eigenvalues only from the diagonal
# blocks. This is an example for a matrix that has real eigenvalues despite not
# being Hermitian
has_real_eigvals(G::GradgenOperator) = has_real_eigvals(G.G)


function random_state(H::GradgenOperator)
state = random_state(H.G)
num_controls = length(H.control_deriv_ops)
Expand Down
4 changes: 2 additions & 2 deletions test/clean.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ function clean(; distclean=false, _exit=true)
for folder in [ROOT, joinpath(ROOT, "src"), joinpath(ROOT, "test")]
append!(CLEAN, _glob(folder, ".cov"))
end
_push!(CLEAN, joinpath(ROOT, "coverage"))
_push!(CLEAN, joinpath(ROOT, "docs", "build"))
_push!(CLEAN, joinpath(ROOT, "lcov.info"))
append!(CLEAN, _glob(ROOT, ".info"))
append!(CLEAN, _glob(joinpath(ROOT, ".coverage"), ".info"))
###########################################################################

###########################################################################
Expand Down

0 comments on commit de57999

Please sign in to comment.