We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 111e096 commit e61a3cbCopy full SHA for e61a3cb
src/alhambra_mixes/references.py
@@ -86,7 +86,9 @@ def plate_map(
86
"""
87
well_to_strand_name = {}
88
found_plate_name = False
89
+ available_plate_names = []
90
for row in self.df.itertuples():
91
+ available_plate_names.append(row.Plate)
92
if row.Plate == name: # type: ignore
93
found_plate_name = True
94
well = row.Well # type: ignore
@@ -95,7 +97,8 @@ def plate_map(
95
97
well_to_strand_name[well] = strand.name
96
98
99
if not found_plate_name:
- raise ValueError(f'Plate "{name}" not found in reference file.')
100
+ raise ValueError(f'Plate "{name}" not found in reference file.'
101
+ f'\nAvailable plate names: {", ".join(available_plate_names)}')
102
103
plate_map = PlateMap(
104
plate_name=name,
0 commit comments