mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-06-24 09:41:00 +00:00
Compare commits
4 Commits
Release_4.4.44
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 4dae7f708d | |||
| 578445f38a | |||
| 2edb33ad08 | |||
| b108d4978e |
@@ -3,7 +3,7 @@ package obioptions
|
|||||||
// Version is automatically updated by the Makefile from version.txt
|
// Version is automatically updated by the Makefile from version.txt
|
||||||
// The patch number (third digit) is incremented on each push to the repository
|
// The patch number (third digit) is incremented on each push to the repository
|
||||||
|
|
||||||
var _Version = "Release 4.4.44"
|
var _Version = "Release 4.4.45"
|
||||||
|
|
||||||
// Version returns the version of the obitools package.
|
// Version returns the version of the obitools package.
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -141,14 +141,14 @@ var OBILang = gval.NewLanguage(
|
|||||||
gval.Function("max", func(args ...interface{}) (interface{}, error) {
|
gval.Function("max", func(args ...interface{}) (interface{}, error) {
|
||||||
return obiutils.Max(args[0])
|
return obiutils.Max(args[0])
|
||||||
}),
|
}),
|
||||||
gval.Function("which_max", func(args ...interface{}) (interface{}, error) {
|
gval.Function("whichmax", func(args ...interface{}) (interface{}, error) {
|
||||||
result, err := obiutils.WhichMax(args[0])
|
result, err := obiutils.WhichMax(args[0])
|
||||||
if idx, ok := result.(int); ok {
|
if idx, ok := result.(int); ok {
|
||||||
return float64(idx), nil
|
return float64(idx), nil
|
||||||
}
|
}
|
||||||
return result, err
|
return result, err
|
||||||
}),
|
}),
|
||||||
gval.Function("which_min", func(args ...interface{}) (interface{}, error) {
|
gval.Function("whichmin", func(args ...interface{}) (interface{}, error) {
|
||||||
result, err := obiutils.WhichMin(args[0])
|
result, err := obiutils.WhichMin(args[0])
|
||||||
if idx, ok := result.(int); ok {
|
if idx, ok := result.(int); ok {
|
||||||
return float64(idx), nil
|
return float64(idx), nil
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
4.4.44
|
4.4.45
|
||||||
|
|||||||
Reference in New Issue
Block a user