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
Add plot azimuthal cross-section to radardisplay class. #405
Conversation
@@ -1041,6 +1180,35 @@ def _get_ray_data(self, field, ray, mask_tuple, filter_transitions): | |||
|
|||
return data | |||
|
|||
def _get_azimuth_rhi_data_x_y_z(self, field, target_azimuth, | |||
edges,mask_tuple): |
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 style issue:
This line is not properly aligned with "self" in the line above and there should be a space after the comma.
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.
Changed
This looks really great @nguy, thanks for adding this. A few comments, ideas:
Again thanks for the code! |
|
||
if mask_tuple is not None: | ||
mask_field, mask_value = mask_tuple | ||
mdata = self.fields[mask_field]['data'][ray] |
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.
ray is not defined in this scope and I don't believe a slice is required here at all.
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.
You are correct, good catch. The dangers of copy and paste!
@jjhelmus Thanks for the tip, I wondered why I always seemed to have these issue! I had I'll take a look at the test files you mention and see what I can do. |
Fix typos. Add test unit.
Let me know if that test works for you. Other comments are added. |
I use vim/Gvim/Macvim depending on the computer within reach and my mood. I have the following in my .vimrc for removing whitespace. It does it automatically when .py files are saved and I can fit F5 to do manually.
I also put a bunch of other stuff in my .vimrc and .gvimrc files, all of them are in my dotfiles repository |
Looks good to me. I'll merge this once the AppVeyor tests pass. Thanks again @nguy. |
Add plot azimuthal cross-section to radardisplay class.
You bet, I figured I could get this in quickly and give myself a feeling of accomplishment this week. :) |
Nice work @nguy !! -sent from a mobile device-
|
This PR is in response to Issue #398