Data Model version 2.1.2

Method: getValue


    getter for derived attribute value.

guid: www.ccpn.ac.uk_Fogh_2006-08-16-18:20:01_00015
OpType: get
OpSubType: None
isQuery: True
isAbstract: False
Scope: instance_level
Code: result = None
pp = self.position
if pp is not None:
  dataDimRef = self.dataDimRef

  if dataDimRef is None:
    dataDim = self.dataDim
    ll = []
    for ds in dataDim.dimensionScalings:
      sfs = ds.scalingFactors
      if not sfs or 1 in sfs:
        ll.append(ds.expDimRef)
    if len(ll) == 1:
      dataDimRef = ll[0].findFirstDataDimRef(dataDim=dataDim)
      
  else:
    dataDim = dataDimRef.dataDim


  if dataDimRef is not None:

    if self.numAliasing:
      # The dataDim can only be a FreqDataDim, so numPointsOrig is always defined
      pp = pp + self.numAliasing * dataDim.numPointsOrig

    result = dataDimRef.pointToValue(pp)
  Data Model Version 2.1.2
Go to Top  
  Autogenerated by  PyApiDocGen  revision 1.3   on  Thu Oct 2 16:09:38 2014    from data model package  ccp.api.nmr.Nmr.PeakDim   revision ?  
  Work done by the CCPN team.
www.ccpn.ac.uk