-
Notifications
You must be signed in to change notification settings - Fork 13
[py3] took out all tests of python version #258
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,11 +10,7 @@ | |
| import numpy as np | ||
| import scipy.interpolate as scpinterp | ||
| import scipy.integrate as scpintg | ||
|
|
||
| if sys.version[0] == "3": | ||
| from inspect import signature as insp | ||
| elif sys.version[0] == "2": | ||
| from inspect import getargspec as insp | ||
| from inspect import signature as insp | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. corrected ! |
||
|
|
||
| # ToFu-specific | ||
| try: | ||
|
|
@@ -1027,18 +1023,15 @@ def LOS_calc_signal( | |
| D, u, dL, DL=DL, dLMode=dLMode, method=method, Test=Test | ||
| ) | ||
| out = insp(ff) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. insp is called here
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sorry ! you are right ! fixed |
||
| if sys.version[0] == "3": | ||
| N = np.sum( | ||
| [ | ||
| ( | ||
| pp.kind == pp.POSITIONAL_OR_KEYWORD | ||
| and pp.default is pp.empty | ||
| ) | ||
| for pp in out.parameters.values() | ||
| ] | ||
| ) | ||
| else: | ||
| N = len(out.args) | ||
| N = np.sum( | ||
| [ | ||
| ( | ||
| pp.kind == pp.POSITIONAL_OR_KEYWORD | ||
| and pp.default is pp.empty | ||
| ) | ||
| for pp in out.parameters.values() | ||
| ] | ||
| ) | ||
|
|
||
| if N == 1: | ||
| Vals = ff(Pts) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is suppressed too, where is insp defined ?