Skip to content

Commit

Permalink
Change event names to past tense
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-narozniak committed May 28, 2024
1 parent 5f75fcf commit 328fabf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion datasets/flwr_datasets/federated_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def __init__(
# Indicate if the dataset is prepared for `load_partition` or `load_split`
self._dataset_prepared: bool = False
event(
EventType.FEDERATED_DATASET_CREATE,
EventType.FEDERATED_DATASET_CREATED,
{
"dataset_name": self._dataset_name,
"partitioners_ids": [
Expand Down
2 changes: 1 addition & 1 deletion datasets/flwr_datasets/partitioner/partitioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Partitioner(ABC):
def __init__(self) -> None:
self._dataset: Optional[Dataset] = None
event(
EventType.PARTITIONER_CREATE,
EventType.PARTITIONER_CREATED,
{"class_name": self.__class__.__name__, "id": id(self)},
)

Expand Down
4 changes: 2 additions & 2 deletions datasets/flwr_datasets/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ def _generate_next_value_(name: str, start: int, count: int, last_values: List[A

PING = auto()

FEDERATED_DATASET_CREATE = auto()
PARTITIONER_CREATE = auto()
FEDERATED_DATASET_CREATED = auto()
PARTITIONER_CREATED = auto()


# Use the ThreadPoolExecutor with max_workers=1 to have a queue
Expand Down

0 comments on commit 328fabf

Please sign in to comment.