Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Bruse committed Jan 22, 2025
2 parents 58017b3 + 51d41ed commit 0c9bcaf
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions go/data/study.go
Original file line number Diff line number Diff line change
Expand Up @@ -1084,11 +1084,7 @@ func (s *Study) ViewEachReference(f func(*Reference) error) error {
}

// Copy inserts some reference into a study, and copies the audio files of the references and their distortions, assuming they are relative to the provided directory.
<<<<<<< HEAD
func (s *Study) Copy(dir string, refs []*Reference, minMOS float64, mosScaler func(float64) float64, progress func(int, int, int)) error {
=======
func (s *Study) Copy(dir string, refs []*Reference, minMOS float64, progress func(int, int, int)) error {
>>>>>>> 51d41ed (Added option to filter out low quality distortions when sampling one dataset to another.)
for index, ref := range refs {
refCopy := &Reference{}
*refCopy = *ref
Expand All @@ -1099,11 +1095,7 @@ func (s *Study) Copy(dir string, refs []*Reference, minMOS float64, progress fun
}
for index, dist := range ref.Distortions {
distCopy := &Distortion{}
<<<<<<< HEAD
if mosScaler == nil || mosScaler(distCopy.Scores[MOS]) >= minMOS {
=======
if distCopy.Scores[MOS] >= minMOS {
>>>>>>> 51d41ed (Added option to filter out low quality distortions when sampling one dataset to another.)
*distCopy = *dist
newDistPath := fmt.Sprintf("%v_%v", filepath.Base(dir), filepath.Base(dist.Path))
distCopy.Path = newDistPath
Expand Down

0 comments on commit 0c9bcaf

Please sign in to comment.