-
Notifications
You must be signed in to change notification settings - Fork 8
fix(explorers): Remove code redundancy #204
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
Conversation
| ], | ||
| type="number", | ||
| ) | ||
| ScalingControls().create() |
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.
weird call
| click=(update_rendering, "[true]"), | ||
| ) | ||
|
|
||
| UpdateButton(update_rendering).create() |
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.
weird call
| ) | ||
| # Axis slicing controls | ||
| axis_controls = AxisSlicingControls() | ||
| for _component in axis_controls.create(): |
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.
not sure you need the for loop. Also I don't get the .create() call...
| type="number", | ||
| ) | ||
| # Slice stepping controls | ||
| SliceSteppingControls().create() |
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.
weird call
| ) | ||
| # Axis slicing controls | ||
| axis_controls = AxisSlicingControls() | ||
| for _component in axis_controls.create(): |
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.
weird
| type="number", | ||
| ) | ||
| # Slice stepping controls | ||
| SliceSteppingControls().create() |
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.
weird
| ], | ||
| type="number", | ||
| ) | ||
| ScalingControls().create() |
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.
weird
| click=(update_rendering, "[true]"), | ||
| ) | ||
|
|
||
| UpdateButton(update_rendering).create() |
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.
weird
| self.max_time_width = max_time_width | ||
| self.max_time_index_width = max_time_index_width | ||
|
|
||
| def create(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.
why do you need a create() method?
| self.scale_y = scale_y | ||
| self.scale_z = scale_z | ||
|
|
||
| def create(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.
why?
| self.data_arrays = data_arrays | ||
| self.dirty_data = dirty_data | ||
|
|
||
| def create(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.
why?
| self.dataset_bounds = dataset_bounds | ||
| self.axis_lower = axis.lower() | ||
|
|
||
| def create(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.
Why?
| for i, axis in enumerate(XYZ) | ||
| ] | ||
|
|
||
| def create(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.
Why?
| def __init__(self, axis_names="axis_names"): | ||
| self.axis_names = axis_names | ||
|
|
||
| def create(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.
Why?
| ], | ||
| type="number", | ||
| ) | ||
| ScalingControls().create() |
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.
weird
| click=(update_rendering, "[true]"), | ||
| ) | ||
|
|
||
| UpdateButton(update_rendering).create() |
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.
weird
|
Looks good except that I don't understand the split between the constructor and the create method? Is the constructor supposed to already create the object/ui? |
|
Closing this as these changes are redundant |
No description provided.