Skip to content

Updated tests for resampling Generic Map and some documentation in the Sunpy/data/test. #2011

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

Closed
wants to merge 10 commits into from

Conversation

prateekiiest
Copy link
Contributor

@Cadair
I have updated the keys for generic map (included naxis1 and naxis2).
This PR is done to clear out the error causing in PR #2010

@pep8speaks
Copy link

pep8speaks commented Feb 27, 2017

Hello @prateekiiest! Thanks for updating the PR.

Line 114:1: E302 expected 2 blank lines, found 1
Line 184:5: E303 too many blank lines (2)
Line 184:37: E231 missing whitespace after ','

Line 512:1: E302 expected 2 blank lines, found 1
Line 519:1: E302 expected 2 blank lines, found 1
Line 828:101: E501 line too long (110 > 100 characters)
Line 829:101: E501 line too long (109 > 100 characters)
Line 860:68: E251 unexpected spaces around keyword / parameter equals
Line 860:70: E251 unexpected spaces around keyword / parameter equals
Line 861:67: E251 unexpected spaces around keyword / parameter equals
Line 861:69: E251 unexpected spaces around keyword / parameter equals

Line 128:19: E128 continuation line under-indented for visual indent
Line 131:19: E128 continuation line under-indented for visual indent
Line 155:33: E128 continuation line under-indented for visual indent
Line 177:1: E302 expected 2 blank lines, found 1
Line 180:1: E302 expected 2 blank lines, found 1
Line 183:1: E302 expected 2 blank lines, found 1
Line 186:1: E302 expected 2 blank lines, found 1
Line 189:1: E302 expected 2 blank lines, found 1
Line 192:1: E302 expected 2 blank lines, found 1
Line 247:101: E501 line too long (108 > 100 characters)
Line 407:101: E501 line too long (111 > 100 characters)
Line 423:101: E501 line too long (140 > 100 characters)
Line 425:9: E731 do not assign a lambda expression, use a def
Line 482:30: E221 multiple spaces before operator
Line 508:101: E501 line too long (110 > 100 characters)
Line 533:101: E501 line too long (136 > 100 characters)
Line 702:25: E128 continuation line under-indented for visual indent
Line 703:13: E124 closing bracket does not match visual indentation
Line 709:55: W291 trailing whitespace
Line 710:36: W291 trailing whitespace
Line 720:54: W291 trailing whitespace
Line 751:1: E303 too many blank lines (3)
Line 834:1: E302 expected 2 blank lines, found 0
Line 841:1: E305 expected 2 blank lines after class or function definition, found 1
Line 843:1: E302 expected 2 blank lines, found 1
Line 850:1: E305 expected 2 blank lines after class or function definition, found 1
Line 860:5: E265 block comment should start with '# '

Comment last updated on March 15, 2017 at 13:34 Hours UTC

Copy link
Contributor Author

@prateekiiest prateekiiest left a comment

Choose a reason for hiding this comment

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

Added some documentation for sunpy test database

@prateekiiest prateekiiest changed the title Updated tests for resampling Generic Map. Updated tests for resampling Generic Map and some documentation in the Sunpy/data/test. Mar 4, 2017
@prateekiiest
Copy link
Contributor Author

@Cadair I added some documentation related to sunpy.data.test along with issue #732 .
Pls tell me if something extra needs to be documented here, then I will send further PRs for other Sunpy.databse.test

@@ -705,13 +705,17 @@ def download(self, method, url, dw, callback, errback, *args):

@staticmethod
def by_provider(response):
"""Returns a dictionary of provider corresponding
Copy link
Member

Choose a reason for hiding this comment

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

This should not be formatted like this, it's a docstring not code.

Something like this would be correct. In general the triple quote marks """ should be on their own lines.

def by_provider(response):
    """
    Returns a dictionary of provider corresponding
    to records in the response. 
    """

@prateekiiest
Copy link
Contributor Author

OK :)

Copy link
Contributor Author

@prateekiiest prateekiiest left a comment

Choose a reason for hiding this comment

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

Updated the quotation marks.

@@ -365,7 +365,7 @@ def test_resample_metadata(generic_map, sample_method, new_dimensions):
assert resampled_map.meta['crval2'] == generic_map.center.y.value
for key in generic_map.meta:
if key not in ('cdelt1', 'cdelt2', 'crpix1', 'crpix2',
'crval1', 'crval2'):
'crval1', 'crval2', 'naxis1', 'naxis2'):
Copy link
Member

Choose a reason for hiding this comment

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

Why is this change here? As I commented in #2010 it should not be needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, I had changed these things in my forked repo and I didn't delete the previous changes. As a result, when I am opened a PR for this issue, all the previous changes are being shown with it.

Copy link
Contributor Author

@prateekiiest prateekiiest left a comment

Choose a reason for hiding this comment

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

testmap , naxis1,naxis2 removed from key values

_config.yml Outdated
@@ -0,0 +1 @@
theme: jekyll-theme-merlot
Copy link
Member

Choose a reason for hiding this comment

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

errrr, why is this here?!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Cadair ,Some patch problems might have occurred.

Copy link
Contributor Author

@prateekiiest prateekiiest left a comment

Choose a reason for hiding this comment

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

updating in _config.yml in sunpy.github.io issues a file change here due to same patch work.

My bad.
Sorry @Cadair

_config.yml Outdated
@@ -0,0 +1 @@
theme: jekyll-theme-merlot
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Cadair ,Some patch problems might have occurred.

@@ -0,0 +1 @@

Copy link
Member

Choose a reason for hiding this comment

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

This file should not be here at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, its a file in the sunpy.github.io in the website making repository.
You can close this PR.
2 or 3 PRs has been collectively addressed here
I will send separate PRs for the other related issues :)

@@ -705,13 +705,21 @@ def download(self, method, url, dw, callback, errback, *args):

@staticmethod
def by_provider(response):
"""
Copy link
Member

Choose a reason for hiding this comment

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

You just opened another PR with this change in, it should only be in one place.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, I have sent a seperate PR for this. This PR is all jumbled up with other PRs, due to some patch mismatch. You can close this PR.

@Cadair Cadair closed this Mar 15, 2017
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

Successfully merging this pull request may close these issues.

3 participants