Source code for ccpnmodel.ccpncore.lib.spectrum.formats_noLongerUsed.Template
"""Module Documentation here
"""
#=========================================================================================
# Licence, Reference and Credits
#=========================================================================================
__copyright__ = "Copyright (C) CCPN project (http://www.ccpn.ac.uk) 2014 - 2017"
__credits__ = ("Wayne Boucher, Ed Brooksbank, Rasmus H Fogh, Luca Mureddu, Timothy J Ragan & Geerten W Vuister")
__licence__ = ("CCPN licence. See http://www.ccpn.ac.uk/v3-software/downloads/license",
"or ccpnmodel.ccpncore.memops.Credits.CcpnLicense for licence text")
__reference__ = ("For publications, please use reference from http://www.ccpn.ac.uk/v3-software/downloads/license",
"or ccpnmodel.ccpncore.memops.Credits.CcpNmrReference")
#=========================================================================================
# Last code modification
#=========================================================================================
__modifiedBy__ = "$modifiedBy: CCPN $"
__dateModified__ = "$dateModified: 2017-07-07 16:33:15 +0100 (Fri, July 07, 2017) $"
__version__ = "$Revision: 3.0.0 $"
#=========================================================================================
# Created
#=========================================================================================
__author__ = "$Author: CCPN $"
__date__ = "$Date: 2017-04-07 10:28:48 +0000 (Fri, April 07, 2017) $"
#=========================================================================================
# Start of code
#=========================================================================================
import os, sys
# from ccpn.util.Common import checkIsotope
# from memops.qtgui.MessageDialog import showError
FILE_TYPE = 'None'
[docs]def readParams(paramFileName):
dataFile = None
wordSize = 4
isBigEndian = sys.byteorder == 'big'
isFloatData = True
headerSize = 0
blockHeaderSize = 0
sampledValues = []
sampledSigmas = []
pulseProgram = None
dataScale = 1.0
ndim = 2
numPoints = [0] * ndim
blockSizes = [0] * ndim
refPpms = [0] * ndim
refPoints = [0] * ndim
specWidths = [0] * ndim
specFreqs = [0] * ndim
isotopes = [None] * ndim
data = (FILE_TYPE, dataFile, numPoints, blockSizes,
wordSize, isBigEndian, isFloatData,
headerSize, blockHeaderSize,
isotopes, specFreqs,
specWidths, refPoints, refPpms,
sampledValues, sampledSigmas,
pulseProgram, dataScale)
return data