@@ -204,6 +204,16 @@ def test_create_fcs_with_std_metadata(self):
204
204
if k in FCS_STANDARD_KEYWORDS :
205
205
metadata_dict [k ] = v
206
206
207
+ metadata_dict ['$P1D' ] = 'Linear,0,10'
208
+ metadata_dict ['$P1F' ] = '520LP'
209
+ metadata_dict ['$P1L' ] = '588'
210
+ metadata_dict ['$P1O' ] = '200'
211
+ metadata_dict ['$P1P' ] = '50'
212
+ metadata_dict ['$P1T' ] = 'PMT9524'
213
+ metadata_dict ['$P1V' ] = '250'
214
+ metadata_dict ['$VOL' ] = '120'
215
+ metadata_dict ['$P1CALIBRATION' ] = '1.234,MESF'
216
+
207
217
export_file_path = "examples/fcs_files/test_fcs_export.fcs"
208
218
fh = open (export_file_path , 'wb' )
209
219
create_fcs (fh , event_data , channel_names = pnn_labels , metadata_dict = metadata_dict )
@@ -212,10 +222,16 @@ def test_create_fcs_with_std_metadata(self):
212
222
exported_flow_data = FlowData (export_file_path )
213
223
os .unlink (export_file_path )
214
224
215
- cyt_truth = 'Main Aria (FACSAria)'
216
- cyt_value = exported_flow_data .text ['cyt' ]
217
-
218
- self .assertEqual (cyt_value , cyt_truth )
225
+ self .assertEqual (exported_flow_data .text ['cyt' ], 'Main Aria (FACSAria)' )
226
+ self .assertEqual (exported_flow_data .text ['p1d' ], 'Linear,0,10' )
227
+ self .assertEqual (exported_flow_data .text ['p1f' ], '520LP' )
228
+ self .assertEqual (exported_flow_data .text ['p1l' ], '588' )
229
+ self .assertEqual (exported_flow_data .text ['p1o' ], '200' )
230
+ self .assertEqual (exported_flow_data .text ['p1p' ], '50' )
231
+ self .assertEqual (exported_flow_data .text ['p1t' ], 'PMT9524' )
232
+ self .assertEqual (exported_flow_data .text ['p1v' ], '250' )
233
+ self .assertEqual (exported_flow_data .text ['vol' ], '120' )
234
+ self .assertEqual (exported_flow_data .text ['p1calibration' ], '1.234,MESF' )
219
235
220
236
def test_create_fcs_with_non_std_metadata (self ):
221
237
event_data = self .flow_data .events
0 commit comments