File tree Expand file tree Collapse file tree 3 files changed +30
-3
lines changed Expand file tree Collapse file tree 3 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 1
1
2
- __version__ = "4.0.0-rc1 "
2
+ __version__ = "4.0.0-rc2 "
Original file line number Diff line number Diff line change @@ -68,10 +68,18 @@ def reagent_version(runtype_recognizer):
68
68
try :
69
69
run_parameters = runtype_recognizer .run_parameters ['RunParameters' ]
70
70
consumables = run_parameters ["ConsumableInfo" ]["ConsumableInfo" ]
71
- reagent_version = next (
71
+ flowcell = next (
72
72
consumable for consumable in consumables
73
73
if consumable ['Type' ] == 'FlowCell'
74
- )['Mode' ]
74
+ )
75
+
76
+ # "Mode" was used to specify the reagent version in the first runfolders that came out
77
+ # of the NovaSeqX. This is kept for backward compatibility.
78
+ reagent_version = flowcell .get ("Name" , flowcell .get ("Mode" ))
79
+
80
+ if not reagent_version :
81
+ raise KeyError
82
+
75
83
return reagent_version
76
84
except (KeyError , StopIteration ):
77
85
raise ReagentVersionUnknown ("Could not identify flowcell mode for NovaSeqXPlus" )
Original file line number Diff line number Diff line change @@ -168,6 +168,25 @@ def test_novaseq_reagent_version_raises(self):
168
168
self .novaseq .reagent_version (mock_runtype_recognizer )
169
169
170
170
def test_novaseqxplus_reagent_version (self ):
171
+ runtype_dict = {
172
+ "RunParameters" : {
173
+ "ConsumableInfo" : {
174
+ "ConsumableInfo" : [
175
+ {"Type" : "FlowCell" , "Name" : "10B" },
176
+ {"Type" : "Reagent" },
177
+ {"Type" : "Buffer" },
178
+ ]
179
+ }
180
+ }
181
+ }
182
+ mock_runtype_recognizer = self .MockRunTypeRecognizer (run_parameters = runtype_dict )
183
+
184
+ actual = self .novaseqxplus .reagent_version (mock_runtype_recognizer )
185
+ expected = "10B"
186
+
187
+ self .assertEqual (actual , expected )
188
+
189
+ def test_novaseqxplus_reagent_version_old (self ):
171
190
runtype_dict = {
172
191
"RunParameters" : {
173
192
"ConsumableInfo" : {
You can’t perform that action at this time.
0 commit comments