From e65b2a5efea93a5af9083cc91ccc27aabb91fd7f Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Fri, 21 Nov 2025 13:09:24 +0100 Subject: [PATCH] obimatrix bugs --- pkg/obioptions/version.go | 2 +- pkg/obitools/obimatrix/obimatrix.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/obioptions/version.go b/pkg/obioptions/version.go index d24004d..fc42c56 100644 --- a/pkg/obioptions/version.go +++ b/pkg/obioptions/version.go @@ -8,7 +8,7 @@ import ( // corresponds to the last commit, and not the one when the file will be // commited -var _Commit = "d35a32b" +var _Commit = "27204d5" var _Version = "Release 4.4.0" // Version returns the version of the obitools package. diff --git a/pkg/obitools/obimatrix/obimatrix.go b/pkg/obitools/obimatrix/obimatrix.go index 2ff4aee..0d4f389 100644 --- a/pkg/obitools/obimatrix/obimatrix.go +++ b/pkg/obitools/obimatrix/obimatrix.go @@ -54,13 +54,13 @@ func NewMatrixData(naValue string, attributes ...string) *MatrixData { // It returns a pointer to the transposed MatrixData. func (matrix *MatrixData) TransposeMatrixData() *MatrixData { m := MakeMatrixData(matrix.naValue, "id") - for k, v := range *&matrix.matrix { + for k, v := range matrix.matrix { for kk, vv := range v { if _, ok := m.matrix[kk]; !ok { m.matrix[kk] = make(map[string]interface{}) } m.matrix[kk][k] = vv - m.attributes[kk] = map[string]interface{}{"id": k} + m.attributes[kk] = map[string]interface{}{"id": kk} } } return &m