aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2024-04-26 04:50:38 +0200
committerThéo de la Hogue2024-04-26 04:50:38 +0200
commite01cfe24a89673059acdaeb8c5466eff20fabd12 (patch)
tree162eb364f21800180a449948faf36c7ff9a757cf /src
parent693155cbfa4e970c5b39bab9d0865a9215bbb0b1 (diff)
downloadargaze-e01cfe24a89673059acdaeb8c5466eff20fabd12.zip
argaze-e01cfe24a89673059acdaeb8c5466eff20fabd12.tar.gz
argaze-e01cfe24a89673059acdaeb8c5466eff20fabd12.tar.bz2
argaze-e01cfe24a89673059acdaeb8c5466eff20fabd12.tar.xz
Removin useless dataclass features.
Diffstat (limited to 'src')
-rw-r--r--src/argaze/DataFeatures.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/argaze/DataFeatures.py b/src/argaze/DataFeatures.py
index 5fb0e84..e435709 100644
--- a/src/argaze/DataFeatures.py
+++ b/src/argaze/DataFeatures.py
@@ -26,7 +26,6 @@ import sys
import threading
import time
from typing import Self
-from dataclasses import dataclass, is_dataclass
import cv2
import matplotlib.patches as mpatches
@@ -111,11 +110,6 @@ def get_class_properties(cls: type) -> dict:
properties: dict of properties stored by names
"""
- # Dataclass case
- if is_dataclass(cls):
-
- return cls.__dataclass_fields__
-
# Stop recursion when reaching core objects
if cls is not object and cls is not PipelineStepObject and cls is not SharedObject:
@@ -315,9 +309,6 @@ class DataDictionary(dict):
__setattr__ = dict.__setitem__
__delattr__ = dict.__delitem__
-def metrics(cls):
- """Decorate a class to make it a dataclass."""
- return dataclass(cls)
def timestamp(cls):
"""Decorate a class to enable timestamp management."""