Commit b0e3117f authored by Alexander Lercher's avatar Alexander Lercher

Small changes for time slicing

parent 7e767cc1
......@@ -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):
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment