Changeset 4e255d1 in sasview for src/sas/qtgui/MainWindow/DataManager.py
- Timestamp:
- Aug 13, 2018 9:22:27 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- ecfe6b6
- Parents:
- 36a244f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataManager.py
r0261bc1 r4e255d1 24 24 import json 25 25 import time 26 from io import StringIO26 from io import BytesIO 27 27 import numpy as np 28 28 … … 368 368 # ndarray 369 369 if isinstance(o, np.ndarray): 370 buffer = StringIO()370 buffer = BytesIO() 371 371 np.save(buffer, o) 372 372 buffer.seek(0) … … 435 435 # ndarray 436 436 if cls == np.ndarray: 437 buffer = StringIO()437 buffer = BytesIO() 438 438 buffer.write(data['data'].encode('latin-1')) 439 439 buffer.seek(0)
Note: See TracChangeset
for help on using the changeset viewer.