Serialize data.
(ps)
| 97 | |
| 98 | @staticmethod |
| 99 | def _serialization(ps): |
| 100 | """Serialize data.""" |
| 101 | return pickle.dumps(ps, protocol=pickle.HIGHEST_PROTOCOL) # protocol=2) |
| 102 | # with open('_temp.pkl', 'wb') as file: |
| 103 | # return pickle.dump(ps, file, protocol=pickle.HIGHEST_PROTOCOL) |
| 104 | |
| 105 | @staticmethod |
| 106 | def _deserialization(ps): |
no outgoing calls
no test coverage detected