mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-08 00:30:27 +00:00
Merge pull request #63 from metabarcoding/push-vypwrurrsxuk
obicsv bug with stat on value map fields
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 = "27204d5"
|
var _Commit = "961abce"
|
||||||
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.
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ func (s *BioSequence) AttributeKeys(skip_container, skip_definition bool) obiuti
|
|||||||
keys := obiutils.MakeSet[string]()
|
keys := obiutils.MakeSet[string]()
|
||||||
|
|
||||||
for k, v := range s.Annotations() {
|
for k, v := range s.Annotations() {
|
||||||
if !((skip_container && obiutils.IsAContainer(v)) ||
|
if !((skip_container && (obiutils.IsAContainer(v) || IsStatsOnValues(v))) ||
|
||||||
(skip_definition && k == "definition")) {
|
(skip_definition && k == "definition")) {
|
||||||
keys.Add(k)
|
keys.Add(k)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,6 +76,12 @@ func MapAsStatsOnValues(m map[string]int) *StatsOnValues {
|
|||||||
return &v
|
return &v
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func IsStatsOnValues(value interface{}) bool {
|
||||||
|
_, ok := value.(*StatsOnValues)
|
||||||
|
return ok
|
||||||
|
}
|
||||||
|
|
||||||
func (sov *StatsOnValues) RLock() {
|
func (sov *StatsOnValues) RLock() {
|
||||||
sov.lock.RLock()
|
sov.lock.RLock()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user