Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lucas Miranda
deepOF
Commits
48ef8ea8
Commit
48ef8ea8
authored
Mar 29, 2021
by
lucas_miranda
Browse files
Adds a notebook that trains a CNN model for recognising the arena
parent
6c840915
Pipeline
#97071
passed with stages
in 16 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/test_data.py
View file @
48ef8ea8
...
...
@@ -22,12 +22,12 @@ import pytest
@
settings
(
deadline
=
None
)
@
given
(
table_type
=
st
.
integers
(
min_value
=
0
,
max_value
=
2
),
table_type
=
st
.
integers
(
min_value
=
0
,
max_value
=
1
),
arena_type
=
st
.
integers
(
min_value
=
0
,
max_value
=
1
),
)
def
test_project_init
(
table_type
,
arena_type
):
table_type
=
[
".h5"
,
".csv"
,
".foo"
][
table_type
]
table_type
=
[
".h5"
,
".csv"
][
table_type
]
arena_type
=
[
"circular"
,
"foo"
][
arena_type
]
if
arena_type
==
"foo"
:
...
...
@@ -53,11 +53,6 @@ def test_project_init(table_type, arena_type):
assert
type
(
prun
)
==
deepof
.
data
.
project
assert
type
(
prun
.
load_tables
(
verbose
=
True
))
==
tuple
assert
type
(
prun
.
get_scale
)
==
np
.
ndarray
print
(
prun
)
elif
table_type
==
".foo"
and
arena_type
!=
"foo"
:
with
pytest
.
raises
(
NotImplementedError
):
prun
.
load_tables
(
verbose
=
True
)
def
test_project_properties
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment