mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
Changes to be committed:
modified: pkg/obioptions/version.go modified: pkg/obiseq/merge.go
This commit is contained in:
@ -8,7 +8,7 @@ import (
|
|||||||
// corresponds to the last commit, and not the one when the file will be
|
// corresponds to the last commit, and not the one when the file will be
|
||||||
// commited
|
// commited
|
||||||
|
|
||||||
var _Commit = "1c6ab1c"
|
var _Commit = "efc3f3a"
|
||||||
var _Version = "Release 4.4.0"
|
var _Version = "Release 4.4.0"
|
||||||
|
|
||||||
// Version returns the version of the obitools package.
|
// Version returns the version of the obitools package.
|
||||||
|
@ -174,13 +174,14 @@ func (sequence *BioSequence) StatsPlusOne(desc StatsOnDescription, toAdd *BioSeq
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dw := desc.Weight(toAdd)
|
||||||
sequence.annot_lock.Lock()
|
sequence.annot_lock.Lock()
|
||||||
old, ok := stats[sval]
|
old, ok := stats[sval]
|
||||||
if !ok {
|
if !ok {
|
||||||
old = 0
|
old = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
stats[sval] = old + desc.Weight(toAdd)
|
stats[sval] = old + dw
|
||||||
sequence.annot_lock.Unlock()
|
sequence.annot_lock.Unlock()
|
||||||
|
|
||||||
sequence.SetAttribute(StatsOnSlotName(desc.Name), stats) // TODO: check if this is necessary
|
sequence.SetAttribute(StatsOnSlotName(desc.Name), stats) // TODO: check if this is necessary
|
||||||
|
Reference in New Issue
Block a user