Skip to content
Snippets Groups Projects
Commit 5ed478e2 authored by Chieh Lin's avatar Chieh Lin
Browse files

add Index_constraint, remove none feature values, add recommand index column,...

add Index_constraint, remove none feature values, add recommand index column, fix time frame filter, improve outlook
parent c2a3253e
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
This diff is collapsed.
No preview for this file type
No preview for this file type
...@@ -6,7 +6,7 @@ class Observation_Spec: ...@@ -6,7 +6,7 @@ class Observation_Spec:
def __init__(self, tablename:str, type:str, label:list[str], features_name:list = None): def __init__(self, tablename:str, type:str, label:list[str], features_name:list = None):
self.tablename = tablename self.tablename = tablename
self.type = type # 'event' or 'measurement' self.type = type # 'event' or 'measurement'
self.label = label # (self-define or from column, column name, column value or self-define label) self.label = label # [self-define or from column, column name, column value or self-define label]
self.features_name = features_name if features_name else [] self.features_name = features_name if features_name else []
def add_feature(self, name): def add_feature(self, name):
...@@ -44,22 +44,6 @@ class Obesrvation(Observation_Spec): ...@@ -44,22 +44,6 @@ class Obesrvation(Observation_Spec):
def add_feature(self, feature_name, feature_value): def add_feature(self, feature_name, feature_value):
self.features[feature_name] = feature_value self.features[feature_name] = feature_value
# class Segment_Spec:
# def __init__(self, type, label, features=None):
# self.type = type # 'event' or 'measurement'
# self.label = label
# self.features = features if features else {}
# def add_feature(self, feature_name):
# self.features[feature_name] = feature_value
# class Segment(Segment_Spec):
# def __init__(self, time, type, object, label, features=None):
# super().__init__(type, label, features=None)
# self.time = time
# self.object = object
class Theme: class Theme:
def __init__(self, color, fillcolor, fillcolorC, def __init__(self, color, fillcolor, fillcolorC,
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment