-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cache grouping workspace by state * fix integration test * fixup! fix integration test * fixup! fixup! fix integration test * fixup! fixup! fixup! fix integration test * add tests for codecov * move location of reserved state assignment * fixup! move location of reserved state assignment
- Loading branch information
1 parent
b057ddf
commit 7b3491f
Showing
10 changed files
with
112 additions
and
72 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from snapred.backend.dao.ObjectSHA import ObjectSHA | ||
from snapred.meta.Enum import StrEnum | ||
|
||
|
||
class ReservedRunNumber(StrEnum): | ||
NATIVE: str = "000000" | ||
LITE: str = "000001" | ||
|
||
|
||
class ReservedStateId(StrEnum): | ||
NATIVE: str = ObjectSHA(hex="0000000000000000").hex | ||
LITE: str = ObjectSHA(hex="0000000000000001").hex | ||
|
||
@classmethod | ||
def forRun(cls, runNumber): | ||
match runNumber: | ||
case ReservedRunNumber.NATIVE.value: | ||
return cls.NATIVE | ||
case ReservedRunNumber.LITE.value: | ||
return cls.LITE |
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.