Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/smc_benchmark/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@
CONFIG6: [1, 5, 9, 13, 17, 21],
}

CONFIG_TO_NUMBER_RISE = {
CONFIG6: [1, 5, 9, 13, 17, 21],
CONFIG2: [3, 7, 11, 15, 19, 23],
CONFIG1: [4, 8, 12, 16, 20, 24],
CONFIG5: [2, 6, 10, 14, 22, 18],
}

# all short shots, 50x50 only
CONFIG_TO_NUMBER_UOB = {
CONFIG6: [1, 5, 9, 13, 17, 21], # 7 short shot
Expand All @@ -66,6 +73,7 @@
NUMBER_TO_CONFIG_KIT = {v: k for k, values in CONFIG_TO_NUMBER_KIT.items() for v in values}
NUMBER_TO_CONFIG_JKU = {v: k for k, values in CONFIG_TO_NUMBER_JKU.items() for v in values}
NUMBER_TO_CONFIG_UOB = {v: k for k, values in CONFIG_TO_NUMBER_UOB.items() for v in values}
NUMBER_TO_CONFIG_RISE = {v: k for k, values in CONFIG_TO_NUMBER)RISE.items() for v in values}

# File extensions of the data files
FILE_EXTENSION = {
Expand Down Expand Up @@ -120,6 +128,8 @@ def read(institution, folder, mat_of_interest=None, spec_of_interest=None):
specification = NUMBER_TO_CONFIG_JKU[int(number)]
elif institution == UOB:
specification = NUMBER_TO_CONFIG_UOB[int(number)]
elif institution == RISE:
specification = NUMBER_TO_CONFIG_RISE[int(number)]
else:
specification = NUMBER_TO_CONFIG_KIT[int(number)]
except KeyError:
Expand Down