Skip to content

Commit

Permalink
Fix broken SignalAnalyzer metadata struct
Browse files Browse the repository at this point in the history
Remove erroneous code left over from dataclass implementation (pre-msgspec)
  • Loading branch information
aromanielloNTIA authored Oct 5, 2023
1 parent 591f1cf commit 3ccfa87
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions scos_actions/metadata/structs/ntia_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,6 @@ class SignalAnalyzer(msgspec.Struct, **SIGMF_OBJECT_KWARGS):
max_power: Optional[float] = None
a2d_bits: Optional[int] = None

def __post_init__(self):
super().__post_init__()
# Define SigMF key names
self.obj_keys.update(
{
"sigan_spec": "sigan_spec",
"frequency_low": "frequency_low",
"frequency_high": "frequency_high",
"noise_figure": "noise_figure",
"max_power": "max_power",
"a2d_bits": "a2d_bits",
}
)


class CalSource(
msgspec.Struct, rename={"cal_source_type": "type"}, **SIGMF_OBJECT_KWARGS
Expand Down

0 comments on commit 3ccfa87

Please sign in to comment.