Skip to content

Commit

Permalink
refactor: improve readability and support both WeDoWind datasets
Browse files Browse the repository at this point in the history
- Support both Pitch Angle Pair and Vortex Generator Pair WeDoWind
datasets
- Support not clipping rated power
- Improve readability and replace some hard-coded column name strings
  • Loading branch information
samuelwnaylor committed Sep 12, 2024
1 parent 4df245d commit a2d75db
Show file tree
Hide file tree
Showing 6 changed files with 259 additions and 1,425 deletions.
4 changes: 2 additions & 2 deletions examples/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@


def setup_logger(log_fpath: Path, level: int = logging.INFO) -> None:
log_formatter_file = logging.Formatter("%(asctime)s [%(levelname)-5.5s] %(message)s")
log_formatter_file = logging.Formatter("%(asctime)s [%(levelname)-8s] %(message)s")
root_logger = logging.getLogger()
root_logger.setLevel(level)

file_handler = logging.FileHandler(log_fpath, mode="w")
file_handler.setFormatter(log_formatter_file)
root_logger.addHandler(file_handler)

log_formatter_console = logging.Formatter("%(message)s")
log_formatter_console = logging.Formatter("%(asctime)s [%(levelname)-8s] %(message)s")
console_handler = logging.StreamHandler()
console_handler.setFormatter(log_formatter_console)
root_logger.addHandler(console_handler)
Expand Down
Loading

0 comments on commit a2d75db

Please sign in to comment.