diff --git a/Code/Mantid/scripts/SANS/SANSadd2.py b/Code/Mantid/scripts/SANS/SANSadd2.py
index 0cc7c69..5e355b6 100644
|
a
|
b
|
def _loadWS(entry, ext, inst, wsName, rawTypes, period=_NO_INDIVIDUAL_PERIODS) : |
| 192 | 192 | |
| 193 | 193 | if period != _NO_INDIVIDUAL_PERIODS: |
| 194 | 194 | #load just a single period |
| 195 | | props = Load(Filename=filename,OutputWorkspace=wsName, EntryNumber=period) |
| | 195 | if ext == ".nxs" or ext == ".NXS": |
| | 196 | props = LoadNexus( Filename=filename,OutputWorkspace=wsName, EntryNumber=period) |
| | 197 | else: |
| | 198 | props = Load(Filename=filename,OutputWorkspace=wsName, EntryNumber=period) |
| 196 | 199 | else: |
| 197 | | props = Load(Filename=filename,OutputWorkspace=wsName) |
| | 200 | if ext == ".nxs" or ext == ".NXS": |
| | 201 | props = LoadNexus(Filename=filename,OutputWorkspace=wsName) |
| | 202 | else: |
| | 203 | props = Load(Filename=filename,OutputWorkspace=wsName) |
| 198 | 204 | |
| 199 | 205 | isDataSetEvent = False |
| 200 | 206 | wsDataSet = mtd[wsName] |