mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-11-09 17:24:41 +00:00
Add a basic managment of obisequenceslice to obiscript
Former-commit-id: c3d2888ebbfb237826630548b839ce93cdbf86eb
This commit is contained in:
1 parent
cb35612a6c
commit
df74b2b2bd
4 files changed
+110
-37
No files matched your search
@@ -81,6 +81,8 @@ func LuaWorker(proto *lua.FunctionProto) obiseq.SeqWorker {
|
||||
switch val := s.(type) {
|
||||
case *obiseq.BioSequence:
|
||||
return obiseq.BioSequenceSlice{val}, err
|
||||
case *obiseq.BioSequenceSlice:
|
||||
return *val, err
|
||||
default:
|
||||
return nil, fmt.Errorf("worker function doesn't return the correct type")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user