Changeset b6627d9 in sasview for src/sas/calculator/sas_gen.py
- Timestamp:
- Mar 4, 2015 1:02:23 PM (9 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 7cd87c2
- Parents:
- 5a7d933
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/calculator/sas_gen.py
re3f77d8b rb6627d9 1 # pylint: disable=invalid-name 1 2 """ 2 3 SAS generic computation and sld file readers … … 9 10 import os 10 11 import copy 12 import sys 13 import logging 11 14 12 15 MFACTOR_AM = 2.853E-12 … … 285 288 mask = (x_dir2 + y_dir2 + z_dir2) <= 1.0 286 289 except: 287 pass290 logging.error(sys.exc_value) 288 291 self.output = MagSLD(self.pos_x[mask], self.pos_y[mask], 289 292 self.pos_z[mask], self.sld_n[mask], … … 394 397 except: 395 398 # Skip non-data lines 396 pass399 logging.error(sys.exc_value) 397 400 #Reading Header; Segment count ignored 398 401 s_line = line.split(":", 1) … … 589 592 z_lines.append(z_line) 590 593 except: 591 pass594 logging.error(sys.exc_value) 592 595 593 596 output = MagSLD(pos_x, pos_y, pos_z, sld_n, sld_mx, sld_my, sld_mz) … … 683 686 except: 684 687 # Skip non-data lines 685 pass688 logging.error(sys.exc_value) 686 689 output = MagSLD(pos_x, pos_y, pos_z, sld_n, 687 690 sld_mx, sld_my, sld_mz) … … 1037 1040 1038 1041 def test_load(): 1042 """ 1043 Test code 1044 """ 1039 1045 from sas.plottools.arrow3d import Arrow3D 1040 1046 current_dir = os.path.abspath(os.path.curdir) … … 1083 1089 ax.add_artist(a) 1084 1090 plt.show() 1091 1085 1092 def test(): 1093 """ 1094 Test code 1095 """ 1086 1096 current_dir = os.path.abspath(os.path.curdir) 1087 1097 for i in range(3):
Note: See TracChangeset
for help on using the changeset viewer.