Changeset 3472
- Timestamp:
- Jul 13, 2018 4:21:07 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/imports/G2img_GE.py
r3322 r3472 11 11 --------------------------------------- 12 12 13 Read data from General Electric angiography x-ray detectors, 14 primarily as used at APS 1-ID. 13 15 This shows an example of an importer that will handle files with 14 16 more than a single image. … … 25 27 '''Routine to read a GE image, typically from APS Sector 1. 26 28 27 The image files may be of form .geX (where X is ' ', 1, 2, 3 or 4),29 The image files may be of form .geX (where X is ' ', 1, 2, 3, 4 or 5), 28 30 which is a raw image from the detector. These files may contain more 29 31 than one image and have a rudimentary header. … … 34 36 def __init__(self): 35 37 super(self.__class__,self).__init__( # fancy way to self-reference 36 extensionlist=('.sum','.cor','.avg','.ge','.ge1','.ge2','.ge3','.ge4' ),38 extensionlist=('.sum','.cor','.avg','.ge','.ge1','.ge2','.ge3','.ge4','.ge5'), 37 39 strictExtension=True, 38 40 formatName = 'GE image', … … 73 75 '''Routine to read multiple GE images & sum them, typically from APS Sector 1. 74 76 75 The image files may be of form .geX (where X is ' ', 1, 2, 3 or 4),77 The image files may be of form .geX (where X is ' ', 1, 2, 3, 4 or 5), 76 78 which is a raw image from the detector. These files may contain more 77 79 than one image and have a rudimentary header. … … 82 84 def __init__(self): 83 85 super(self.__class__,self).__init__( # fancy way to self-reference 84 extensionlist=('.ge1','.ge2','.ge3','.ge4' ),86 extensionlist=('.ge1','.ge2','.ge3','.ge4','.ge5'), 85 87 strictExtension=True, 86 88 formatName = 'sum GE multi-image', … … 107 109 imagenum = kwarg.get('blocknum') 108 110 if imagenum is None: imagenum = 1 109 self.Comments,self.Data,self.Npix,self.Image,more = \110 GetGEsumData(self,filename,imagenum=imagenum,sum=True)111 self.Comments,self.Data,self.Npix,self.Image,more = GetGEsumData( 112 self,filename,imagenum=imagenum,sum=True) 111 113 if self.Npix == 0 or not self.Comments: 112 114 return False
Note: See TracChangeset
for help on using the changeset viewer.