Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/bases_dirac.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@
return MappedBasis{typeof(map(first(itr)))}(itr, map, inverse_map)
end

Base.copy(b::MappedBasis) = b

Check warning on line 104 in src/bases_dirac.jl

View check run for this annotation

Codecov / codecov/patch

src/bases_dirac.jl#L104

Added line #L104 was not covered by tests

object(db::MappedBasis) = db.object

function Base.IteratorSize(::Type{<:MappedBasis{T,I,S}}) where {T,I,S}
Expand Down
2 changes: 2 additions & 0 deletions src/bases_fixed.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@
end
end

Base.copy(b::SubBasis) = SubBasis(copy(parent(b)), copy(b.keys))

Check warning on line 109 in src/bases_fixed.jl

View check run for this annotation

Codecov / codecov/patch

src/bases_fixed.jl#L109

Added line #L109 was not covered by tests

Base.parent(sub::SubBasis) = sub.parent_basis

Base.length(b::SubBasis) = length(b.keys)
Expand Down
Loading