Skip to content

Commit

Permalink
Added channel_labels to TestFCSDataPickle.
Browse files Browse the repository at this point in the history
  • Loading branch information
castillohair authored and abawchen committed Oct 26, 2020
1 parent a4a2982 commit eb81322
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions test/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -2789,10 +2789,21 @@ def test_pickle_unpickle(self):
loaded_attrs = set(dir(test_fcs))
self.assertEqual(attrs, loaded_attrs)
# Check contents of attrs affected by pickling
pickle_sensitive_attrs = ['_resolution', '_range', '_amplifier_gain',
'_detector_voltage', '_amplification_type', '_channels',
'_acquisition_end_time', '_acquisition_start_time', '_time_step',
'_data_type', '_analysis', '_text', '_infile']
pickle_sensitive_attrs = [
'_resolution',
'_range',
'_amplifier_gain',
'_channel_labels',
'_detector_voltage',
'_amplification_type',
'_channels',
'_acquisition_end_time',
'_acquisition_start_time',
'_time_step',
'_data_type',
'_analysis',
'_text',
'_infile']
# Also test computed (property) attrs
computed_attrs = [
'infile',
Expand All @@ -2810,6 +2821,7 @@ def test_pickle_unpickle(self):
'amplification_type',
'detector_voltage',
'amplifier_gain',
'channel_labels',
'range',
'resolution',
'hist_bins',
Expand Down

0 comments on commit eb81322

Please sign in to comment.