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
8aa3cb42
Commit
8aa3cb42
authored
3 months ago
by
Julius
Browse files
Options
Downloads
Patches
Plain Diff
trying fix for mypy error
parent
8d7e49b4
No related branches found
No related tags found
1 merge request
!36
Resolve "Automatic Property Testing"
Pipeline
#1604423
failed
3 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests_automatic/test_surface3d_automatic.py
+1
-10
1 addition, 10 deletions
tests_automatic/test_surface3d_automatic.py
with
1 addition
and
10 deletions
tests_automatic/test_surface3d_automatic.py
+
1
−
10
View file @
8aa3cb42
...
...
@@ -8,15 +8,6 @@ from matplotlib import pyplot as plt
from
plot_serializer.matplotlib.serializer
import
MatplotlibSerializer
# surface strategies are hard to do, as they all need the same dimensions
x_strategy
=
st
.
one_of
(
arrays
(
dtype
=
np
.
float64
,
shape
=
(
st
.
integers
(
min_value
=
1
,
max_value
=
10
),
st
.
integers
(
min_value
=
1
,
max_value
=
10
)),
)
)
@st.composite
def
matrix_triplet_strategy
(
draw
,
min_dim
=
1
,
max_dim
=
10
,
min_value
=
0
,
max_value
=
100
):
# type: ignore
...
...
@@ -29,7 +20,7 @@ def matrix_triplet_strategy(draw, min_dim=1, max_dim=10, min_value=0, max_value=
min_size
=
rows
,
max_size
=
rows
,
),
arrays
(
dtype
=
np
.
int64
,
shape
=
(
rows
,
cols
)),
arrays
(
dtype
=
np
.
int64
,
shape
=
(
rows
,
cols
)),
# type: ignore
)
matrix1
=
draw
(
matrix_strategy
)
...
...
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