1437 |
|
self.deapp = Dispatch('DataExplorer.Application', |
1438 |
|
resultCLSID='{3FED40F1-D409-11D1-8B56-0060971CB54B}') |
1439 |
|
self.delib = gencache.EnsureModule('{06972F50-13F6-11D3-A5CB-0060971CB54B}',0,4,2) |
1440 |
< |
self.deapp.AutomatedProcessing = 1 |
1441 |
< |
self.deapp.Visible = 0 |
1440 |
> |
try: |
1441 |
> |
self.deapp.AutomatedProcessing = 1 |
1442 |
> |
except AttributeError: |
1443 |
> |
pass |
1444 |
> |
try: |
1445 |
> |
self.deapp.Visible = 0 |
1446 |
> |
except AttributeError: |
1447 |
> |
pass |
1448 |
> |
|
1449 |
|
|
1450 |
|
def close(self): |
1451 |
|
|
1489 |
|
doc = self.deapp.Documents.Item(0) |
1490 |
|
sv = doc.SpecView |
1491 |
|
|
1492 |
+ |
if i > sv.TotalSpectrum: |
1493 |
+ |
prevfile = f |
1494 |
+ |
continue |
1495 |
+ |
|
1496 |
|
sv.SetSpectrumAt(i-1) |
1497 |
|
|
1498 |
|
(tf,fixedMass) = doc.InstrumentSettings.GetSetting(self.delib.constants.dePreCursorIon,i-1,None) |