Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SMART
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UNI-KLU
SMART
Commits
54a425e8
Commit
54a425e8
authored
Apr 01, 2020
by
Alexander Lercher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed relative path for test
parent
cdfe4fc0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
testing.py
bin/testing.py
+2
-2
clustering_config.py
...croservice/app/processing/clustering/clustering_config.py
+3
-1
No files found.
bin/testing.py
View file @
54a425e8
...
...
@@ -4,7 +4,7 @@ import importlib.util
import
pathlib
ROOT
=
pathlib
.
Path
(
__file__
)
.
parent
.
parent
.
absolute
()
TESTS_FOLDER_NAME
=
"/tests"
TESTS_FOLDER_NAME
=
os
.
path
.
normpath
(
"/tests"
)
print
(
"
\n
Searching for tests at the path: "
+
str
(
ROOT
))
...
...
@@ -14,7 +14,7 @@ for (dirname, dirs, files) in os.walk(ROOT):
#I assume all the tests are placed in a folder named "tests"
if
(
TESTS_FOLDER_NAME
in
str
(
dirname
))
\
and
not
(
f
"{TESTS_FOLDER_NAME}
/
"
in
str
(
dirname
))
\
and
not
(
f
"{TESTS_FOLDER_NAME}
{os.path.normpath('/')}
"
in
str
(
dirname
))
\
and
not
(
"venv"
in
str
(
dirname
)):
try
:
print
(
f
"Executing tests in {dirname}"
)
...
...
src/data-hub/community-detection-microservice/app/processing/clustering/clustering_config.py
View file @
54a425e8
import
yaml
from
typing
import
Generator
from
pathlib
import
Path
### init logging ###
import
logging
...
...
@@ -8,11 +9,12 @@ LOG_FORMAT = (
logging
.
basicConfig
(
level
=
logging
.
INFO
,
format
=
LOG_FORMAT
)
LOGGER
=
logging
.
getLogger
(
__name__
)
PROJECT_ROOT
=
Path
(
__file__
)
.
parent
.
parent
.
parent
class
ClusteringConfig
:
'''Contains the configuration for the clustering algorithm defined in configs/clustering.yaml.'''
config_path
=
'
configs/clustering.yaml'
config_path
=
f
'{PROJECT_ROOT}/
configs/clustering.yaml'
config
:
dict
=
None
def
__init__
(
self
):
...
...
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