From dfb06ff089e713c102b15d5ee6169b5a74bcdd00 Mon Sep 17 00:00:00 2001 From: ATATC Date: Wed, 17 Jul 2024 23:42:30 +0800 Subject: [PATCH 1/2] Moved `data_dir` out of the template. (#311) --- leads/config/template.py | 1 - leads_gui/config.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/leads/config/template.py b/leads/config/template.py index 29a6018c..b513baf4 100644 --- a/leads/config/template.py +++ b/leads/config/template.py @@ -17,7 +17,6 @@ def __init__(self, base: dict[str, _SupportedConfig]) -> None: self.w_debug_level: _Literal["DEBUG", "INFO", "WARN", "ERROR"] = "DEBUG" self.data_seq_size: int = 100 self.num_laps_timed: int = 3 - self.data_dir: str = "data" self.refresh() def fix_dict(self, d: dict[str, _Any]) -> dict[str, _SupportedConfig]: diff --git a/leads_gui/config.py b/leads_gui/config.py index 72947ab3..5d5b7aeb 100644 --- a/leads_gui/config.py +++ b/leads_gui/config.py @@ -21,6 +21,7 @@ def __init__(self, base: dict[str, _Any]) -> None: self.comm_port: int = 16900 self.comm_stream: bool = False self.comm_stream_port: int = 16901 + self.data_dir: str = "data" self.save_data: bool = False super().__init__(base) From 1dc8fd4c4b27ba7cac1a1932e7d4d7fd6f0f6e88 Mon Sep 17 00:00:00 2001 From: ATATC Date: Wed, 17 Jul 2024 23:42:40 +0800 Subject: [PATCH 2/2] Docs. (#311) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0727fddf..7909673d 100644 --- a/README.md +++ b/README.md @@ -342,7 +342,6 @@ Note that a purely empty file could cause an error. |---------------------|---------|-----------------------------------------------------------|--------------|---------------| | `w_debug_level` | `str` | `"DEBUG"`, `"INFO"`, `"WARN"`, `"ERROR"` | Main, Remote | `"DEBUG"` | | `data_seq_size` | `int` | Buffer size of history data | Main | `100` | -| `data_dir` | `str` | The directory for the data recording system | Main, Remote | `"data"` | | `width` | `int` | Window width | Main | `720` | | `height` | `int` | Window height | Main | `480` | | `fullscreen` | `bool` | `True`: auto maximize; `False`: window mode | Main | `False` | @@ -359,6 +358,7 @@ Note that a purely empty file could cause an error. | `comm_port` | `int` | The port on which the communication system runs on | Main, Remote | `16900` | | `comm_stream` | `bool` | `True`: enable streaming; `False`: disable streaming | Main | `False` | | `comm_stream_port` | `bool` | The port on which the streaming system runs on | Main, Remote | `16901` | +| `data_dir` | `str` | The directory for the data recording system | Remote | `"data"` | | `save_data` | `bool` | `True`: save data; `False`: discard data | Remote | `False` | ## Devices Module