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 committed Jun 13, 2020
1 parent c86b65a commit 0bddec5
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 @@ -2718,10 +2718,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 @@ -2739,6 +2750,7 @@ def test_pickle_unpickle(self):
'amplification_type',
'detector_voltage',
'amplifier_gain',
'channel_labels',
'range',
'resolution',
'hist_bins',
Expand Down

0 comments on commit 0bddec5

Please sign in to comment.