Changes to be committed:

modified:   pkg/obioptions/version.go
	modified:   pkg/obiseq/merge.go
This commit is contained in:
Eric Coissac
2025-06-17 12:11:35 +02:00
parent efc3f3af29
commit 8a2bb1fe82
2 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import (
// corresponds to the last commit, and not the one when the file will be
// commited
var _Commit = "1c6ab1c"
var _Commit = "efc3f3a"
var _Version = "Release 4.4.0"
// Version returns the version of the obitools package.

View File

@ -174,13 +174,14 @@ func (sequence *BioSequence) StatsPlusOne(desc StatsOnDescription, toAdd *BioSeq
}
dw := desc.Weight(toAdd)
sequence.annot_lock.Lock()
old, ok := stats[sval]
if !ok {
old = 0
}
stats[sval] = old + desc.Weight(toAdd)
stats[sval] = old + dw
sequence.annot_lock.Unlock()
sequence.SetAttribute(StatsOnSlotName(desc.Name), stats) // TODO: check if this is necessary