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
b0e3117f
Commit
b0e3117f
authored
Jan 11, 2021
by
Alexander Lercher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small changes for time slicing
parent
7e767cc1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
timeslice.py
...stage-discovery-microservice/app/db/entities/timeslice.py
+1
-1
run_time_slicing.py
...role-stage-discovery-microservice/app/run_time_slicing.py
+4
-0
No files found.
src/data-hub/role-stage-discovery-microservice/app/db/entities/timeslice.py
View file @
b0e3117f
...
...
@@ -30,7 +30,7 @@ class TimeSlice:
if
cluster_label
not
in
self
.
clusters
:
self
.
clusters
[
cluster_label
]
=
[]
node
=
self
.
_get_unique_id
(
node
)
#
node = self._get_unique_id(node)
self
.
clusters
[
cluster_label
]
.
append
(
node
)
def
get_nodes_for_cluster
(
self
,
cluster_label
:
str
):
...
...
src/data-hub/role-stage-discovery-microservice/app/run_time_slicing.py
View file @
b0e3117f
...
...
@@ -39,6 +39,10 @@ def split_clusterset_by_time(layer: Layer, clusters: List[Cluster]) -> Dict[Time
time_slices
:
Dict
[
Any
,
TimeSlice
]
=
{}
for
cluster_no
in
clusters
:
if
cluster_no
.
cluster_label
==
-
1
:
print
(
"Noise cluster was ignored."
)
continue
for
node
in
cluster_no
.
nodes
:
# retrieve times the node is located in based on the defined time properties in the schema
...
...
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