Wim Vranken wrote:
> Hi Gary,
>
> Try readXmlProjectFile() instead of loadXmlProjectFile() - safer
> because it resets the paths if required (though in your case since
> the project hasn't moved that shouldn't be necessary?).
>
> Anyway, as Wayne said, it should be looking for an absolute path... .
>
> Wim
>
> .
>
Thanks I will try that and also have a look for where my relative paths
are coming from
one side comment/patch would this be a good idea:
def deleteRemainingPeaks(self):
"""
If overwrite mode is on, delete remaining existing peaks that were
not in new list.
"""
for existingPeak in self.existingPeaks:
applData = existingPeak.findFirstApplicationData(application =
self.format, keyword = peakNum_kw)
peakName = "%s:%d[%d]" %
(existingPeak.peakList.dataSource.name,existingPeak.peakList.serial,
existingPeak.serial)
if applData:
addString = "%s, app data: (number %d)" % (peakName,applData.value)
else:
addString = peakName
print " Warning: Deleting original peak %s" % addString
existingPeak.delete()
as otherwise if there is no app data you have no idea what is being deleted
regards
gary
nb there are several patches to the codre to follow
--
-------------------------------------------------------------------
Dr Gary Thompson
Astbury Centre for Structural Molecular Biology,
University of Leeds, Astbury Building,
Leeds, LS2 9JT, West-Yorkshire, UK Tel. +44-113-3433024
email: [log in to unmask] Fax +44-113-2331407
-------------------------------------------------------------------
|