Skip to content

Commit

Permalink
Added rtol to the info message when the oil API test fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMakela-NOAA committed Apr 27, 2017
1 parent 06a53b5 commit c78013a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oil_library/init_oil.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,6 @@ def oil_api_matches_density(oil):
if np.isclose(oil.api, api, rtol=0.05):
return True

logger.info('(oil.api, api_from_density) = ({}, {})'
.format(oil.api, api))
logger.info('(oil.api, api_from_density) = ({}, {}), rtol={:0.3f}'
.format(oil.api, api, np.abs(oil.api - api) / np.abs(api)))
return False

0 comments on commit c78013a

Please sign in to comment.