-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #446 from OpenTrafficCam/bug/4209-could-not-load-o…
…tconfig-file bug/4209-could-not-load-otconfig-file
- Loading branch information
Showing
8 changed files
with
382 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
from abc import ABC, abstractmethod | ||
from pathlib import Path | ||
|
||
|
||
class OtConfigDefaultValueProvider(ABC): | ||
@property | ||
@abstractmethod | ||
def do_events(self) -> bool: | ||
raise NotImplementedError | ||
|
||
@property | ||
@abstractmethod | ||
def do_counting(self) -> bool: | ||
raise NotImplementedError | ||
|
||
@property | ||
@abstractmethod | ||
def track_files(self) -> set[Path]: | ||
raise NotImplementedError | ||
|
||
@property | ||
@abstractmethod | ||
def event_formats(self) -> set[str]: | ||
raise NotImplementedError | ||
|
||
@property | ||
@abstractmethod | ||
def save_name(self) -> str: | ||
raise NotImplementedError | ||
|
||
@property | ||
@abstractmethod | ||
def save_suffix(self) -> str: | ||
raise NotImplementedError | ||
|
||
@property | ||
@abstractmethod | ||
def count_intervals(self) -> set[int]: | ||
raise NotImplementedError | ||
|
||
@property | ||
@abstractmethod | ||
def num_processes(self) -> int: | ||
raise NotImplementedError | ||
|
||
@property | ||
@abstractmethod | ||
def log_file(self) -> Path: | ||
raise NotImplementedError | ||
|
||
@property | ||
@abstractmethod | ||
def debug(self) -> bool: | ||
raise NotImplementedError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.