Changeset 5047898 in sasview
- Timestamp:
- Oct 1, 2018 3:10:54 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 4cbd87f
- Parents:
- 085ee014 (diff), 16417bb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- wpotrzebowski <Wojciech.Potrzebowski@…> (10/01/18 03:10:40)
- git-committer:
- wpotrzebowski <Wojciech.Potrzebowski@…> (10/01/18 03:10:54)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
build_tools/conda_qt5_min_centos.yml
rb38871e r16417bb 15 15 - pytest 16 16 - mako 17 - pyinstaller 17 - pyinstaller 18 - testpath=0.3.1 18 19 # GPU not set for Centos build system 19 20 # - pyopencl -
build_tools/conda_qt5_min_osx.yml
r65e76ed r16417bb 7 7 - hdf5 8 8 - h5py 9 - ipython 9 - ipython=6 10 10 - jupyter 11 11 - twisted … … 17 17 - pyinstaller 18 18 - pyopencl 19 - testpath=0.3.1 19 20 - pip: 20 21 - pytools -
build_tools/conda_qt5_win.yml
rb38871e r16417bb 8 8 - hdf5 9 9 - h5py 10 - ipython 10 - ipython=6 11 - ipykernel=5 11 12 - jupyter 12 13 - twisted … … 18 19 - pyinstaller 19 20 - pyopencl 21 - testpath=0.3.1 20 22 - pip: 21 23 - pytools -
src/sas/qtgui/Perspectives/Fitting/ReportPageLogic.py
r5330be2 r085ee014 99 99 canvas = FigureCanvas(fig) 100 100 png_output = BytesIO() 101 102 # Create a "safe" location - system tmp103 tmp_file = tempfile.TemporaryFile(suffix=".png")104 101 try: 105 fig.savefig(tmp_file.name, dpi=75) 106 fig.savefig(png_output, dpi=75) 107 except PermissionError: 108 # sometimes one gets "permission denied" for temp files 109 # mainly on Windows 7 *gasp*. Let's try local directory 110 tmp_file = open("_tmp.png", "w+") 111 try: 112 fig.savefig(tmp_file.name, dpi=75) 113 fig.savefig(png_output, dpi=75) 114 except Exception as ex: 115 logging.error("Creating of the report failed: %s"%str(ex)) 116 return 117 118 data_to_print = png_output.getvalue() == open(tmp_file.name, 'rb').read() 119 tmp_file.close() 102 fig.savefig(png_output, format="png", dpi=75) 103 except PermissionError as ex: 104 logging.error("Creating of the report failed: %s"%str(ex)) 105 return 120 106 data64 = base64.b64encode(png_output.getvalue()) 121 107 data_to_print = urllib.parse.quote(data64) 122 123 108 feet = FEET_2 124 109 if sys.platform == "darwin": # Mac … … 126 111 html += feet.format(data_to_print) 127 112 html += ELINE 113 png_output.close() 128 114 del canvas 129 115 return html
Note: See TracChangeset
for help on using the changeset viewer.