Skip to content

BUG #26: If masking reduces the bounds of a dataset, plots look incom… - #27

Merged
doutriaux1 merged 1 commit into
masterfrom
masked-dataset-bounds
Nov 2, 2016
Merged

doutriaux1 merged 1 commit into
masterfrom
masked-dataset-bounds

Conversation

@danlipsa

Copy link
Copy Markdown
Contributor

…plete.

We use 'vtk_dataset_bounds_no_mask', the dataset bounds before masking
instead of the dataset bounds for fitToViewport.

@danlipsa

danlipsa commented Oct 26, 2016 •

Copy link
Copy Markdown
Contributor Author

Data and baselines:
CDAT/uvcdat-testdata#159
Tests
CDAT/cdat#2134

@danlipsa

Copy link
Copy Markdown
Contributor Author

@doutriaux1 @aashish24 @sankhesh Please review.

@danlipsa

danlipsa commented Oct 26, 2016 •

Copy link
Copy Markdown
Contributor Author

@doutriaux1 It turned out that what I thought was a bug in VTK was a feature. 😄 So no VTK update is required for this.

@sankhesh sankhesh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM except the debug variable value

Comment thread vcs/vcs2vtk.py Outdated
import sys
import numbers

_DEBUG_VTK = True

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't _DEBUG_VTK be set to False?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@sankhesh Thanks, I will remove the debug code.

…plete.

We use 'vtk_dataset_bounds_no_mask', the dataset bounds before masking
instead of the dataset bounds for fitToViewport.
@danlipsa
danlipsa force-pushed the masked-dataset-bounds branch from 6dde1e0 to 0f98650 Compare October 27, 2016 13:18
@danlipsa

Copy link
Copy Markdown
Contributor Author

@doutriaux1 @aashish24 Ready to merge?

@doutriaux1

Copy link
Copy Markdown
Contributor

i need to run the tests and look at it, sorry I'm on another project today.

@aashish24

Copy link
Copy Markdown
Contributor

@danlipsa looks reasonable to me.

Comment thread vcs/VTKPlots.py
ren = kargs["renderer"]

vtk_backend_grid = kargs.get("vtk_backend_grid", None)
vtk_dataset_bounds_no_mask = kargs.get("vtk_dataset_bounds_no_mask", None)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

None is returned by default but I am okay with more specifics.

@aashish24

Copy link
Copy Markdown
Contributor

@sankhesh @doutriaux1 can we merge this branch?

@doutriaux1

Copy link
Copy Markdown
Contributor

let me run it, sorry about that.

@doutriaux1
doutriaux1 merged commit cf99af4 into master Nov 2, 2016
@doutriaux1
doutriaux1 deleted the masked-dataset-bounds branch November 2, 2016 22:59
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.

4 participants