Skip to content

Commit

Permalink
update gammazero/deque to v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vocatart committed Nov 29, 2024
1 parent f2c08d3 commit 38c4f2b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# golab

[![Go Reference](https://pkg.go.dev/badge/github.com/vocatart/golab.svg)](https://pkg.go.dev/github.com/vocatart/golab)
![go test](https://github.com/vocatart/golab/actions/workflows/go.yml/badge.svg)
[![Go Reference](https://pkg.go.dev/badge/github.com/vocatart/golab.svg "Go Reference")](https://pkg.go.dev/github.com/vocatart/golab)
![go test](https://github.com/vocatart/golab/actions/workflows/go.yml/badge.svg "Go Test Status")

simple HTK & TextGrid handling for go.

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ module github.com/vocatart/golab

go 1.22.5

require github.com/gammazero/deque v0.2.1
require github.com/gammazero/deque v1.0.0

require (
github.com/TomOnTime/utfutil v0.0.0-20230223141146-125e65197b36
github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d
golang.org/x/text v0.19.0 // indirect
golang.org/x/text v0.20.0 // indirect
)
9 changes: 4 additions & 5 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github.com/TomOnTime/utfutil v0.0.0-20230223141146-125e65197b36 h1:vfVc5pSCq58ljNpXXwUcLnHATYi/x+YUdqFc9uBhLbM=
github.com/TomOnTime/utfutil v0.0.0-20230223141146-125e65197b36/go.mod h1:MwE/QxFCN65F0hKGWFHUh2U2o1p2tMPNR1zHkX6vEh8=
github.com/gammazero/deque v0.2.1 h1:qSdsbG6pgp6nL7A0+K/B7s12mcCY/5l5SIUpMOl+dC0=
github.com/gammazero/deque v0.2.1/go.mod h1:LFroj8x4cMYCukHJDbxFCkT+r9AndaJnFMuZDV34tuU=
github.com/gammazero/deque v1.0.0 h1:LTmimT8H7bXkkCy6gZX7zNLtkbz4NdS2z8LZuor3j34=
github.com/gammazero/deque v1.0.0/go.mod h1:iflpYvtGfM3U8S8j+sZEKIak3SAKYpA5/SQewgfXDKo=
github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d h1:hrujxIzL1woJ7AwssoOcM/tq5JjjG2yYOc8odClEiXA=
github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d/go.mod h1:uugorj2VCxiV1x+LzaIdVa9b4S4qGAcH6cbhh4qVxOU=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
Expand All @@ -23,10 +23,9 @@ golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuX
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.3.8 h1:nAL+RVCQ9uMn3vJZbV+MRnydTJFPf8qqY42YiA6MrqY=
golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM=
golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
golang.org/x/text v0.20.0 h1:gK/Kv2otX8gz+wn7Rmb3vT96ZwuoxnQlY+HlJVj7Qug=
golang.org/x/text v0.20.0/go.mod h1:D4IsuqiFMhST5bX19pQ9ikHC2GsaKyk/oF+pn3ducp4=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
Expand Down
6 changes: 3 additions & 3 deletions textgrid/textgrid.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (tg *TextGrid) GetSize() int {
// ReadTextgrid takes a path to a .TextGrid file and reads its contents into a TextGrid.
func ReadTextgrid(path string) (TextGrid, error) {
var tg = TextGrid{}
tgDeque := deque.New[string]()
tgDeque := deque.Deque[string]{}

// grab the name element from the path
tg.name = filepath.Base(path)
Expand Down Expand Up @@ -157,7 +157,7 @@ func ReadTextgrid(path string) (TextGrid, error) {
}

// verify the first two entries in the deque
err = verifyHead(tgDeque)
err = verifyHead(&tgDeque)
if err != nil {
return tg, fmt.Errorf("error: textgrid %s has malformed header\n %s", tg.name, err.Error())
}
Expand Down Expand Up @@ -192,7 +192,7 @@ func ReadTextgrid(path string) (TextGrid, error) {
return tg, fmt.Errorf("error: cannot parse textgrid numTiers:\n %s", err.Error())
}

tiers, err := parseTiers(globalXmin, globalXmax, tgDeque, numTiers)
tiers, err := parseTiers(globalXmin, globalXmax, &tgDeque, numTiers)
if err != nil {
return tg, fmt.Errorf("error: cannot parse textgrid tiers:\n %s", err.Error())
}
Expand Down

0 comments on commit 38c4f2b

Please sign in to comment.