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

Pullrequest #42

Merged
merged 35 commits into from
Jun 30, 2015
Merged

Pullrequest #42

merged 35 commits into from
Jun 30, 2015

Conversation

gamaanderson
Copy link
Contributor

This is United Pull Request (#28 #37 #39 #40 and #41)

changes include but do not restrict to:

  • remove the example plug-ins
  • improve window placement in standard script
  • add -F option to open file directly, no dialog
  • change standard field from 'reflectivity' to pyart.config.get_field_name('reflectivity')
  • add test to avoid breaking down doe to incorrect field
  • calculate_attenuation and phase_proc_lp plugins name to capital letters
  • add frames to the Menu layout elements
  • add option to have plugins in Menu or as Independent windows
  • clean radar_plot.py from historical "garbage"
  • remove --rhi and --airborne command line options
  • partial support to grid, including mapper plug-in and map_to_grid script
  • add -s command line option to define the script to execute
  • over all changes in documentation build with sphynx

@nguy you may merge this one

Anderson Gama and others added 30 commits May 13, 2015 16:49
Conflicts:
	artview/components/menu.py
	artview/components/plot.py
	execute_two.py
    remove the example plugins
    improve window placement in standard script
    add -F option to open file directly, no dialog
    change standard field from 'reflectivity' to
        pyart.config.get_field_name('reflectivity')
    add test to avoid breaking down dow to incorrect field
    calculate_attenuation and phase_proc_lp plugins name to
        capital letters
…nto pullrequest

Conflicts:
	artview/components/plot_radar.py
	artview/components/tools.py
…nto pullrequest

Conflicts:
	artview/components/__init__.py
	artview/components/plot_radar.py
… pullrequest

Conflicts:
	artview/__main__.py
	artview/components/menu.py
	artview/components/plot_radar.py
	artview/core/common.py
	artview/parser.py
	artview/plugins/exemple1.py
	artview/plugins/exemple2.py
	setup.py
… into pullrequest

Conflicts:
	artview/__init__.py
This was referenced Jun 29, 2015
@gamaanderson
Copy link
Contributor Author

Documentation may be found here, as soon as this is merge you may found it also here. This is not the way github suggest doing, but I couldn't get the suggested way to work.

@gamaanderson gamaanderson mentioned this pull request Jun 29, 2015
msg = "This is not a recognized radar file!"
radar_warning = False
grid_warning = False
if self.mode in ("radar","all"):
Copy link
Owner

Choose a reason for hiding this comment

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

What does "all" mean 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.

radar and grid

Copy link
Owner

Choose a reason for hiding this comment

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

Gotcha.

if ntilt < 0:
ntilt = len(self.rTilts)-1
elif ntilt >= len(self.rTilts):
ntilt = 0
self.Vtilt.change(ntilt)
Copy link
Owner

Choose a reason for hiding this comment

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

What's going on with the if statement here? When would ntilt be less than 0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will and is happening when pressing down even if tilt already equal 0. Note this line has no test for that. The only reason we haven't notice this is because python is saving us by allowing negative index, now I'm just doing this looping around explicit, so I don't have to test Vtilt. Notice I have a list with valid values for the Vvariables, and Vtilt shouldn’t have negative values.

Copy link
Owner

Choose a reason for hiding this comment

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

Interesting, I had not caught this.

@nguy
Copy link
Owner

nguy commented Jun 30, 2015

Okay, I'm going to accept the changes. I've found a couple little bugs that I'll start as issues.
Otherwise, I think this looks great @gamaanderson !

@nguy nguy merged commit 77c6b94 into nguy:master Jun 30, 2015
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.

2 participants