Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plot Serializer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RDM Tools
Plot Serializer
Commits
07ac7ddd
Commit
07ac7ddd
authored
3 months ago
by
Julius
Browse files
Options
Downloads
Patches
Plain Diff
fixed unit test error, unit tests might need a big overhaul when changing all kwargs.get
parent
665602c1
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!36
Resolve "Automatic Property Testing"
Pipeline
#1596270
failed
3 months ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plot_serializer/matplotlib/serializer.py
+1
-1
1 addition, 1 deletion
plot_serializer/matplotlib/serializer.py
tests/test_hist_plot.py
+4
-1
4 additions, 1 deletion
tests/test_hist_plot.py
with
5 additions
and
2 deletions
plot_serializer/matplotlib/serializer.py
+
1
−
1
View file @
07ac7ddd
...
...
@@ -22,7 +22,7 @@ from matplotlib.lines import Line2D
from
matplotlib.patches
import
Polygon
from
mpl_toolkits.mplot3d.art3d
import
Path3DCollection
,
Poly3DCollection
from
mpl_toolkits.mplot3d.axes3d
import
Axes3D
as
MplAxes3D
from
numpy
import
isin
,
ndarray
from
numpy
import
ndarray
from
plot_serializer.model
import
(
Axis
,
...
...
This diff is collapsed.
Click to expand it.
tests/test_hist_plot.py
+
4
−
1
View file @
07ac7ddd
...
...
@@ -109,6 +109,9 @@ def test_hist_plot(
update_tests
=
request
.
config
.
getoption
(
"
--update-tests
"
)
_
,
ax
=
serializer
.
subplots
()
if
bins
is
None
and
cumulative
is
None
and
density
is
None
:
# giving arguments the none value throws errors, might need a test overhaul overall
ax
.
hist
(
x
)
ax
.
hist
(
x
,
bins
=
bins
,
...
...
@@ -126,7 +129,7 @@ def test_hist_plot(
ax
.
set_ylabel
(
ylabel
)
if
metadata
:
ax
.
hist
(
x
,
bins
=
bins
,
color
=
color
,
label
=
label
,
cumulative
=
cumulative
,
density
=
density
)
ax
.
hist
(
x
)
serializer
.
add_custom_metadata_figure
(
metadata
)
serializer
.
add_custom_metadata_plot
(
metadata
,
plot_selector
=
0
)
serializer
.
add_custom_metadata_axis
(
metadata
,
axis
=
"
y
"
,
plot_selector
=
0
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment