-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compare figures instead of images (#236)
* compare figures instead of images this is more robust to changes in mpl-styling * more test updates * update gitignore for new tests
- Loading branch information
Showing
12 changed files
with
67 additions
and
79 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -136,3 +136,6 @@ _build | |
autoapi | ||
|
||
_version.py | ||
|
||
# mpl testing | ||
result_images/ |
This file contains 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
__all__ = [ | ||
"set_param_values", | ||
] | ||
|
||
|
||
def set_param_values(controls, params): | ||
""" | ||
A bit sketch because it set the index for ipywidgets | ||
and direct value for mpl sliders. big TODO there. | ||
""" | ||
for p, v in params.items(): | ||
slider = controls.controls[p] | ||
if "Box" in str(slider.__class__): | ||
for obj in slider.children: | ||
if "Slider" in str(obj.__class__): | ||
obj.value = v | ||
else: | ||
slider.set_val(v) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains 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 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