Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MLAir
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esde
machine-learning
MLAir
Commits
0efbc11a
Commit
0efbc11a
authored
4 years ago
by
leufen1
Browse files
Options
Downloads
Patches
Plain Diff
fixed tests
parent
a1cd45a7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!253
include current develop
,
!252
Resolve "release v1.3.0"
,
!232
Resolve "Make IntelliO3-ts v1.0 available as reference"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mlair/run_modules/pre_processing.py
+3
-3
3 additions, 3 deletions
mlair/run_modules/pre_processing.py
test/test_run_modules/test_pre_processing.py
+5
-1
5 additions, 1 deletion
test/test_run_modules/test_pre_processing.py
with
8 additions
and
4 deletions
mlair/run_modules/pre_processing.py
+
3
−
3
View file @
0efbc11a
...
...
@@ -13,7 +13,7 @@ import numpy as np
import
pandas
as
pd
from
mlair.data_handler
import
DataCollection
,
AbstractDataHandler
from
mlair.helpers
import
TimeTracking
from
mlair.helpers
import
TimeTracking
,
to_list
from
mlair.configuration
import
path_config
from
mlair.helpers.join
import
EmptyQueryResult
from
mlair.run_modules.run_environment
import
RunEnvironment
...
...
@@ -334,8 +334,8 @@ class PreProcessing(RunEnvironment):
data if required.
"""
logging
.
info
(
"
Searching for competitors to be prepared for use.
"
)
competitors
=
self
.
data_store
.
get_default
(
"
competitors
"
,
default
=
None
)
if
competitors
is
not
None
:
competitors
=
to_list
(
self
.
data_store
.
get_default
(
"
competitors
"
,
default
=
[])
)
if
len
(
competitors
)
>
0
:
for
competitor_name
in
competitors
:
if
competitor_name
.
lower
()
==
"
IntelliO3-ts-v1
"
.
lower
():
logging
.
info
(
"
Prepare IntelliO3-ts-v1 model
"
)
...
...
This diff is collapsed.
Click to expand it.
test/test_run_modules/test_pre_processing.py
+
5
−
1
View file @
0efbc11a
...
...
@@ -46,8 +46,12 @@ class TestPreProcessing:
with
PreProcessing
():
assert
caplog
.
record_tuples
[
0
]
==
(
'
root
'
,
20
,
'
PreProcessing started
'
)
assert
caplog
.
record_tuples
[
1
]
==
(
'
root
'
,
20
,
'
check valid stations started (preprocessing)
'
)
assert
caplog
.
record_tuples
[
-
1
]
==
(
'
root
'
,
20
,
PyTestRegex
(
r
'
run for \d+:\d+:\d+ \(hh:mm:ss\) to check 5
'
assert
caplog
.
record_tuples
[
-
3
]
==
(
'
root
'
,
20
,
PyTestRegex
(
r
'
run for \d+:\d+:\d+ \(hh:mm:ss\) to check 5
'
r
'
station\(s\). Found 5/5 valid stations.
'
))
assert
caplog
.
record_tuples
[
-
2
]
==
(
'
root
'
,
20
,
"
Searching for competitors to be prepared for use.
"
)
assert
caplog
.
record_tuples
[
-
1
]
==
(
'
root
'
,
20
,
"
No preparation required because no competitor was provided
"
"
to the workflow.
"
)
RunEnvironment
().
__del__
()
def
test_run
(
self
,
obj_with_exp_setup
):
...
...
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