Start writing expander module.
This commit is contained in:
32
src/AuDaGe/expander.py
Normal file
32
src/AuDaGe/expander.py
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
"""
|
||||||
|
AuDaGe Expander module
|
||||||
|
|
||||||
|
name: expander.py
|
||||||
|
by: Josh Lucas
|
||||||
|
date: 2026-11-03
|
||||||
|
|
||||||
|
desc: AuDaGe module for expanding UDT instances using their definitions.
|
||||||
|
"""
|
||||||
|
|
||||||
|
from AuDaGe.frame import AuDaGeColumns, AuDaGeFrame, Frame
|
||||||
|
|
||||||
|
|
||||||
|
class DefinitionFrame(
|
||||||
|
Frame,
|
||||||
|
mandatory_columns=(
|
||||||
|
AuDaGeColumns.Mandatory.values() + AuDaGeColumns.Optional.values()
|
||||||
|
),
|
||||||
|
):
|
||||||
|
"""Dataframe for UDT definitions."""
|
||||||
|
|
||||||
|
|
||||||
|
class Expander:
|
||||||
|
"""Class for handling dataframe pairs with one containing UDT instances and
|
||||||
|
other tags and the other containing UDT definitions.
|
||||||
|
"""
|
||||||
|
|
||||||
|
def __init__(self, definitions: AuDaGeFrame):
|
||||||
|
self.definitions = definitions
|
||||||
|
|
||||||
|
def expand(self, frame: Frame) -> AuDaGeFrame:
|
||||||
|
return AuDaGeFrame()
|
||||||
Reference in New Issue
Block a user