Changeset 8d6440f in sasview for DataLoader/plugins/TXT3_Reader.py
- Timestamp:
- Jul 9, 2008 6:05:49 PM (16 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:
- c45976b
- Parents:
- 8dac49d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/plugins/TXT3_Reader.py
r1b0b3ca r8d6440f 2 2 import wx 3 3 import string,numpy 4 import logging 4 5 class Reader: 5 6 """ … … 31 32 return None 32 33 else: 33 input_f = open(path,'r') 34 try: 35 input_f = open(path,'r') 36 except : 37 raise RuntimeError,"TXT3_Reader cannot open %s"%(path) 34 38 buff = input_f.read() 35 39 lines = buff.split('\n') … … 65 69 #msg="txtReader Reading:\n"+"this x :"+ str(self.x) +"\n"+"this y:"+str(self.y)+"\n"+"this dy :"+str(self.dy)+"\n" 66 70 #return msg 67 print "TXT3_Reader reading %s \n" %path71 logging.info ("TXT3_Reader reading %s \n" %(path)) 68 72 return self.x,self.y,self.dy 69 73
Note: See TracChangeset
for help on using the changeset viewer.