Hi Igor,
> I run all of your scripts on my macros, but some issues of the module
> imports remain. Most of them are related to lines like
> self.registerNotify(self.updateShiftLists, 'ccp.Nmr.ShiftList', 'setName')
> that come directly from the "old" analysis code. Do you have a script
> that corrects them as well?
Alas, no: the change scripts were, as far as I know, not used on the
Analysis code, so there will be bits where you'll have to change things by
hand. In this case, you should change 'ccp.Nmr.ShiftList' to
'ccp.nmr.Nmr.ShiftList' - look at the changeImport dictionary at the
bottom of Constants.py for a list of changes.
> I'm also getting a lot of errors from findChildCalls.py, all of which
> look like a straightforward replacements, but there is lo "live" mode
> for the script. At least in my case this mode would be very useful as
> none of my functions would benefit much from the direct use of sets.
Well this script is really only to find the lines and make it easier for
you to change the child calls, as it is difficult to do a dependable
search for that kind of link. If you really want to run it in 'live' mode,
then you can change, in findChildCalls.py, in the function 'changeDirs',
the second line:
testMode = 1
to:
testMode = 0
But DEFINITELY make sure you back everything up first, as this is not
guaranteed to work cleanly!!!
Wim
|