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

Forman 222 rasterize features into dataset #227

Merged
merged 5 commits into from
Nov 11, 2019

Conversation

forman
Copy link
Member

@forman forman commented Nov 11, 2019

@forman forman self-assigned this Nov 11, 2019
Copy link
Contributor

@dzelge dzelge left a comment

Choose a reason for hiding this comment

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

Wäre dann vielleicht nett, die lats and longs in den Testmethodennamen auch umzubenennen. Vielleicht jetzt aber nicht so wichtig.

@codecov-io
Copy link

Codecov Report

Merging #227 into master will increase coverage by 0.04%.
The diff coverage is 92.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #227      +/-   ##
==========================================
+ Coverage   86.12%   86.16%   +0.04%     
==========================================
  Files          78       78              
  Lines        7453     7634     +181     
==========================================
+ Hits         6419     6578     +159     
- Misses       1034     1056      +22
Impacted Files Coverage Δ
xcube/core/xarray.py 83.67% <100%> (ø) ⬆️
xcube/core/verify.py 85.26% <84.84%> (-5.22%) ⬇️
xcube/core/geom.py 93.06% <92.06%> (-0.2%) ⬇️
xcube/core/new.py 90.1% <93.75%> (-2.2%) ⬇️
xcube/core/schema.py 95.21% <94.05%> (-3.77%) ⬇️

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 a2e4bd4...c736756. Read the comment docs.

@forman
Copy link
Member Author

forman commented Nov 11, 2019

Wäre dann vielleicht nett, die lats and longs in den Testmethodennamen auch umzubenennen. Vielleicht jetzt aber nicht so wichtig.

Sag wo, ich mach das.

@@ -107,11 +107,11 @@ def test_get_dataset_indexes_without_bounds(self):
self._assert_get_dataset_indexes_works(dataset)

def test_get_dataset_indexes_with_bounds_inverse_lat(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
def test_get_dataset_indexes_with_bounds_inverse_lat(self):
def test_get_dataset_indexes_with_bounds_inverse_y(self):

Copy link
Member Author

Choose a reason for hiding this comment

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

lat is fine here, because get_dataset_indexes is still aware of lat, not y.

@@ -107,11 +107,11 @@ def test_get_dataset_indexes_without_bounds(self):
self._assert_get_dataset_indexes_works(dataset)

def test_get_dataset_indexes_with_bounds_inverse_lat(self):
dataset = new_cube(width=360, height=180, inverse_lat=True, drop_bounds=False)
dataset = new_cube(width=360, height=180, inverse_y=True, drop_bounds=False)
self._assert_get_dataset_indexes_works(dataset, inverse_lat=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
self._assert_get_dataset_indexes_works(dataset, inverse_lat=True)
self._assert_get_dataset_indexes_works(dataset, inverse_y=True)

Copy link
Member Author

Choose a reason for hiding this comment

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

Same here

self._assert_get_dataset_indexes_works(dataset, inverse_lat=True)

def test_get_dataset_indexes_without_bounds_inverse_lat(self):
dataset = new_cube(width=360, height=180, inverse_lat=True, drop_bounds=True)
dataset = new_cube(width=360, height=180, inverse_y=True, drop_bounds=True)
self._assert_get_dataset_indexes_works(dataset, inverse_lat=True)

def _assert_get_dataset_indexes_works(self, dataset, inverse_lat=False):
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
def _assert_get_dataset_indexes_works(self, dataset, inverse_lat=False):
def _assert_get_dataset_indexes_works(self, dataset, inverse_y=False):

Copy link
Member Author

Choose a reason for hiding this comment

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

Same here...

self._assert_get_dataset_indexes_works(dataset, inverse_lat=True)

def test_get_dataset_indexes_without_bounds_inverse_lat(self):
dataset = new_cube(width=360, height=180, inverse_lat=True, drop_bounds=True)
dataset = new_cube(width=360, height=180, inverse_y=True, drop_bounds=True)
self._assert_get_dataset_indexes_works(dataset, inverse_lat=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
self._assert_get_dataset_indexes_works(dataset, inverse_lat=True)
self._assert_get_dataset_indexes_works(dataset, inverse_y=True)

Copy link
Member Author

Choose a reason for hiding this comment

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

and here :)

Copy link
Contributor

@dzelge dzelge left a comment

Choose a reason for hiding this comment

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

See in comments.

@forman forman merged commit 7b266a1 into master Nov 11, 2019
@forman forman deleted the forman-222-rasterize_features_into_dataset branch November 21, 2019 10:30
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