Beispiel #1
0
  def __init__(self, procpar_file, data_file=None, **kw):

    if not data_file:
      data_file = joinPath(os.path.dirname(procpar_file), 'datdir', 'phasefile')

    self.procpar_file = procpar_file
    self.data_file = data_file

    ExternalParams.__init__(self, **kw)
Beispiel #2
0
    def __init__(self, procs_file, **kw):

        # Accept procs directory or any file in it
        # Assume correct file is named 'procs' if there is such a file
        if os.path.isdir(procs_file):
            procs_file = os.path.join(procs_file, 'procs')

        else:
            dd, file = os.path.split(procs_file)
            if file != 'procs':
                ss = os.path.join(dd, 'procs')
                if os.path.isfile(ss):
                    print 'Switching to input file: %s' % ss
                    procs_file = ss

        self.procs_file = procs_file

        ExternalParams.__init__(self, **kw)
Beispiel #3
0
    def __init__(self, file):

        self.dataFile = file
        self.head = head
        ExternalParams.__init__(self)
Beispiel #4
0
  def __init__(self, parFile, externalParams = None):

    self.parFile = parFile

    ExternalParams.__init__(self, externalParams)
Beispiel #5
0
  def __init__(self, parFile, **kw):

    self.parFile = parFile

    ExternalParams.__init__(self, **kw)
Beispiel #6
0
    def __init__(self, procs_file, externalParams=None):

        self.procs_file = procs_file

        ExternalParams.__init__(self, externalParams)
Beispiel #7
0
  def __init__(self, file, **kw):

    self.dataFile = file
    ExternalParams.__init__(self, **kw)
Beispiel #8
0
    def __init__(self, file, **kw):

        self.dataFile = file
        self.head = 2048
        ExternalParams.__init__(self, **kw)