Hi Yufeng,
Your fix:
> Change self.dataSource = peakList.dataSource to
> self.dataSource = self.peakList.dataSource
> is a workaround, but I am not sure whether it is the right answer.
Is definitely correct - the 'self.' must've been dropped accidentally at
one stage. Sorry about that.
The next error then:
> Done above, I tried to run the same exporting again, without exporting
> sequence, shifts and peaks first, I tried to export peakAssignments
> directly after opening the project I get the following error message:
>
> Exception in thread Thread-1:
> Traceback (most recent call last):
> File "/usr/local/lib/python2.3/threading.py", line 436, in __bootstrap
> self.run()
> File "/home/tong/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/format/gui/ImportExportFormatPopup.py", line 91, in run
> self.returnValue = self.__target(*self.__args, **self.__kwargs)
> File "/home/tong/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/format/converters/DataFormat.py", line 2133, in writePeakAssignments
> if not self.peakListAssignmentCheck(self.peakLists):
> AttributeError: XEasyFormat instance has no attribute 'peakLists'
Change the line:
if not self.peakListAssignmentCheck(self.peakLists):
to:
if not self.peakListAssignmentCheck([self.peakList]):
The peak assignments export only supports one peak list at a time - the
code I was using came from peak list export (where multiple lists per file
are possible for Ansig).
Bye,
Wim
|