Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning message in test/test_spline.py in python2_compat branch #115

Open
lucabaldini opened this issue Sep 20, 2022 · 0 comments
Open

warning message in test/test_spline.py in python2_compat branch #115

lucabaldini opened this issue Sep 20, 2022 · 0 comments
Assignees

Comments

@lucabaldini
Copy link
Owner

_delta.max() is a nan , so I wrote

#!python

import numpy
 if not numpy.isnan(_delta.max()): 
     self.assertTrue(_delta.max() < 1e-9, 'max. diff. %.9f' %_delta.max())

The test is ok, both with Python 3 and Python 2, but a warning message appears:

#!python

test_spline.py:96: RuntimeWarning: invalid value encountered in true_divide
  _delta = abs(_d(self.x2) - self.s1(self.x2)/self.y2 )

Could I say that the test works? Did I miss something?

Original url: https://bitbucket.org/ixpesw/ixpeobssim/issues/115
Created on 2018-04-24T14:52:12.031306+00:00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant