Skip to content

Commit 91fa268

Browse files
authored
Merge pull request #369 from QuantumKitHub/zy/fix-truncspace
2 parents c050c64 + 1e8e898 commit 91fa268

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/factorizations/truncation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ MAK.findtruncated_svd(values::SectorVector, strategy::TruncationByError) =
258258

259259
function MAK.findtruncated(values::SectorVector, strategy::TruncationSpace)
260260
blockstrategy(c) = truncrank(dim(strategy.space, c); strategy.by, strategy.rev)
261-
return SectorDict(c => MAK.findtruncated(d, blockstrategy(c)) for (c, d) in values)
261+
return SectorDict(c => MAK.findtruncated(d, blockstrategy(c)) for (c, d) in pairs(values))
262262
end
263263
function MAK.findtruncated_svd(values::SectorVector, strategy::TruncationSpace)
264264
blockstrategy(c) = truncrank(dim(strategy.space, c); strategy.by, strategy.rev)

0 commit comments

Comments
 (0)