-
Notifications
You must be signed in to change notification settings - Fork 65
851 preserve labels #880
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
Merged
Merged
851 preserve labels #880
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
97b8b5d
some bug fix to run Jeff test bug
doutriaux1 c257afb
Disable level compression in banded contour filter.
ed2a08c
Add regression test.
ddf2804
Update VTKPlots.py
doutriaux1 15017b8
Update VTKPlots.py
doutriaux1 7d53ab3
Merge branch 'master' into 851-preserve-labels
doutriaux1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,6 @@ | |
| p = argparse.ArgumentParser(description="Basic gm testing code for vcs") | ||
| p.add_argument("--source", dest="src", help="source image file") | ||
| p.add_argument("--gm_type", dest="gm", help="gm to test") | ||
| p.add_argument("--mask", dest="mask", action="store_true",help="mask out part of data") | ||
| p.add_argument("--show", dest="show", action="store_true",help="show plots on screen (no bg)") | ||
| p.add_argument("--projection-type", dest="projtype", default="default", help="use a specific projection type") | ||
| p.add_argument("--lat1", dest="lat1", default=0, type=float, help="First latitude") | ||
|
|
@@ -16,6 +15,10 @@ | |
| p.add_argument("--zero", dest="zero", action="store_true", help="Set the data to zero everywhere") | ||
| p.add_argument("--keep", dest="keep", action="store_true",help="Save image, even if baseline matches.") | ||
|
|
||
| dataMods = p.add_mutually_exclusive_group() | ||
| dataMods.add_argument("--mask", dest="mask", action="store_true",help="mask out part of data") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no worries I see it here. |
||
| dataMods.add_argument("--bigvalues", dest="bigvalues", action="store_true",help="replace some of the data with 1e40") | ||
|
|
||
| args = p.parse_args(sys.argv[1:]) | ||
|
|
||
| gm_type= args.gm | ||
|
|
@@ -87,19 +90,27 @@ | |
| gm.mesh=True | ||
| if args.mask: | ||
| s=MV2.masked_less(s,1150.) | ||
| elif args.bigvalues: | ||
| s[s < 1150] = 1e40 | ||
| if args.zero: | ||
| s-=s | ||
| else: | ||
| s=f("clt",**xtra) | ||
| if args.mask: | ||
| s=MV2.masked_greater(s,78.) | ||
| elif args.bigvalues: | ||
| s[s > 78] = 1e40 | ||
| if gm_type in ["1d","yxvsx","xyvsy","xvsy","scatter"]: | ||
| s = s(latitude=(20,20,"cob"),longitude=(112,112,"cob"),squeeze=1) | ||
| s2=MV2.sin(s) | ||
| if args.zero: | ||
| s2-=s2 | ||
| if args.zero: | ||
| s-=s | ||
|
|
||
| if args.bigvalues: | ||
| gm.levels = [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 1.e36] | ||
|
|
||
| if gm_type=="vector": | ||
| x.plot(u,v,gm,bg=bg) | ||
| elif gm_type in ["scatter","xvsy"]: | ||
|
|
@@ -109,6 +120,8 @@ | |
| fnm = "test_vcs_basic_%s" % gm_type.lower() | ||
| if args.mask: | ||
| fnm+="_masked" | ||
| elif args.bigvalues: | ||
| fnm+="_bigvalues" | ||
| if args.projtype!="default": | ||
| fnm+="_%s_proj" % args.projtype | ||
| if args.zero: | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
are you sure about this @dlonie don't we use this option for some tests?