Skip to content

[py3] took out all tests of python version#258

Merged
Didou09 merged 4 commits intodevelfrom
dropping-py2
Nov 20, 2019
Merged

[py3] took out all tests of python version#258
Didou09 merged 4 commits intodevelfrom
dropping-py2

Conversation

@lasofivec
Copy link
Copy Markdown
Collaborator

@lasofivec lasofivec commented Nov 19, 2019

Took out all lingering if sys.version[0]=='2':

@lasofivec lasofivec requested a review from Didou09 November 19, 2019 17:04
@lasofivec lasofivec self-assigned this Nov 19, 2019
@pep8speaks
Copy link
Copy Markdown

pep8speaks commented Nov 19, 2019

Hello @lasofivec! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-11-20 08:43:17 UTC

Copy link
Copy Markdown
Member

@Didou09 Didou09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question on insp, I could not find where it was defined

Comment thread tofu/geom/_comp.py
import scipy.integrate as scpintg

if sys.version[0] == "3":
from inspect import signature as insp
Copy link
Copy Markdown
Member

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 ?

Comment thread tofu/geom/_comp.py
@@ -1027,18 +1022,15 @@ def LOS_calc_signal(
D, u, dL, DL=DL, dLMode=dLMode, method=method, Test=Test
)
out = insp(ff)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

insp is called here

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry ! you are right ! fixed

Comment thread tofu/geom/_comp.py
from inspect import signature as insp
elif sys.version[0] == "2":
from inspect import getargspec as insp
from inspect import signature as insp
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrected !

@codecov-io
Copy link
Copy Markdown

codecov-io commented Nov 20, 2019

Codecov Report

Merging #258 into devel will increase coverage by 2.99%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##            devel     #258      +/-   ##
==========================================
+ Coverage   43.85%   46.85%   +2.99%     
==========================================
  Files          74       74              
  Lines       21462    24156    +2694     
==========================================
+ Hits         9412    11318    +1906     
- Misses      12050    12838     +788
Impacted Files Coverage Δ
tofu/tests/tests01_geom/tests01_GG.py 96.85% <ø> (+2.41%) ⬆️
tofu/__init__.py 80.64% <100%> (+1.23%) ⬆️
tofu/geom/_comp.py 60.52% <50%> (+0.43%) ⬆️
tofu/utils.py 55.68% <66.66%> (+6.96%) ⬆️
tofu/tests/tests09_tutorials/tests01_runall.py 65.59% <0%> (-0.69%) ⬇️
tofu/imas2tofu/_core.py 0.66% <0%> (-0.09%) ⬇️
tofu/tests/tests01_geom/tests03_core.py 90.34% <0%> (+0.25%) ⬆️
tofu/geom/_core.py 68.99% <0%> (+5.53%) ⬆️
tofu/geom/utils.py 49.36% <0%> (+5.78%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 190338e...17dbcb3. Read the comment docs.

@Didou09 Didou09 merged commit 2cc236b into devel Nov 20, 2019
@Didou09 Didou09 deleted the dropping-py2 branch November 20, 2019 09:15
@Didou09 Didou09 mentioned this pull request Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants