# wave_folder must not be used, except to to initialize wave_prefix and channels.
# When exporting YAML, this is exported as a comment.
wave_folder: str = ''
# Remove this field, create @classmethod constructors for loading from
# [glob/wave]... wave_folder will not be present in saved yaml files.
pull/357/head
nyanpasu64 2018-07-26 21:33:40 -07:00
rodzic e66d3cb58c
commit a096f0ffe9
1 zmienionych plików z 12 dodań i 4 usunięć

Wyświetl plik

@ -1,25 +1,31 @@
# -*- coding: utf-8 -*-
import cgitb
import sys
import time
from pathlib import Path
from typing import Optional, List
import click
from ovgenpy.channel import Channel
from ovgenpy import outputs
from ovgenpy.channel import Channel
from ovgenpy.config import register_config, yaml
from ovgenpy.renderer import MatplotlibRenderer, RendererConfig
from ovgenpy.triggers import ITriggerConfig, CorrelationTriggerConfig
from ovgenpy.utils.keyword_dataclasses import field
from ovgenpy.wave import _WaveConfig, Wave
# cgitb.enable(format='text')
RENDER_PROFILING = True
@register_config
@register_config(always_dump='*')
class Config:
wave_folder: str
wave_prefix: str = '' # if wave/glob..., pwd. if folder, folder.
channels: List[Channel] = field(default_factory=lambda: [])
master_audio: Optional[str]
fps: int
@ -46,7 +52,9 @@ _FPS = 60 # f_s
def main():
cfg = Config(
wave_dir='foo',
wave_prefix='foo',
channels=[],
master_audio=None,
fps=69,