From a421e88ef5ac32b0e4f0031f5c245c549500e6a3 Mon Sep 17 00:00:00 2001 From: Sid Date: Tue, 6 Aug 2024 14:33:21 -0700 Subject: [PATCH 1/2] Define the pretraining CompetitionId IntEnum. --- competitions/__init__.py | 0 competitions/data.py | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 competitions/__init__.py create mode 100644 competitions/data.py diff --git a/competitions/__init__.py b/competitions/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/competitions/data.py b/competitions/data.py new file mode 100644 index 0000000..84cc388 --- /dev/null +++ b/competitions/data.py @@ -0,0 +1,16 @@ +from enum import IntEnum + + +class CompetitionId(IntEnum): + """Unique identifiers for each competition.""" + + B7_MODEL = 0 + + M772_MODEL = 1 + + B3_MODEL = 2 + + # Overwrite the default __repr__, which doesn't work with + # bt.logging for some unknown reason. + def __repr__(self) -> str: + return f"{self.value}" From 9b60000141aa3fe73acc69ba6bfd3891b7afba15 Mon Sep 17 00:00:00 2001 From: Sid Date: Tue, 6 Aug 2024 14:40:12 -0700 Subject: [PATCH 2/2] Bump release version to 4.0.1. --- constants/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/constants/__init__.py b/constants/__init__.py index 8ff0d3e..f945313 100644 --- a/constants/__init__.py +++ b/constants/__init__.py @@ -35,7 +35,7 @@ # --------------------------------- # Release -__version__ = "4.0.0" +__version__ = "4.0.1" # Validator schema version __validator_version__ = "3.0.0"