[MRG] Check metric is a string by zdk123 · Pull Request #379 · PythonOT/POT

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@zdk123

Copy link Copy Markdown

Contributor

@zdk123 zdk123 commented

May 13, 2022

Types of changes

Resolves #378. The dist function needs an extra check that it's actually a string before calling a string method - mainly just in case the metric is a callable.

@rflamary rflamary changed the title Check metric is a string [MRG] Check metric is a string

May 16, 2022

@codecov

Copy link Copy Markdown

codecov bot commented

May 16, 2022

edited

Loading

Codecov Report

Merging #379 (fba7776) into master (b001d7a) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #379   +/-   ##
=======================================
  Coverage   93.76%   93.76%           
=======================================
  Files          23       23           
  Lines        5934     5934           
=======================================
  Hits         5564     5564           
  Misses        370      370           

@rflamary rflamary merged commit 951209a into PythonOT:master

May 16, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

dist function errors with a callable metric

2 participants

@zdk123 @rflamary