Hello,
Magnus had a problem loading a project with the error message:
memops.general.Implementation.ApiError: ccp.Nmr.ExpDimRef.maxAliasedFreq
constraint value_is_not_smaller_than_minAliasedFreq violated by value
6.827
Now it turns out the ExpDimRef data in the Nmr.xml file did not even
mention minAliasedFreq or maxAliasedFreq, so this was a bit odd. We
eventually tracked down the problem to a couple of lines in
ccpnmr1.0/python/ccpnmr/analysis/Analysis.py. It is in the function
initPeakList() which says the following (this is lines 1249 to 1253 in
release 1.0.6, probably somewhere slightly different in other releases):
(minPos,maxPos) = dimRegionDict[peakDim.dataDimRef]
if peakDim.position > maxPos:
dimRegionDict[peakDim.dataDimRef] = (minPos,peakDim.value)
elif peakDim.position < minPos:
dimRegionDict[peakDim.dataDimRef] = (peakDim.value,maxPos)
The second and fourth lines should refer to value instead of position, so
we should have:
(minPos,maxPos) = dimRegionDict[peakDim.dataDimRef]
if peakDim.value > maxPos:
dimRegionDict[peakDim.dataDimRef] = (minPos,peakDim.value)
elif peakDim.value < minPos:
dimRegionDict[peakDim.dataDimRef] = (peakDim.value,maxPos)
Folks might want to fix this (although it might not be a problem for most
projects).
Wayne
|