Skip to content

Commit 1788452

Browse files
committed
new black codestyle
1 parent 97c6298 commit 1788452

File tree

7 files changed

+9
-4
lines changed

7 files changed

+9
-4
lines changed

rlhfblender/data_collection/feedback_translator.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
This module translates incoming feedback of different types into a common format.
33
"""
44

5-
65
from rlhfblender.data_models.feedback_models import (
76
AbsoluteFeedback,
87
Actuality,

rlhfblender/data_collection/sampler.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
A sampler for episodes for HITL experiments
33
"""
4+
45
import os
56
from enum import Enum
67
from typing import List, Optional

rlhfblender/generate_data.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Pre-generated data for the RLHFBlender project (e.g. record videos, reward logs, etc.)
33
These can the be loaded in the user interface for studies
44
"""
5+
56
import argparse
67
import asyncio
78
import sys

rlhfblender/logger/logger.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Logging component for feedback logging
33
"""
4+
45
from abc import abstractmethod
56
from datetime import datetime
67
from typing import List

rlhfblender/startup_script.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Expects pre-trained models in the experimentation directory. First runs benchmarks with the provided
44
models, then creates video/thumbnail/reward data etc.
55
"""
6+
67
import asyncio
78
import os
89

rlhfblender/utils/data_generation.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Expects pre-trained models in the experimentation directory. First runs benchmarks with the provided
44
models, then creates video/thumbnail/reward data etc.
55
"""
6+
67
import os
78
import time
89
from types import SimpleNamespace as sn
@@ -76,9 +77,9 @@ async def run_benchmark(request: List[BenchmarkRequestModel]) -> list[Experiment
7677
# We lazily register the environment if it is not registered yet, this is only done once
7778
database_env = initial_registration(
7879
benchmark_run.env_id,
79-
additional_gym_packages=benchmark_run.additional_packages
80-
if "additional_packages" in benchmark_run
81-
else [],
80+
additional_gym_packages=(
81+
benchmark_run.additional_packages if "additional_packages" in benchmark_run else []
82+
),
8283
)
8384
await db_handler.add_entry(database, Environment, database_env.model_dump())
8485

tests/test_data_endpoints.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Test the DATA API endpoints
44
55
"""
6+
67
import os
78

89
from fastapi.testclient import TestClient

0 commit comments

Comments
 (0)