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
Fix bugs that caused bricks to be larger than bricksize. #84
Conversation
…ith sizes larger than desired bricksize.
… pole if bricksize does not evenly divide 180 degrees. Also make comments in test case reflect that the tests now pass
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.
Just a few minor changes.
@@ -9,9 +9,13 @@ Change Log | |||
in an installed package, as opposed to a git checkout (PR `#80`_). | |||
* Fixed bug in :meth:`desiutil.brick.Bricks.brick_radec` handling scalar inputs | |||
(PR `#81`_). | |||
* Fixed bugs that could cause bricks to be slightly too big, and that |
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.
@@ -85,6 +85,43 @@ def test_brickvertices_wrap(self): | |||
self.assertEqual(np.max(b1[:,0])-np.min(b1[:,0]), 360.) | |||
self.assertTrue(np.all(b1[:,1] >= -90.)) | |||
|
|||
def test_uneven_bricksize(self): |
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.
Please add a __doc__
string.
One non-critical test is stalled, merging anyway. |
Fixes some implicit assumptions that bricksize evenly divides 180 degrees: