Skip to content

Commit

Permalink
Fixed lint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
zond committed Sep 26, 2024
1 parent 4341af5 commit 0d40401
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions go/aio/aio.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
)

const (
// DefaultSampleRate is the default sample rate.
DefaultSampleRate = 48000
)

Expand Down
6 changes: 4 additions & 2 deletions go/data/study.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ func (r ReferenceBundles) ZimtohrliMSE(z *goohrli.Goohrli, includeJND bool) (flo
return 0, err
}
sumOfSquares += mse * mse
count += 1
count++
}
}
return sumOfSquares / float64(count), nil
Expand Down Expand Up @@ -601,7 +601,7 @@ type MappingOptimizationResult struct {
MSEAfter float64
}

// OptimizeMOSMapping optimizes the MOS mapping parameters.
// OptimizeMapping optimizes the MOS mapping parameters.
func (r ReferenceBundles) OptimizeMapping() (*MappingOptimizationResult, error) {
startParams := goohrli.DefaultParameters(aio.DefaultSampleRate)
errors := []error{}
Expand Down Expand Up @@ -655,6 +655,7 @@ type Recorder struct {
startParameters goohrli.Parameters
}

// Init does nothing.
func (r *Recorder) Init() error {
return nil
}
Expand All @@ -669,6 +670,7 @@ func (r *Recorder) xToParams(x []float64) goohrli.Parameters {
return cpy
}

// Record prints optimization statistics to the log.
func (r *Recorder) Record(loc *optimize.Location, op optimize.Operation, stats *optimize.Stats) error {
params := r.xToParams(loc.X)
switch op {
Expand Down

0 comments on commit 0d40401

Please sign in to comment.